783 lines
31 KiB
JSON
783 lines
31 KiB
JSON
{
|
|
"contractName": "SecuredTokenTransfer",
|
|
"abi": [],
|
|
"bytecode": "0x6080604052348015600f57600080fd5b50603580601d6000396000f3006080604052600080fd00a165627a7a723058203704d691dd103c6cda573e69dcd48a2de4d0edf672da44096a50180687c79a770029",
|
|
"deployedBytecode": "0x6080604052600080fd00a165627a7a723058203704d691dd103c6cda573e69dcd48a2de4d0edf672da44096a50180687c79a770029",
|
|
"sourceMap": "133:1051:15:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;133:1051:15;;;;;;;",
|
|
"deployedSourceMap": "133:1051:15:-;;;;;",
|
|
"source": "pragma solidity 0.4.24;\n\n\n/// @title SecuredTokenTransfer - Secure token transfer\n/// @author Richard Meissner - <richard@gnosis.pm>\ncontract SecuredTokenTransfer {\n\n /// @dev Transfers a token and returns if it was a success\n /// @param token Token that should be transferred\n /// @param receiver Receiver to whom the token should be transferred\n /// @param amount The amount of tokens that should be transferred\n function transferToken (\n address token, \n address receiver,\n uint256 amount\n )\n internal\n returns (bool transferred)\n {\n bytes memory data = abi.encodeWithSignature(\"transfer(address,uint256)\", receiver, amount);\n // solium-disable-next-line security/no-inline-assembly\n assembly {\n let success := call(sub(gas, 10000), token, 0, add(data, 0x20), mload(data), 0, 0)\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize)\n switch returndatasize \n case 0 { transferred := success }\n case 0x20 { transferred := iszero(or(iszero(success), iszero(mload(ptr)))) }\n default { transferred := 0 }\n }\n }\n}\n",
|
|
"sourcePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/SecuredTokenTransfer.sol",
|
|
"ast": {
|
|
"absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/SecuredTokenTransfer.sol",
|
|
"exportedSymbols": {
|
|
"SecuredTokenTransfer": [
|
|
3048
|
|
]
|
|
},
|
|
"id": 3049,
|
|
"nodeType": "SourceUnit",
|
|
"nodes": [
|
|
{
|
|
"id": 3025,
|
|
"literals": [
|
|
"solidity",
|
|
"0.4",
|
|
".24"
|
|
],
|
|
"nodeType": "PragmaDirective",
|
|
"src": "0:23:15"
|
|
},
|
|
{
|
|
"baseContracts": [],
|
|
"contractDependencies": [],
|
|
"contractKind": "contract",
|
|
"documentation": "@title SecuredTokenTransfer - Secure token transfer\n @author Richard Meissner - <richard@gnosis.pm>",
|
|
"fullyImplemented": true,
|
|
"id": 3048,
|
|
"linearizedBaseContracts": [
|
|
3048
|
|
],
|
|
"name": "SecuredTokenTransfer",
|
|
"nodeType": "ContractDefinition",
|
|
"nodes": [
|
|
{
|
|
"body": {
|
|
"id": 3046,
|
|
"nodeType": "Block",
|
|
"src": "590:592:15",
|
|
"statements": [
|
|
{
|
|
"assignments": [
|
|
3037
|
|
],
|
|
"declarations": [
|
|
{
|
|
"constant": false,
|
|
"id": 3037,
|
|
"name": "data",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 3047,
|
|
"src": "600:17:15",
|
|
"stateVariable": false,
|
|
"storageLocation": "memory",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes_memory_ptr",
|
|
"typeString": "bytes"
|
|
},
|
|
"typeName": {
|
|
"id": 3036,
|
|
"name": "bytes",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "600:5:15",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes_storage_ptr",
|
|
"typeString": "bytes"
|
|
}
|
|
},
|
|
"value": null,
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"id": 3044,
|
|
"initialValue": {
|
|
"argumentTypes": null,
|
|
"arguments": [
|
|
{
|
|
"argumentTypes": null,
|
|
"hexValue": "7472616e7366657228616464726573732c75696e7432353629",
|
|
"id": 3040,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "string",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "644:27:15",
|
|
"subdenomination": null,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_stringliteral_a9059cbb2ab09eb219583f4a59a5d0623ade346d962bcd4e46b11da047c9049b",
|
|
"typeString": "literal_string \"transfer(address,uint256)\""
|
|
},
|
|
"value": "transfer(address,uint256)"
|
|
},
|
|
{
|
|
"argumentTypes": null,
|
|
"id": 3041,
|
|
"name": "receiver",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 3029,
|
|
"src": "673:8:15",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
{
|
|
"argumentTypes": null,
|
|
"id": 3042,
|
|
"name": "amount",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 3031,
|
|
"src": "683:6:15",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_stringliteral_a9059cbb2ab09eb219583f4a59a5d0623ade346d962bcd4e46b11da047c9049b",
|
|
"typeString": "literal_string \"transfer(address,uint256)\""
|
|
},
|
|
{
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
{
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": null,
|
|
"id": 3038,
|
|
"name": "abi",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 4023,
|
|
"src": "620:3:15",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_magic_abi",
|
|
"typeString": "abi"
|
|
}
|
|
},
|
|
"id": 3039,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"lValueRequested": false,
|
|
"memberName": "encodeWithSignature",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": null,
|
|
"src": "620:23:15",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_abiencodewithsignature_pure$_t_string_memory_ptr_$returns$_t_bytes_memory_ptr_$",
|
|
"typeString": "function (string memory) pure returns (bytes memory)"
|
|
}
|
|
},
|
|
"id": 3043,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "620:70:15",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes_memory_ptr",
|
|
"typeString": "bytes memory"
|
|
}
|
|
},
|
|
"nodeType": "VariableDeclarationStatement",
|
|
"src": "600:90:15"
|
|
},
|
|
{
|
|
"externalReferences": [
|
|
{
|
|
"transferred": {
|
|
"declaration": 3034,
|
|
"isOffset": false,
|
|
"isSlot": false,
|
|
"src": "1061:11:15",
|
|
"valueSize": 1
|
|
}
|
|
},
|
|
{
|
|
"data": {
|
|
"declaration": 3037,
|
|
"isOffset": false,
|
|
"isSlot": false,
|
|
"src": "857:4:15",
|
|
"valueSize": 1
|
|
}
|
|
},
|
|
{
|
|
"token": {
|
|
"declaration": 3027,
|
|
"isOffset": false,
|
|
"isSlot": false,
|
|
"src": "824:5:15",
|
|
"valueSize": 1
|
|
}
|
|
},
|
|
{
|
|
"data": {
|
|
"declaration": 3037,
|
|
"isOffset": false,
|
|
"isSlot": false,
|
|
"src": "838:4:15",
|
|
"valueSize": 1
|
|
}
|
|
},
|
|
{
|
|
"transferred": {
|
|
"declaration": 3034,
|
|
"isOffset": false,
|
|
"isSlot": false,
|
|
"src": "1012:11:15",
|
|
"valueSize": 1
|
|
}
|
|
},
|
|
{
|
|
"transferred": {
|
|
"declaration": 3034,
|
|
"isOffset": false,
|
|
"isSlot": false,
|
|
"src": "1148:11:15",
|
|
"valueSize": 1
|
|
}
|
|
}
|
|
],
|
|
"id": 3045,
|
|
"nodeType": "InlineAssembly",
|
|
"operations": "{\n let success := call(sub(gas(), 10000), token, 0, add(data, 0x20), mload(data), 0, 0)\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n switch returndatasize()\n case 0 {\n transferred := success\n }\n case 0x20 {\n transferred := iszero(or(iszero(success), iszero(mload(ptr))))\n }\n default {\n transferred := 0\n }\n}",
|
|
"src": "764:418:15"
|
|
}
|
|
]
|
|
},
|
|
"documentation": "@dev Transfers a token and returns if it was a success\n @param token Token that should be transferred\n @param receiver Receiver to whom the token should be transferred\n @param amount The amount of tokens that should be transferred",
|
|
"id": 3047,
|
|
"implemented": true,
|
|
"isConstructor": false,
|
|
"isDeclaredConst": false,
|
|
"modifiers": [],
|
|
"name": "transferToken",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 3032,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 3027,
|
|
"name": "token",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 3047,
|
|
"src": "463:13:15",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 3026,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "463:7:15",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"value": null,
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 3029,
|
|
"name": "receiver",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 3047,
|
|
"src": "487:16:15",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 3028,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "487:7:15",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"value": null,
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 3031,
|
|
"name": "amount",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 3047,
|
|
"src": "513:14:15",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 3030,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "513:7:15",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"value": null,
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "453:80:15"
|
|
},
|
|
"payable": false,
|
|
"returnParameters": {
|
|
"id": 3035,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 3034,
|
|
"name": "transferred",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 3047,
|
|
"src": "568:16:15",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
},
|
|
"typeName": {
|
|
"id": 3033,
|
|
"name": "bool",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "568:4:15",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
"value": null,
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "567:18:15"
|
|
},
|
|
"scope": 3048,
|
|
"src": "430:752:15",
|
|
"stateMutability": "nonpayable",
|
|
"superFunction": null,
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"scope": 3049,
|
|
"src": "133:1051:15"
|
|
}
|
|
],
|
|
"src": "0:1185:15"
|
|
},
|
|
"legacyAST": {
|
|
"absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/SecuredTokenTransfer.sol",
|
|
"exportedSymbols": {
|
|
"SecuredTokenTransfer": [
|
|
3048
|
|
]
|
|
},
|
|
"id": 3049,
|
|
"nodeType": "SourceUnit",
|
|
"nodes": [
|
|
{
|
|
"id": 3025,
|
|
"literals": [
|
|
"solidity",
|
|
"0.4",
|
|
".24"
|
|
],
|
|
"nodeType": "PragmaDirective",
|
|
"src": "0:23:15"
|
|
},
|
|
{
|
|
"baseContracts": [],
|
|
"contractDependencies": [],
|
|
"contractKind": "contract",
|
|
"documentation": "@title SecuredTokenTransfer - Secure token transfer\n @author Richard Meissner - <richard@gnosis.pm>",
|
|
"fullyImplemented": true,
|
|
"id": 3048,
|
|
"linearizedBaseContracts": [
|
|
3048
|
|
],
|
|
"name": "SecuredTokenTransfer",
|
|
"nodeType": "ContractDefinition",
|
|
"nodes": [
|
|
{
|
|
"body": {
|
|
"id": 3046,
|
|
"nodeType": "Block",
|
|
"src": "590:592:15",
|
|
"statements": [
|
|
{
|
|
"assignments": [
|
|
3037
|
|
],
|
|
"declarations": [
|
|
{
|
|
"constant": false,
|
|
"id": 3037,
|
|
"name": "data",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 3047,
|
|
"src": "600:17:15",
|
|
"stateVariable": false,
|
|
"storageLocation": "memory",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes_memory_ptr",
|
|
"typeString": "bytes"
|
|
},
|
|
"typeName": {
|
|
"id": 3036,
|
|
"name": "bytes",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "600:5:15",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes_storage_ptr",
|
|
"typeString": "bytes"
|
|
}
|
|
},
|
|
"value": null,
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"id": 3044,
|
|
"initialValue": {
|
|
"argumentTypes": null,
|
|
"arguments": [
|
|
{
|
|
"argumentTypes": null,
|
|
"hexValue": "7472616e7366657228616464726573732c75696e7432353629",
|
|
"id": 3040,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "string",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "644:27:15",
|
|
"subdenomination": null,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_stringliteral_a9059cbb2ab09eb219583f4a59a5d0623ade346d962bcd4e46b11da047c9049b",
|
|
"typeString": "literal_string \"transfer(address,uint256)\""
|
|
},
|
|
"value": "transfer(address,uint256)"
|
|
},
|
|
{
|
|
"argumentTypes": null,
|
|
"id": 3041,
|
|
"name": "receiver",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 3029,
|
|
"src": "673:8:15",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
{
|
|
"argumentTypes": null,
|
|
"id": 3042,
|
|
"name": "amount",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 3031,
|
|
"src": "683:6:15",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_stringliteral_a9059cbb2ab09eb219583f4a59a5d0623ade346d962bcd4e46b11da047c9049b",
|
|
"typeString": "literal_string \"transfer(address,uint256)\""
|
|
},
|
|
{
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
{
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": null,
|
|
"id": 3038,
|
|
"name": "abi",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 4023,
|
|
"src": "620:3:15",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_magic_abi",
|
|
"typeString": "abi"
|
|
}
|
|
},
|
|
"id": 3039,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"lValueRequested": false,
|
|
"memberName": "encodeWithSignature",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": null,
|
|
"src": "620:23:15",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_abiencodewithsignature_pure$_t_string_memory_ptr_$returns$_t_bytes_memory_ptr_$",
|
|
"typeString": "function (string memory) pure returns (bytes memory)"
|
|
}
|
|
},
|
|
"id": 3043,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "620:70:15",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes_memory_ptr",
|
|
"typeString": "bytes memory"
|
|
}
|
|
},
|
|
"nodeType": "VariableDeclarationStatement",
|
|
"src": "600:90:15"
|
|
},
|
|
{
|
|
"externalReferences": [
|
|
{
|
|
"transferred": {
|
|
"declaration": 3034,
|
|
"isOffset": false,
|
|
"isSlot": false,
|
|
"src": "1061:11:15",
|
|
"valueSize": 1
|
|
}
|
|
},
|
|
{
|
|
"data": {
|
|
"declaration": 3037,
|
|
"isOffset": false,
|
|
"isSlot": false,
|
|
"src": "857:4:15",
|
|
"valueSize": 1
|
|
}
|
|
},
|
|
{
|
|
"token": {
|
|
"declaration": 3027,
|
|
"isOffset": false,
|
|
"isSlot": false,
|
|
"src": "824:5:15",
|
|
"valueSize": 1
|
|
}
|
|
},
|
|
{
|
|
"data": {
|
|
"declaration": 3037,
|
|
"isOffset": false,
|
|
"isSlot": false,
|
|
"src": "838:4:15",
|
|
"valueSize": 1
|
|
}
|
|
},
|
|
{
|
|
"transferred": {
|
|
"declaration": 3034,
|
|
"isOffset": false,
|
|
"isSlot": false,
|
|
"src": "1012:11:15",
|
|
"valueSize": 1
|
|
}
|
|
},
|
|
{
|
|
"transferred": {
|
|
"declaration": 3034,
|
|
"isOffset": false,
|
|
"isSlot": false,
|
|
"src": "1148:11:15",
|
|
"valueSize": 1
|
|
}
|
|
}
|
|
],
|
|
"id": 3045,
|
|
"nodeType": "InlineAssembly",
|
|
"operations": "{\n let success := call(sub(gas(), 10000), token, 0, add(data, 0x20), mload(data), 0, 0)\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n switch returndatasize()\n case 0 {\n transferred := success\n }\n case 0x20 {\n transferred := iszero(or(iszero(success), iszero(mload(ptr))))\n }\n default {\n transferred := 0\n }\n}",
|
|
"src": "764:418:15"
|
|
}
|
|
]
|
|
},
|
|
"documentation": "@dev Transfers a token and returns if it was a success\n @param token Token that should be transferred\n @param receiver Receiver to whom the token should be transferred\n @param amount The amount of tokens that should be transferred",
|
|
"id": 3047,
|
|
"implemented": true,
|
|
"isConstructor": false,
|
|
"isDeclaredConst": false,
|
|
"modifiers": [],
|
|
"name": "transferToken",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 3032,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 3027,
|
|
"name": "token",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 3047,
|
|
"src": "463:13:15",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 3026,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "463:7:15",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"value": null,
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 3029,
|
|
"name": "receiver",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 3047,
|
|
"src": "487:16:15",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 3028,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "487:7:15",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"value": null,
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 3031,
|
|
"name": "amount",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 3047,
|
|
"src": "513:14:15",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 3030,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "513:7:15",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"value": null,
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "453:80:15"
|
|
},
|
|
"payable": false,
|
|
"returnParameters": {
|
|
"id": 3035,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 3034,
|
|
"name": "transferred",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 3047,
|
|
"src": "568:16:15",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
},
|
|
"typeName": {
|
|
"id": 3033,
|
|
"name": "bool",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "568:4:15",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
"value": null,
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "567:18:15"
|
|
},
|
|
"scope": 3048,
|
|
"src": "430:752:15",
|
|
"stateMutability": "nonpayable",
|
|
"superFunction": null,
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"scope": 3049,
|
|
"src": "133:1051:15"
|
|
}
|
|
],
|
|
"src": "0:1185:15"
|
|
},
|
|
"compiler": {
|
|
"name": "solc",
|
|
"version": "0.4.24+commit.e67f0147.Emscripten.clang"
|
|
},
|
|
"networks": {},
|
|
"schemaVersion": "2.0.0",
|
|
"updatedAt": "2018-06-29T09:01:22.084Z"
|
|
} |