arc_dx
Version:
A platform for building DAOs
1,045 lines (1,044 loc) • 104 kB
JSON
{
"contractName": "UniversalSchemeMock",
"abi": [
{
"constant": false,
"inputs": [
{
"name": "_hashedParameters",
"type": "bytes32"
}
],
"name": "updateParameters",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [],
"name": "renounceOwnership",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "owner",
"outputs": [
{
"name": "",
"type": "address"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_newOwner",
"type": "address"
}
],
"name": "transferOwnership",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "hashedParameters",
"outputs": [
{
"name": "",
"type": "bytes32"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"name": "previousOwner",
"type": "address"
}
],
"name": "OwnershipRenounced",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"name": "previousOwner",
"type": "address"
},
{
"indexed": true,
"name": "newOwner",
"type": "address"
}
],
"name": "OwnershipTransferred",
"type": "event"
},
{
"constant": false,
"inputs": [
{
"name": "_avatar",
"type": "address"
},
{
"name": "_contract",
"type": "address"
},
{
"name": "_a",
"type": "uint256"
},
{
"name": "_b",
"type": "address"
},
{
"name": "_c",
"type": "bytes32"
}
],
"name": "genericCall",
"outputs": [
{
"name": "",
"type": "bytes32"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_avatar",
"type": "address"
},
{
"name": "_contract",
"type": "address"
},
{
"name": "_a",
"type": "uint256"
},
{
"name": "_b",
"type": "address"
},
{
"name": "_c",
"type": "bytes32"
}
],
"name": "genericCallDirect",
"outputs": [
{
"name": "",
"type": "bytes32"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
}
],
"bytecode": "0x608060405234801561001057600080fd5b5060008054600160a060020a03191633179055610696806100326000396000f3006080604052600436106100695763ffffffff60e060020a60003504166319d9e9d2811461006e5780632ac2af53146100b4578063715018a6146100ce5780638da5cb5b146100e3578063a962777214610114578063f2fde38b14610148578063f98e87ba14610169575b600080fd5b34801561007a57600080fd5b506100a2600160a060020a03600435811690602435811690604435906064351660843561017e565b60408051918252519081900360200190f35b3480156100c057600080fd5b506100cc6004356103c9565b005b3480156100da57600080fd5b506100cc6103e5565b3480156100ef57600080fd5b506100f8610451565b60408051600160a060020a039092168252519081900360200190f35b34801561012057600080fd5b506100a2600160a060020a036004358116906024358116906044359060643516608435610460565b34801561015457600080fd5b506100cc600160a060020a03600435166105c4565b34801561017557600080fd5b506100a26105e7565b60008086600160a060020a0316638da5cb5b6040518163ffffffff1660e060020a028152600401602060405180830381600087803b1580156101bf57600080fd5b505af11580156101d3573d6000803e3d6000fd5b505050506040513d60208110156101e957600080fd5b8101908080519060200190929190505050905080600160a060020a03166320204fb7878787876040516024018084815260200183600160a060020a0316600160a060020a03168152602001826000191660001916815260200193505050506040516020818303038152906040527ff3e8dcd0000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050508a6040518463ffffffff1660e060020a0281526004018084600160a060020a0316600160a060020a031681526020018060200183600160a060020a0316600160a060020a03168152602001828103825284818151815260200191508051906020019080838360005b8381101561034457818101518382015260200161032c565b50505050905090810190601f1680156103715780820380516001836020036101000a031916815260200191505b50945050505050602060405180830381600087803b15801561039257600080fd5b505af11580156103a6573d6000803e3d6000fd5b505050506040513d60208110156103bc57600080fd5b5051979650505050505050565b600054600160a060020a031633146103e057600080fd5b600155565b600054600160a060020a031633146103fc57600080fd5b60008054604051600160a060020a03909116917ff8df31144d9c2f0f6b59d69b8b98abd5459d07f2742c4df920b25aae33c6482091a26000805473ffffffffffffffffffffffffffffffffffffffff19169055565b600054600160a060020a031681565b604080516024808201869052600160a060020a038581166044808501919091526064808501879052855180860382018152608490950186526020850180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167ff3e8dcd00000000000000000000000000000000000000000000000000000000017815286517f4650c3080000000000000000000000000000000000000000000000000000000081528b8516600482019081529581019788528651938101939093528551600097948d1696634650c308968d969195909491939101918083838c5b8381101561055557818101518382015260200161053d565b50505050905090810190601f1680156105825780820380516001836020036101000a031916815260200191505b509350505050600060405180830381600087803b1580156105a257600080fd5b505af11580156105b6573d6000803e3d6000fd5b505050503d6000803e3d6000f35b600054600160a060020a031633146105db57600080fd5b6105e4816105ed565b50565b60015481565b600160a060020a038116151561060257600080fd5b60008054604051600160a060020a03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03929092169190911790555600a165627a7a7230582026d6e1160d4a8bd4bf739aece5defc8e362a3e85ce646d4f807d0034d130bfe10029",
"deployedBytecode": "0x6080604052600436106100695763ffffffff60e060020a60003504166319d9e9d2811461006e5780632ac2af53146100b4578063715018a6146100ce5780638da5cb5b146100e3578063a962777214610114578063f2fde38b14610148578063f98e87ba14610169575b600080fd5b34801561007a57600080fd5b506100a2600160a060020a03600435811690602435811690604435906064351660843561017e565b60408051918252519081900360200190f35b3480156100c057600080fd5b506100cc6004356103c9565b005b3480156100da57600080fd5b506100cc6103e5565b3480156100ef57600080fd5b506100f8610451565b60408051600160a060020a039092168252519081900360200190f35b34801561012057600080fd5b506100a2600160a060020a036004358116906024358116906044359060643516608435610460565b34801561015457600080fd5b506100cc600160a060020a03600435166105c4565b34801561017557600080fd5b506100a26105e7565b60008086600160a060020a0316638da5cb5b6040518163ffffffff1660e060020a028152600401602060405180830381600087803b1580156101bf57600080fd5b505af11580156101d3573d6000803e3d6000fd5b505050506040513d60208110156101e957600080fd5b8101908080519060200190929190505050905080600160a060020a03166320204fb7878787876040516024018084815260200183600160a060020a0316600160a060020a03168152602001826000191660001916815260200193505050506040516020818303038152906040527ff3e8dcd0000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050508a6040518463ffffffff1660e060020a0281526004018084600160a060020a0316600160a060020a031681526020018060200183600160a060020a0316600160a060020a03168152602001828103825284818151815260200191508051906020019080838360005b8381101561034457818101518382015260200161032c565b50505050905090810190601f1680156103715780820380516001836020036101000a031916815260200191505b50945050505050602060405180830381600087803b15801561039257600080fd5b505af11580156103a6573d6000803e3d6000fd5b505050506040513d60208110156103bc57600080fd5b5051979650505050505050565b600054600160a060020a031633146103e057600080fd5b600155565b600054600160a060020a031633146103fc57600080fd5b60008054604051600160a060020a03909116917ff8df31144d9c2f0f6b59d69b8b98abd5459d07f2742c4df920b25aae33c6482091a26000805473ffffffffffffffffffffffffffffffffffffffff19169055565b600054600160a060020a031681565b604080516024808201869052600160a060020a038581166044808501919091526064808501879052855180860382018152608490950186526020850180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167ff3e8dcd00000000000000000000000000000000000000000000000000000000017815286517f4650c3080000000000000000000000000000000000000000000000000000000081528b8516600482019081529581019788528651938101939093528551600097948d1696634650c308968d969195909491939101918083838c5b8381101561055557818101518382015260200161053d565b50505050905090810190601f1680156105825780820380516001836020036101000a031916815260200191505b509350505050600060405180830381600087803b1580156105a257600080fd5b505af11580156105b6573d6000803e3d6000fd5b505050503d6000803e3d6000f35b600054600160a060020a031633146105db57600080fd5b6105e4816105ed565b50565b60015481565b600160a060020a038116151561060257600080fd5b60008054604051600160a060020a03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03929092169190911790555600a165627a7a7230582026d6e1160d4a8bd4bf739aece5defc8e362a3e85ce646d4f807d0034d130bfe10029",
"sourceMap": "126:874:23:-;;;181:28;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;567:5:55;:18;;-1:-1:-1;;;;;;567:18:55;575:10;567:18;;;126:874:23;;;;;;",
"deployedSourceMap": "126:874:23:-;;;;;;;;;-1:-1:-1;;;126:874:23;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;215:325;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;215:325:23;-1:-1:-1;;;;;215:325:23;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;419:157:33;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;419:157:33;;;;;;;1001:111:55;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1001:111:55;;;;238:20;;8:9:-1;5:2;;;30:1;27;20:12;5:2;238:20:55;;;;;;;;-1:-1:-1;;;;;238:20:55;;;;;;;;;;;;;;546:452:23;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;546:452:23;-1:-1:-1;;;;;546:452:23;;;;;;;;;;;;;;;;;;;;1274:103:55;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;1274:103:55;-1:-1:-1;;;;;1274:103:55;;;;;356:31:33;;8:9:-1;5:2;;;30:1;27;20:12;5:2;356:31:33;;;;215:325:23;320:7;344:18;372:7;-1:-1:-1;;;;;365:21:23;;:23;;;;;-1:-1:-1;;;365:23:23;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;365:23:23;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;365:23:23;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;365:23:23;;;;;;;;;;;;;;;;344:44;;425:10;-1:-1:-1;;;;;405:43:23;;449:9;515:2;518;521;459:65;;;;;;;;;;;-1:-1:-1;;;;;459:65:23;-1:-1:-1;;;;;459:65:23;;;;;;;;;;;;;;;;;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;459:65:23;;;;;;;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;;;459:65:23;525:7;405:128;;;;;-1:-1:-1;;;405:128:23;;;;;;;-1:-1:-1;;;;;405:128:23;-1:-1:-1;;;;;405:128:23;;;;;;;;;-1:-1:-1;;;;;405:128:23;-1:-1:-1;;;;;405:128:23;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;405:128:23;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;405:128:23;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;405:128:23;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;405:128:23;;215:325;-1:-1:-1;;;;;;;215:325:23:o;419:157:33:-;719:5:55;;-1:-1:-1;;;;;719:5:55;705:10;:19;697:28;;;;;;533:16:33;:36;419:157::o;1001:111:55:-;719:5;;-1:-1:-1;;;;;719:5:55;705:10;:19;697:28;;;;;;1077:5;;;1058:25;;-1:-1:-1;;;;;1077:5:55;;;;1058:25;;;1105:1;1089:18;;-1:-1:-1;;1089:18:55;;;1001:111::o;238:20::-;;;-1:-1:-1;;;;;238:20:55;;:::o;546:452:23:-;718:65;;;;;;;;;;-1:-1:-1;;;;;718:65:23;;;;;;;;;;;;;;;;;;;;26:21:-1;;;22:32;;6:49;;718:65:23;;;;;;;25:18:-1;;61:17;;718:65:23;182:15:-1;718:65:23;179:29:-1;160:49;;680:104:23;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;657:7;;680:27;;;;;;708:9;;718:65;;680:104;;;;;;;;;25:18:-1;657:7:23;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;680:104:23;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;680:104:23;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;680:104:23;;;;933:14;930:1;927;912:36;967:14;964:1;957:25;1274:103:55;719:5;;-1:-1:-1;;;;;719:5:55;705:10;:19;697:28;;;;;;1343:29;1362:9;1343:18;:29::i;:::-;1274:103;:::o;356:31:33:-;;;;:::o;1512:171:55:-;-1:-1:-1;;;;;1582:23:55;;;;1574:32;;;;;;1638:5;;;1617:38;;-1:-1:-1;;;;;1617:38:55;;;;1638:5;;;1617:38;;;1661:5;:17;;-1:-1:-1;;1661:17:55;-1:-1:-1;;;;;1661:17:55;;;;;;;;;;1512:171::o",
"source": "pragma solidity ^0.4.25;\n\nimport \"../universalSchemes/UniversalScheme.sol\";\nimport \"../controller/ControllerInterface.sol\";\n\n\ncontract UniversalSchemeMock is UniversalScheme {\n\n constructor() public {\n }\n\n function genericCall(address _avatar,address _contract,uint _a,address _b,bytes32 _c)\n public returns(bytes32)\n {\n\n address controller = Avatar(_avatar).owner();\n return ControllerInterface(controller).genericCall(_contract,abi.encodeWithSignature(\"test(uint256,address,bytes32)\",_a,_b,_c),_avatar);\n }\n\n function genericCallDirect(address _avatar,address _contract,uint _a,address _b,bytes32 _c)\n public returns(bytes32)\n {\n Avatar(_avatar).genericCall(_contract,abi.encodeWithSignature(\"test(uint256,address,bytes32)\",_a,_b,_c));\n // solium-disable-next-line security/no-inline-assembly\n assembly {\n // Copy the returned data.\n returndatacopy(0, 0, returndatasize)\n return(0, returndatasize)\n }\n }\n}\n",
"sourcePath": "/Users/oren/daostack/daostack2/daostack/contracts/test/UniversalSchemeMock.sol",
"ast": {
"absolutePath": "/Users/oren/daostack/daostack2/daostack/contracts/test/UniversalSchemeMock.sol",
"exportedSymbols": {
"UniversalSchemeMock": [
6821
]
},
"id": 6822,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 6742,
"literals": [
"solidity",
"^",
"0.4",
".25"
],
"nodeType": "PragmaDirective",
"src": "0:24:23"
},
{
"absolutePath": "/Users/oren/daostack/daostack2/daostack/contracts/universalSchemes/UniversalScheme.sol",
"file": "../universalSchemes/UniversalScheme.sol",
"id": 6743,
"nodeType": "ImportDirective",
"scope": 6822,
"sourceUnit": 10669,
"src": "26:49:23",
"symbolAliases": [],
"unitAlias": ""
},
{
"absolutePath": "/Users/oren/daostack/daostack2/daostack/contracts/controller/ControllerInterface.sol",
"file": "../controller/ControllerInterface.sol",
"id": 6744,
"nodeType": "ImportDirective",
"scope": 6822,
"sourceUnit": 2007,
"src": "76:47:23",
"symbolAliases": [],
"unitAlias": ""
},
{
"baseContracts": [
{
"arguments": null,
"baseName": {
"contractScope": null,
"id": 6745,
"name": "UniversalScheme",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 10668,
"src": "158:15:23",
"typeDescriptions": {
"typeIdentifier": "t_contract$_UniversalScheme_$10668",
"typeString": "contract UniversalScheme"
}
},
"id": 6746,
"nodeType": "InheritanceSpecifier",
"src": "158:15:23"
}
],
"contractDependencies": [
10668,
10687,
20877
],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"id": 6821,
"linearizedBaseContracts": [
6821,
10668,
10687,
20877
],
"name": "UniversalSchemeMock",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": {
"id": 6749,
"nodeType": "Block",
"src": "202:7:23",
"statements": []
},
"documentation": null,
"id": 6750,
"implemented": true,
"isConstructor": true,
"isDeclaredConst": false,
"modifiers": [],
"name": "",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 6747,
"nodeType": "ParameterList",
"parameters": [],
"src": "192:2:23"
},
"payable": false,
"returnParameters": {
"id": 6748,
"nodeType": "ParameterList",
"parameters": [],
"src": "202:0:23"
},
"scope": 6821,
"src": "181:28:23",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": {
"id": 6788,
"nodeType": "Block",
"src": "333:207:23",
"statements": [
{
"assignments": [
6766
],
"declarations": [
{
"constant": false,
"id": 6766,
"name": "controller",
"nodeType": "VariableDeclaration",
"scope": 6789,
"src": "344:18:23",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 6765,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "344:7:23",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"id": 6772,
"initialValue": {
"argumentTypes": null,
"arguments": [],
"expression": {
"argumentTypes": [],
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 6768,
"name": "_avatar",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 6752,
"src": "372:7:23",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
}
],
"id": 6767,
"name": "Avatar",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 333,
"src": "365:6:23",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_contract$_Avatar_$333_$",
"typeString": "type(contract Avatar)"
}
},
"id": 6769,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "365:15:23",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Avatar_$333",
"typeString": "contract Avatar"
}
},
"id": 6770,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "owner",
"nodeType": "MemberAccess",
"referencedDeclaration": 20795,
"src": "365:21:23",
"typeDescriptions": {
"typeIdentifier": "t_function_external_view$__$returns$_t_address_$",
"typeString": "function () view external returns (address)"
}
},
"id": 6771,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "365:23:23",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "VariableDeclarationStatement",
"src": "344:44:23"
},
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 6777,
"name": "_contract",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 6754,
"src": "449:9:23",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"hexValue": "746573742875696e743235362c616464726573732c6279746573333229",
"id": 6780,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
"src": "483:31:23",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_stringliteral_f3e8dcd0a31cba4ab71a74b8a8e612076ddb255880c3bbc5aa0882e547e16d9c",
"typeString": "literal_string \"test(uint256,address,bytes32)\""
},
"value": "test(uint256,address,bytes32)"
},
{
"argumentTypes": null,
"id": 6781,
"name": "_a",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 6756,
"src": "515:2:23",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
{
"argumentTypes": null,
"id": 6782,
"name": "_b",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 6758,
"src": "518:2:23",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"argumentTypes": null,
"id": 6783,
"name": "_c",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 6760,
"src": "521:2:23",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_stringliteral_f3e8dcd0a31cba4ab71a74b8a8e612076ddb255880c3bbc5aa0882e547e16d9c",
"typeString": "literal_string \"test(uint256,address,bytes32)\""
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
{
"typeIdentifier": "t_address",
"typeString": "address"
},
{
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
],
"expression": {
"argumentTypes": null,
"id": 6778,
"name": "abi",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 21536,
"src": "459:3:23",
"typeDescriptions": {
"typeIdentifier": "t_magic_abi",
"typeString": "abi"
}
},
"id": 6779,
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"memberName": "encodeWithSignature",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
"src": "459:23:23",
"typeDescriptions": {
"typeIdentifier": "t_function_abiencodewithsignature_pure$_t_string_memory_ptr_$returns$_t_bytes_memory_ptr_$",
"typeString": "function (string memory) pure returns (bytes memory)"
}
},
"id": 6784,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "459:65:23",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
}
},
{
"argumentTypes": null,
"id": 6785,
"name": "_avatar",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 6752,
"src": "525:7:23",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
},
{
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
},
{
"typeIdentifier": "t_address",
"typeString": "address"
}
],
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 6774,
"name": "controller",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 6766,
"src": "425:10:23",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
}
],
"id": 6773,
"name": "ControllerInterface",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 2006,
"src": "405:19:23",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_contract$_ControllerInterface_$2006_$",
"typeString": "type(contract ControllerInterface)"
}
},
"id": 6775,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "405:31:23",
"typeDescriptions": {
"typeIdentifier": "t_contract$_ControllerInterface_$2006",
"typeString": "contract ControllerInterface"
}
},
"id": 6776,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "genericCall",
"nodeType": "MemberAccess",
"referencedDeclaration": 1933,
"src": "405:43:23",
"typeDescriptions": {
"typeIdentifier": "t_function_external_nonpayable$_t_address_$_t_bytes_memory_ptr_$_t_address_$returns$_t_bytes32_$",
"typeString": "function (address,bytes memory,address) external returns (bytes32)"
}
},
"id": 6786,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "405:128:23",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"functionReturnParameters": 6764,
"id": 6787,
"nodeType": "Return",
"src": "398:135:23"
}
]
},
"documentation": null,
"id": 6789,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "genericCall",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 6761,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 6752,
"name": "_avatar",
"nodeType": "VariableDeclaration",
"scope": 6789,
"src": "236:15:23",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 6751,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "236:7:23",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 6754,
"name": "_contract",
"nodeType": "VariableDeclaration",
"scope": 6789,
"src": "252:17:23",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 6753,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "252:7:23",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 6756,
"name": "_a",
"nodeType": "VariableDeclaration",
"scope": 6789,
"src": "270:7:23",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 6755,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "270:4:23",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 6758,
"name": "_b",
"nodeType": "VariableDeclaration",
"scope": 6789,
"src": "278:10:23",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 6757,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "278:7:23",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 6760,
"name": "_c",
"nodeType": "VariableDeclaration",
"scope": 6789,
"src": "289:10:23",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 6759,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "289:7:23",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "235:65:23"
},
"payable": false,
"returnParameters": {
"id": 6764,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 6763,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 6789,
"src": "320:7:23",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 6762,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "320:7:23",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "319:9:23"
},
"scope": 6821,
"src": "215:325:23",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": {
"id": 6819,
"nodeType": "Block",
"src": "670:328:23",
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 6808,
"name": "_contract",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 6793,
"src": "708:9:23",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"hexValue": "746573742875696e743235362c616464726573732c6279746573333229",
"id": 6811,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
"src": "742:31:23",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_stringliteral_f3e8dcd0a31cba4ab71a74b8a8e612076ddb255880c3bbc5aa0882e547e16d9c",
"typeString": "literal_string \"test(uint256,address,bytes32)\""
},
"value": "test(uint256,address,bytes32)"
},
{
"argumentTypes": null,
"id": 6812,
"name": "_a",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 6795,
"src": "774:2:23",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
{
"argumentTypes": null,
"id": 6813,
"name": "_b",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 6797,
"src": "777:2:23",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"argumentTypes": null,
"id": 6814,
"name": "_c",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 6799,
"src": "780:2:23",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_stringliteral_f3e8dcd0a31cba4ab71a74b8a8e612076ddb255880c3bbc5aa0882e547e16d9c",
"typeString": "literal_string \"test(uint256,address,bytes32)\""
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
{
"typeIdentifier": "t_address",
"typeString": "address"
},
{
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
],
"expression": {
"argumentTypes": null,
"id": 6809,
"name": "abi",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 21536,
"src": "718:3:23",
"typeDescriptions": {
"typeIdentifier": "t_magic_abi",
"typeString": "abi"
}
},
"id": 6810,
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"memberName": "encodeWithSignature",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
"src": "718:23:23",
"typeDescriptions": {
"typeIdentifier": "t_function_abiencodewithsignature_pure$_t_string_memory_ptr_$returns$_t_bytes_memory_ptr_$",
"typeString": "function (string memory) pure returns (bytes memory)"
}
},
"id": 6815,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "718:65:23",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
},
{
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
}
],
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 6805,
"name": "_avatar",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 6791,
"src": "687:7:23",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
}
],
"id": 6804,
"name": "Avatar",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 333,
"src": "680:6:23",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_contract$_Avatar_$333_$",