2018-05-04 14:04:04 +00:00
{
"contractName" : "MultiSend" ,
"abi" : [
{
"constant" : false ,
"inputs" : [
{
"name" : "transactions" ,
"type" : "bytes"
}
] ,
"name" : "multiSend" ,
"outputs" : [ ] ,
"payable" : false ,
"stateMutability" : "nonpayable" ,
"type" : "function"
}
] ,
2018-05-10 11:12:13 +00:00
"bytecode" : "0x608060405234801561001057600080fd5b5061013a806100206000396000f300608060405260043610610041576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680638d80ff0a14610046575b600080fd5b34801561005257600080fd5b506100ad600480360381019080803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091929192905050506100af565b005b805160205b8181101561010957808301516020820184015160608301850151608084018601600080838386885af1600081146100ea576100ef565b600080fd5b5060208060208401040260800185019450505050506100b4565b5050505600a165627a7a7230582085c54bc0284c5004bee6b973aad924e63fe6628856cdf34c1eedabe70b1787fb0029" ,
"deployedBytecode" : "0x608060405260043610610041576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680638d80ff0a14610046575b600080fd5b34801561005257600080fd5b506100ad600480360381019080803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091929192905050506100af565b005b805160205b8181101561010957808301516020820184015160608301850151608084018601600080838386885af1600081146100ea576100ef565b600080fd5b5060208060208401040260800185019450505050506100b4565b5050505600a165627a7a7230582085c54bc0284c5004bee6b973aad924e63fe6628856cdf34c1eedabe70b1787fb0029" ,
"sourceMap" : "253:1073:16:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;253:1073:16;;;;;;;" ,
"deployedSourceMap" : "253:1073:16:-;;;;;;;;;;;;;;;;;;;;;;;;593:731;;8:9:-1;5:2;;;30:1;27;20:12;5:2;593:731:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;768:12;762:19;803:4;820:488;834:6;831:1;828:13;820:488;;;898:1;884:12;880:20;874:27;962:4;959:1;955:12;941;937:31;931:38;1035:4;1032:1;1028:12;1014;1010:31;1004:38;1096:4;1093:1;1089:12;1075;1071:31;1168:1;1165;1153:10;1147:4;1140:5;1136:2;1131:3;1126:44;1192:1;1187:23;;;;1119:91;;1187:23;1206:1;1203;1196:12;1119:91;;1287:4;1280;1273;1261:10;1257:21;1253:32;1249:43;1243:4;1239:54;1236:1;1232:62;1227:67;;846:462;;;;820:488;;;734:584;;;:::o" ,
"source" : "pragma solidity 0.4.23;\n\n\n/// @title Multi Send - Allows to batch multiple transactions into one.\n/// @author Nick Dodson - <nick.dodson@consensys.net>\n/// @author Gonçalo Sá - <goncalo.sa@consensys.net>\n/// @author Stefan George - <stefan@gnosis.pm>\ncontract MultiSend {\n\n /// @dev Sends multiple transactions and reverts all if one fails.\n /// @param transactions Encoded transactions. Each transaction is encoded as\n /// a tuple(address,uint256,bytes). The bytes of all\n /// encoded transactions are concatenated to form the input.\n function multiSend(bytes transactions)\n public\n {\n // solium-disable-next-line security/no-inline-assembly\n assembly {\n let length := mload(transactions)\n let i := 0x20\n for { } lt(i, length) { } {\n let to := mload(add(transactions, i))\n let value := mload(add(transactions, add(i, 0x20)))\n let dataLength := mload(add(transactions, add(i, 0x60)))\n let data := add(transactions, add(i, 0x80))\n switch call(gas, to, value, data, dataLength, 0, 0)\n case 0 { revert(0, 0) }\n i := add(i, add(0x80, mul(div(add(dataLength, 0x20), 0x20), 0x20)))\n }\n }\n }\n}\n" ,
2018-05-04 14:04:04 +00:00
"sourcePath" : "/Users/apanizo/git/gnosis/safe-contracts/contracts/libraries/MultiSend.sol" ,
"ast" : {
"absolutePath" : "/Users/apanizo/git/gnosis/safe-contracts/contracts/libraries/MultiSend.sol" ,
"exportedSymbols" : {
"MultiSend" : [
2018-05-10 11:12:13 +00:00
1614
2018-05-04 14:04:04 +00:00
]
} ,
2018-05-10 11:12:13 +00:00
"id" : 1615 ,
2018-05-04 14:04:04 +00:00
"nodeType" : "SourceUnit" ,
"nodes" : [
{
2018-05-10 11:12:13 +00:00
"id" : 1606 ,
2018-05-04 14:04:04 +00:00
"literals" : [
"solidity" ,
"0.4" ,
2018-05-10 11:12:13 +00:00
".23"
2018-05-04 14:04:04 +00:00
] ,
"nodeType" : "PragmaDirective" ,
2018-05-10 11:12:13 +00:00
"src" : "0:23:16"
2018-05-04 14:04:04 +00:00
} ,
{
"baseContracts" : [ ] ,
"contractDependencies" : [ ] ,
"contractKind" : "contract" ,
"documentation" : "@title Multi Send - Allows to batch multiple transactions into one.\n @author Nick Dodson - <nick.dodson@consensys.net>\n @author Gonçalo Sá - <goncalo.sa@consensys.net>\n @author Stefan George - <stefan@gnosis.pm>" ,
"fullyImplemented" : true ,
2018-05-10 11:12:13 +00:00
"id" : 1614 ,
2018-05-04 14:04:04 +00:00
"linearizedBaseContracts" : [
2018-05-10 11:12:13 +00:00
1614
2018-05-04 14:04:04 +00:00
] ,
"name" : "MultiSend" ,
"nodeType" : "ContractDefinition" ,
"nodes" : [
{
"body" : {
2018-05-10 11:12:13 +00:00
"id" : 1612 ,
2018-05-04 14:04:04 +00:00
"nodeType" : "Block" ,
2018-05-10 11:12:13 +00:00
"src" : "651:673:16" ,
2018-05-04 14:04:04 +00:00
"statements" : [
{
"externalReferences" : [
{
"transactions" : {
2018-05-10 11:12:13 +00:00
"declaration" : 1608 ,
2018-05-04 14:04:04 +00:00
"isOffset" : false ,
"isSlot" : false ,
2018-05-10 11:12:13 +00:00
"src" : "768:12:16" ,
2018-05-04 14:04:04 +00:00
"valueSize" : 1
}
} ,
{
"transactions" : {
2018-05-10 11:12:13 +00:00
"declaration" : 1608 ,
2018-05-04 14:04:04 +00:00
"isOffset" : false ,
"isSlot" : false ,
2018-05-10 11:12:13 +00:00
"src" : "884:12:16" ,
2018-05-04 14:04:04 +00:00
"valueSize" : 1
}
} ,
{
"transactions" : {
2018-05-10 11:12:13 +00:00
"declaration" : 1608 ,
2018-05-04 14:04:04 +00:00
"isOffset" : false ,
"isSlot" : false ,
2018-05-10 11:12:13 +00:00
"src" : "941:12:16" ,
2018-05-04 14:04:04 +00:00
"valueSize" : 1
}
} ,
{
"transactions" : {
2018-05-10 11:12:13 +00:00
"declaration" : 1608 ,
2018-05-04 14:04:04 +00:00
"isOffset" : false ,
"isSlot" : false ,
2018-05-10 11:12:13 +00:00
"src" : "1014:12:16" ,
2018-05-04 14:04:04 +00:00
"valueSize" : 1
}
} ,
{
"transactions" : {
2018-05-10 11:12:13 +00:00
"declaration" : 1608 ,
2018-05-04 14:04:04 +00:00
"isOffset" : false ,
"isSlot" : false ,
2018-05-10 11:12:13 +00:00
"src" : "1075:12:16" ,
2018-05-04 14:04:04 +00:00
"valueSize" : 1
}
}
] ,
2018-05-10 11:12:13 +00:00
"id" : 1611 ,
2018-05-04 14:04:04 +00:00
"nodeType" : "InlineAssembly" ,
2018-05-10 11:12:13 +00:00
"operations" : "{\n let length := mload(transactions)\n let i := 0x20\n for {\n }\n lt(i, length)\n {\n }\n {\n let to := mload(add(transactions, i))\n let value := mload(add(transactions, add(i, 0x20)))\n let dataLength := mload(add(transactions, add(i, 0x60)))\n let data := add(transactions, add(i, 0x80))\n switch call(gas(), to, value, data, dataLength, 0, 0)\n case 0 {\n revert(0, 0)\n }\n i := add(i, add(0x80, mul(div(add(dataLength, 0x20), 0x20), 0x20)))\n }\n}" ,
"src" : "725:599:16"
2018-05-04 14:04:04 +00:00
}
]
} ,
2018-05-10 11:12:13 +00:00
"documentation" : "@dev Sends multiple transactions and reverts all if one fails.\n @param transactions Encoded transactions. Each transaction is encoded as\n a tuple(address,uint256,bytes). The bytes of all\n encoded transactions are concatenated to form the input." ,
"id" : 1613 ,
2018-05-04 14:04:04 +00:00
"implemented" : true ,
"isConstructor" : false ,
"isDeclaredConst" : false ,
"modifiers" : [ ] ,
"name" : "multiSend" ,
"nodeType" : "FunctionDefinition" ,
"parameters" : {
2018-05-10 11:12:13 +00:00
"id" : 1609 ,
2018-05-04 14:04:04 +00:00
"nodeType" : "ParameterList" ,
"parameters" : [
{
"constant" : false ,
2018-05-10 11:12:13 +00:00
"id" : 1608 ,
2018-05-04 14:04:04 +00:00
"name" : "transactions" ,
"nodeType" : "VariableDeclaration" ,
2018-05-10 11:12:13 +00:00
"scope" : 1613 ,
"src" : "612:18:16" ,
2018-05-04 14:04:04 +00:00
"stateVariable" : false ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_bytes_memory_ptr" ,
2018-05-10 11:12:13 +00:00
"typeString" : "bytes"
2018-05-04 14:04:04 +00:00
} ,
"typeName" : {
2018-05-10 11:12:13 +00:00
"id" : 1607 ,
2018-05-04 14:04:04 +00:00
"name" : "bytes" ,
"nodeType" : "ElementaryTypeName" ,
2018-05-10 11:12:13 +00:00
"src" : "612:5:16" ,
2018-05-04 14:04:04 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_bytes_storage_ptr" ,
2018-05-10 11:12:13 +00:00
"typeString" : "bytes"
2018-05-04 14:04:04 +00:00
}
} ,
"value" : null ,
"visibility" : "internal"
}
] ,
2018-05-10 11:12:13 +00:00
"src" : "611:20:16"
2018-05-04 14:04:04 +00:00
} ,
"payable" : false ,
"returnParameters" : {
2018-05-10 11:12:13 +00:00
"id" : 1610 ,
2018-05-04 14:04:04 +00:00
"nodeType" : "ParameterList" ,
"parameters" : [ ] ,
2018-05-10 11:12:13 +00:00
"src" : "651:0:16"
2018-05-04 14:04:04 +00:00
} ,
2018-05-10 11:12:13 +00:00
"scope" : 1614 ,
"src" : "593:731:16" ,
2018-05-04 14:04:04 +00:00
"stateMutability" : "nonpayable" ,
"superFunction" : null ,
"visibility" : "public"
}
] ,
2018-05-10 11:12:13 +00:00
"scope" : 1615 ,
"src" : "253:1073:16"
2018-05-04 14:04:04 +00:00
}
] ,
2018-05-10 11:12:13 +00:00
"src" : "0:1327:16"
2018-05-04 14:04:04 +00:00
} ,
"legacyAST" : {
"absolutePath" : "/Users/apanizo/git/gnosis/safe-contracts/contracts/libraries/MultiSend.sol" ,
"exportedSymbols" : {
"MultiSend" : [
2018-05-10 11:12:13 +00:00
1614
2018-05-04 14:04:04 +00:00
]
} ,
2018-05-10 11:12:13 +00:00
"id" : 1615 ,
2018-05-04 14:04:04 +00:00
"nodeType" : "SourceUnit" ,
"nodes" : [
{
2018-05-10 11:12:13 +00:00
"id" : 1606 ,
2018-05-04 14:04:04 +00:00
"literals" : [
"solidity" ,
"0.4" ,
2018-05-10 11:12:13 +00:00
".23"
2018-05-04 14:04:04 +00:00
] ,
"nodeType" : "PragmaDirective" ,
2018-05-10 11:12:13 +00:00
"src" : "0:23:16"
2018-05-04 14:04:04 +00:00
} ,
{
"baseContracts" : [ ] ,
"contractDependencies" : [ ] ,
"contractKind" : "contract" ,
"documentation" : "@title Multi Send - Allows to batch multiple transactions into one.\n @author Nick Dodson - <nick.dodson@consensys.net>\n @author Gonçalo Sá - <goncalo.sa@consensys.net>\n @author Stefan George - <stefan@gnosis.pm>" ,
"fullyImplemented" : true ,
2018-05-10 11:12:13 +00:00
"id" : 1614 ,
2018-05-04 14:04:04 +00:00
"linearizedBaseContracts" : [
2018-05-10 11:12:13 +00:00
1614
2018-05-04 14:04:04 +00:00
] ,
"name" : "MultiSend" ,
"nodeType" : "ContractDefinition" ,
"nodes" : [
{
"body" : {
2018-05-10 11:12:13 +00:00
"id" : 1612 ,
2018-05-04 14:04:04 +00:00
"nodeType" : "Block" ,
2018-05-10 11:12:13 +00:00
"src" : "651:673:16" ,
2018-05-04 14:04:04 +00:00
"statements" : [
{
"externalReferences" : [
{
"transactions" : {
2018-05-10 11:12:13 +00:00
"declaration" : 1608 ,
2018-05-04 14:04:04 +00:00
"isOffset" : false ,
"isSlot" : false ,
2018-05-10 11:12:13 +00:00
"src" : "768:12:16" ,
2018-05-04 14:04:04 +00:00
"valueSize" : 1
}
} ,
{
"transactions" : {
2018-05-10 11:12:13 +00:00
"declaration" : 1608 ,
2018-05-04 14:04:04 +00:00
"isOffset" : false ,
"isSlot" : false ,
2018-05-10 11:12:13 +00:00
"src" : "884:12:16" ,
2018-05-04 14:04:04 +00:00
"valueSize" : 1
}
} ,
{
"transactions" : {
2018-05-10 11:12:13 +00:00
"declaration" : 1608 ,
2018-05-04 14:04:04 +00:00
"isOffset" : false ,
"isSlot" : false ,
2018-05-10 11:12:13 +00:00
"src" : "941:12:16" ,
2018-05-04 14:04:04 +00:00
"valueSize" : 1
}
} ,
{
"transactions" : {
2018-05-10 11:12:13 +00:00
"declaration" : 1608 ,
2018-05-04 14:04:04 +00:00
"isOffset" : false ,
"isSlot" : false ,
2018-05-10 11:12:13 +00:00
"src" : "1014:12:16" ,
2018-05-04 14:04:04 +00:00
"valueSize" : 1
}
} ,
{
"transactions" : {
2018-05-10 11:12:13 +00:00
"declaration" : 1608 ,
2018-05-04 14:04:04 +00:00
"isOffset" : false ,
"isSlot" : false ,
2018-05-10 11:12:13 +00:00
"src" : "1075:12:16" ,
2018-05-04 14:04:04 +00:00
"valueSize" : 1
}
}
] ,
2018-05-10 11:12:13 +00:00
"id" : 1611 ,
2018-05-04 14:04:04 +00:00
"nodeType" : "InlineAssembly" ,
2018-05-10 11:12:13 +00:00
"operations" : "{\n let length := mload(transactions)\n let i := 0x20\n for {\n }\n lt(i, length)\n {\n }\n {\n let to := mload(add(transactions, i))\n let value := mload(add(transactions, add(i, 0x20)))\n let dataLength := mload(add(transactions, add(i, 0x60)))\n let data := add(transactions, add(i, 0x80))\n switch call(gas(), to, value, data, dataLength, 0, 0)\n case 0 {\n revert(0, 0)\n }\n i := add(i, add(0x80, mul(div(add(dataLength, 0x20), 0x20), 0x20)))\n }\n}" ,
"src" : "725:599:16"
2018-05-04 14:04:04 +00:00
}
]
} ,
2018-05-10 11:12:13 +00:00
"documentation" : "@dev Sends multiple transactions and reverts all if one fails.\n @param transactions Encoded transactions. Each transaction is encoded as\n a tuple(address,uint256,bytes). The bytes of all\n encoded transactions are concatenated to form the input." ,
"id" : 1613 ,
2018-05-04 14:04:04 +00:00
"implemented" : true ,
"isConstructor" : false ,
"isDeclaredConst" : false ,
"modifiers" : [ ] ,
"name" : "multiSend" ,
"nodeType" : "FunctionDefinition" ,
"parameters" : {
2018-05-10 11:12:13 +00:00
"id" : 1609 ,
2018-05-04 14:04:04 +00:00
"nodeType" : "ParameterList" ,
"parameters" : [
{
"constant" : false ,
2018-05-10 11:12:13 +00:00
"id" : 1608 ,
2018-05-04 14:04:04 +00:00
"name" : "transactions" ,
"nodeType" : "VariableDeclaration" ,
2018-05-10 11:12:13 +00:00
"scope" : 1613 ,
"src" : "612:18:16" ,
2018-05-04 14:04:04 +00:00
"stateVariable" : false ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_bytes_memory_ptr" ,
2018-05-10 11:12:13 +00:00
"typeString" : "bytes"
2018-05-04 14:04:04 +00:00
} ,
"typeName" : {
2018-05-10 11:12:13 +00:00
"id" : 1607 ,
2018-05-04 14:04:04 +00:00
"name" : "bytes" ,
"nodeType" : "ElementaryTypeName" ,
2018-05-10 11:12:13 +00:00
"src" : "612:5:16" ,
2018-05-04 14:04:04 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_bytes_storage_ptr" ,
2018-05-10 11:12:13 +00:00
"typeString" : "bytes"
2018-05-04 14:04:04 +00:00
}
} ,
"value" : null ,
"visibility" : "internal"
}
] ,
2018-05-10 11:12:13 +00:00
"src" : "611:20:16"
2018-05-04 14:04:04 +00:00
} ,
"payable" : false ,
"returnParameters" : {
2018-05-10 11:12:13 +00:00
"id" : 1610 ,
2018-05-04 14:04:04 +00:00
"nodeType" : "ParameterList" ,
"parameters" : [ ] ,
2018-05-10 11:12:13 +00:00
"src" : "651:0:16"
2018-05-04 14:04:04 +00:00
} ,
2018-05-10 11:12:13 +00:00
"scope" : 1614 ,
"src" : "593:731:16" ,
2018-05-04 14:04:04 +00:00
"stateMutability" : "nonpayable" ,
"superFunction" : null ,
"visibility" : "public"
}
] ,
2018-05-10 11:12:13 +00:00
"scope" : 1615 ,
"src" : "253:1073:16"
2018-05-04 14:04:04 +00:00
}
] ,
2018-05-10 11:12:13 +00:00
"src" : "0:1327:16"
2018-05-04 14:04:04 +00:00
} ,
"compiler" : {
"name" : "solc" ,
2018-05-10 11:12:13 +00:00
"version" : "0.4.23+commit.124ca40d.Emscripten.clang"
2018-05-04 14:04:04 +00:00
} ,
"networks" : {
"4" : {
"events" : { } ,
"links" : { } ,
2018-05-16 13:46:33 +00:00
"address" : "0xeb51df3ce4e31ee60ed86cc860e68a4f892960cc" ,
"transactionHash" : "0x1a3baba678d7b4d4c2ae5d151176442d5306e7958e83cecf49a6256fdfd2f4cb"
2018-05-04 14:04:04 +00:00
} ,
2018-05-10 11:12:13 +00:00
"1525950336085" : {
2018-05-04 14:04:04 +00:00
"events" : { } ,
"links" : { } ,
2018-05-10 11:12:13 +00:00
"address" : "0xa4604b882b2c10ce381c4e61ad9ac72ab32f350f" ,
"transactionHash" : "0xf4586ae05ae02801de1759128e43658bb0439e622a5ba84ad6bb4b652d641f4f"
2018-05-14 07:48:41 +00:00
} ,
"1526283540628" : {
"events" : { } ,
"links" : { } ,
"address" : "0xf5cfa4069271285402ba2585c521c6c627810963" ,
"transactionHash" : "0xf4586ae05ae02801de1759128e43658bb0439e622a5ba84ad6bb4b652d641f4f"
2018-05-16 13:46:33 +00:00
} ,
"1526478212260" : {
"events" : { } ,
"links" : { } ,
"address" : "0x20658014abeebf3f064bf4442a5cd160143b800e" ,
"transactionHash" : "0xf4586ae05ae02801de1759128e43658bb0439e622a5ba84ad6bb4b652d641f4f"
2018-05-22 07:22:38 +00:00
} ,
"1526973574996" : {
"events" : { } ,
"links" : { } ,
"address" : "0xf27293ee4c8876589b0e197d3bebb2402c798e1f" ,
"transactionHash" : "0xf4586ae05ae02801de1759128e43658bb0439e622a5ba84ad6bb4b652d641f4f"
2018-05-04 14:04:04 +00:00
}
} ,
"schemaVersion" : "2.0.0" ,
2018-05-22 07:22:38 +00:00
"updatedAt" : "2018-05-22T07:20:22.989Z"
2018-05-04 14:04:04 +00:00
}