@gooddollar/goodcontracts
Version:
GoodDollar Contracts
1,027 lines • 67.9 kB
JSON
{
"contractName": "UniversalScheme",
"abi": [],
"metadata": "{\"compiler\":{\"version\":\"0.5.16+commit.9c3226ce\"},\"language\":\"Solidity\",\"output\":{\"abi\":[],\"devdoc\":{\"methods\":{}},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"@daostack/arc/contracts/universalSchemes/UniversalScheme.sol\":\"UniversalScheme\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"@daostack/arc/contracts/controller/Avatar.sol\":{\"keccak256\":\"0x4e4fb9d3bc21f42fbfc6a01e9f8aa483a59e9f447b0d604f55b587a81ec09ef4\",\"urls\":[\"bzz-raw://9d3c1c7575cf6075ea1d89921f09b9b8e322b208dacaf0446cd4f64506c999f0\",\"dweb:/ipfs/QmVGDDHAR2ByuQpbgV7BBKXGEAcbaWvejpEZYzHgaagBFK\"]},\"@daostack/arc/contracts/controller/ControllerInterface.sol\":{\"keccak256\":\"0x933e92612c90f292c7b59908958b003f1a13d90b97bed0572b566353c20974dc\",\"urls\":[\"bzz-raw://ce1fcf85b744fcce2dbd4205e3943e9b4ec36a5f0330d4bbf61e65f1a3e0e470\",\"dweb:/ipfs/QmUWiLkBDdekhpy93nTzBtxDHL6yNh6sTUM9G8VbsHcBzy\"]},\"@daostack/arc/contracts/controller/DAOToken.sol\":{\"keccak256\":\"0x9b213e4e3ceeffcfc1c962a43b70b8d763d8091a2dd713fc1989b97bb68786e6\",\"urls\":[\"bzz-raw://51d1d6e85fd90f45395a16b7a3c703c4636e836041f2a13f806e4222ef2e59c1\",\"dweb:/ipfs/QmQjeCeFf7TJzsYjT5scyZUDDixBA8Yy8YppgBuxcKPDnP\"]},\"@daostack/arc/contracts/globalConstraints/GlobalConstraintInterface.sol\":{\"keccak256\":\"0xc006c4591ec10b845a56e13f6791db2c428610953034686d52b2a934b6c8f36f\",\"urls\":[\"bzz-raw://19495cd88280e54d7ddcd043ffeff75e6d3777a0c42debcd61cae448e9497ea0\",\"dweb:/ipfs/QmYxWz7CgFmmddrcVXJKfob5Ktwykc2imNVUwLSR5WR8bJ\"]},\"@daostack/arc/contracts/libs/SafeERC20.sol\":{\"keccak256\":\"0xf6727d432f67046145b078f40c1cc4f6be7b0d12a6678ecaf457edf7550d244c\",\"urls\":[\"bzz-raw://5dba7734c4fed446c084a707761cbc66ba22b8b93ef53c8d4a22a76b6e271690\",\"dweb:/ipfs/QmP2VpPKUqLh4ZZs6LaxHVpCN1zCmiorygL9bMub4mbYCw\"]},\"@daostack/arc/contracts/universalSchemes/UniversalScheme.sol\":{\"keccak256\":\"0xcfdb7d336d21b3b16a31125d3bd8c88f7c4c944510f4488162247badb6411017\",\"urls\":[\"bzz-raw://d17df7fe23080da4da159c57a23793fed90dbc8129ab8d752365e6b5f07a9e2a\",\"dweb:/ipfs/QmUUNrcMqrxT3k1V4z9p9HJUnxPdNNgf5CB8NUHc5uMwBd\"]},\"@daostack/arc/contracts/universalSchemes/UniversalSchemeInterface.sol\":{\"keccak256\":\"0x956b0dbe20b6aeea74565a9204f72fba1580874d27cd63955f93e9491cabb6b1\",\"urls\":[\"bzz-raw://1bd1812db855997c2c5f3df4a0a5ae568977ac05c2066999a08ce251dce05c07\",\"dweb:/ipfs/QmRbvtTZHUnSypBqaiAUZxUbK8sGzgVpyK3f6zCz9utVDz\"]},\"@daostack/infra/contracts/Reputation.sol\":{\"keccak256\":\"0x3d226dac0fe7d758f0287fb28bc25fcec1f69d19888ae3a550fa49856d61c482\",\"urls\":[\"bzz-raw://8856852c8fe0ba1c9aab326f0a9a6e7f31a238de2778fa5188e6fc399f7eb352\",\"dweb:/ipfs/QmVH4ppR9Dk7v8yxaSgeArdMv9gBBVoQxEf4E3UsqQ4rY2\"]},\"openzeppelin-solidity/contracts/math/SafeMath.sol\":{\"keccak256\":\"0x965012d27b4262d7a41f5028cbb30c51ebd9ecd4be8fb30380aaa7a3c64fbc8b\",\"urls\":[\"bzz-raw://1eb493553b27efd46c231a836a83ce50d215639feb97b4aac9f301d0fd034ff5\",\"dweb:/ipfs/QmbMdvSXcqGKxeeYvzF3VrWpoHQyVzMXBhzhAokF2Gdymv\"]},\"openzeppelin-solidity/contracts/ownership/Ownable.sol\":{\"keccak256\":\"0x980de387a1a020a498f53d00f89fecebb12c949a17e8f160093c0303ede2b786\",\"urls\":[\"bzz-raw://f07a2c393caa85f62f0aaa461e3edd50aa59371d4209778ba0558d7f8b4b856c\",\"dweb:/ipfs/QmeN3ZiYGSjCnQFeYaJNgoXjF9eDue1g3e9pqManRkeBtV\"]},\"openzeppelin-solidity/contracts/token/ERC20/ERC20.sol\":{\"keccak256\":\"0xba431353cb4fe70777ac026231eb5468e41aa1e81240a2b8136917acc5fff4dc\",\"urls\":[\"bzz-raw://f40c91ca270bdc9b156f339081a0fc2bbcf73cf5f62b8c73ba555df753ff6619\",\"dweb:/ipfs/QmT8y2VVjGaFdGphpcXrgvdPi2EgF9LuCDgJiJ89LvpFRV\"]},\"openzeppelin-solidity/contracts/token/ERC20/ERC20Burnable.sol\":{\"keccak256\":\"0xa3e68fd7f987c8fbdaf4867d428a69a15f3cf2f69709a5b0a0fbef750b0e6fbc\",\"urls\":[\"bzz-raw://50b1ff986d3b2793850a66c8429d9886fdfb134b1509b3e98714e3e2a71e24f5\",\"dweb:/ipfs/QmSQBYPeY9tbR3ciGRNQqvcWKnNiuxtVMq2MsPWpLwuGGm\"]},\"openzeppelin-solidity/contracts/token/ERC20/IERC20.sol\":{\"keccak256\":\"0x079c4e23ee448f529e43bfa3c4e8fb4be52cd0318ee923a276835bedf45b93d8\",\"urls\":[\"bzz-raw://ee762ff5b7746e41d27dcbcea00c7a3034b58adb1b45ddadddb5b721aff450df\",\"dweb:/ipfs/QmdxqtgEFZjHCoiYyz6pUAQ5iBm7As25jcyEbZoTaAgyDa\"]},\"openzeppelin-solidity/contracts/utils/Address.sol\":{\"keccak256\":\"0x5c731061b804fa256fc8c05150eafe5d20b6bb94541a8f187912bf84f7033f34\",\"urls\":[\"bzz-raw://a3c2d9f046beebab7fb41b1b124a6a124a36f510f7c67365861402ac831bdc71\",\"dweb:/ipfs/QmUtASRgitregbKH83anopLtF9vFQe3BKeAjhUa6F7t9YV\"]}},\"version\":1}",
"bytecode": "0x6080604052348015600f57600080fd5b50603e80601d6000396000f3fe6080604052600080fdfea265627a7a723158209a2294b1a16a85424d077d625e4f124d95dbc86ac92d1162516949a6434cec3e64736f6c63430005100032",
"deployedBytecode": "0x6080604052600080fdfea265627a7a723158209a2294b1a16a85424d077d625e4f124d95dbc86ac92d1162516949a6434cec3e64736f6c63430005100032",
"sourceMap": "151:490:58:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;151:490:58;;;;;;;",
"deployedSourceMap": "151:490:58:-;;;;;",
"source": "pragma solidity ^0.5.4;\n\nimport \"./UniversalSchemeInterface.sol\";\nimport \"../controller/ControllerInterface.sol\";\nimport \"../controller/Avatar.sol\";\n\n\ncontract UniversalScheme is UniversalSchemeInterface {\n /**\n * @dev get the parameters for the current scheme from the controller\n */\n function getParametersFromController(Avatar _avatar) internal view returns(bytes32) {\n require(ControllerInterface(_avatar.owner()).isSchemeRegistered(address(this), address(_avatar)),\n \"scheme is not registered\");\n return ControllerInterface(_avatar.owner()).getSchemeParameters(address(this), address(_avatar));\n }\n}\n",
"sourcePath": "@daostack/arc/contracts/universalSchemes/UniversalScheme.sol",
"ast": {
"absolutePath": "@daostack/arc/contracts/universalSchemes/UniversalScheme.sol",
"exportedSymbols": {
"UniversalScheme": [
15223
]
},
"id": 15224,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 15178,
"literals": [
"solidity",
"^",
"0.5",
".4"
],
"nodeType": "PragmaDirective",
"src": "0:23:58"
},
{
"absolutePath": "@daostack/arc/contracts/universalSchemes/UniversalSchemeInterface.sol",
"file": "./UniversalSchemeInterface.sol",
"id": 15179,
"nodeType": "ImportDirective",
"scope": 15224,
"sourceUnit": 15235,
"src": "25:40:58",
"symbolAliases": [],
"unitAlias": ""
},
{
"absolutePath": "@daostack/arc/contracts/controller/ControllerInterface.sol",
"file": "../controller/ControllerInterface.sol",
"id": 15180,
"nodeType": "ImportDirective",
"scope": 15224,
"sourceUnit": 14395,
"src": "66:47:58",
"symbolAliases": [],
"unitAlias": ""
},
{
"absolutePath": "@daostack/arc/contracts/controller/Avatar.sol",
"file": "../controller/Avatar.sol",
"id": 15181,
"nodeType": "ImportDirective",
"scope": 15224,
"sourceUnit": 12706,
"src": "114:34:58",
"symbolAliases": [],
"unitAlias": ""
},
{
"baseContracts": [
{
"arguments": null,
"baseName": {
"contractScope": null,
"id": 15182,
"name": "UniversalSchemeInterface",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 15234,
"src": "179:24:58",
"typeDescriptions": {
"typeIdentifier": "t_contract$_UniversalSchemeInterface_$15234",
"typeString": "contract UniversalSchemeInterface"
}
},
"id": 15183,
"nodeType": "InheritanceSpecifier",
"src": "179:24:58"
}
],
"contractDependencies": [
15234
],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"id": 15223,
"linearizedBaseContracts": [
15223,
15234
],
"name": "UniversalScheme",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": {
"id": 15221,
"nodeType": "Block",
"src": "383:256:58",
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 15198,
"name": "this",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 22219,
"src": "465:4:58",
"typeDescriptions": {
"typeIdentifier": "t_contract$_UniversalScheme_$15223",
"typeString": "contract UniversalScheme"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_contract$_UniversalScheme_$15223",
"typeString": "contract UniversalScheme"
}
],
"id": 15197,
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"nodeType": "ElementaryTypeNameExpression",
"src": "457:7:58",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_address_$",
"typeString": "type(address)"
},
"typeName": "address"
},
"id": 15199,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "457:13:58",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 15201,
"name": "_avatar",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 15185,
"src": "480:7:58",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Avatar_$12705",
"typeString": "contract Avatar"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_contract$_Avatar_$12705",
"typeString": "contract Avatar"
}
],
"id": 15200,
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"nodeType": "ElementaryTypeNameExpression",
"src": "472:7:58",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_address_$",
"typeString": "type(address)"
},
"typeName": "address"
},
"id": 15202,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "472:16:58",
"typeDescriptions": {
"typeIdentifier": "t_address_payable",
"typeString": "address payable"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
},
{
"typeIdentifier": "t_address_payable",
"typeString": "address payable"
}
],
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"arguments": [],
"expression": {
"argumentTypes": [],
"expression": {
"argumentTypes": null,
"id": 15192,
"name": "_avatar",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 15185,
"src": "421:7:58",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Avatar_$12705",
"typeString": "contract Avatar"
}
},
"id": 15193,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "owner",
"nodeType": "MemberAccess",
"referencedDeclaration": 21342,
"src": "421:13:58",
"typeDescriptions": {
"typeIdentifier": "t_function_external_view$__$returns$_t_address_$",
"typeString": "function () view external returns (address)"
}
},
"id": 15194,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "421:15:58",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
}
],
"id": 15191,
"name": "ControllerInterface",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 14394,
"src": "401:19:58",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_contract$_ControllerInterface_$14394_$",
"typeString": "type(contract ControllerInterface)"
}
},
"id": 15195,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "401:36:58",
"typeDescriptions": {
"typeIdentifier": "t_contract$_ControllerInterface_$14394",
"typeString": "contract ControllerInterface"
}
},
"id": 15196,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "isSchemeRegistered",
"nodeType": "MemberAccess",
"referencedDeclaration": 14348,
"src": "401:55:58",
"typeDescriptions": {
"typeIdentifier": "t_function_external_view$_t_address_$_t_address_$returns$_t_bool_$",
"typeString": "function (address,address) view external returns (bool)"
}
},
"id": 15203,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "401:88:58",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
{
"argumentTypes": null,
"hexValue": "736368656d65206973206e6f742072656769737465726564",
"id": 15204,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
"src": "499:26:58",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_stringliteral_f49accaed0fc85cca97fe84c1d1aed7770001ae630847b7bcf2d35045e44c8d1",
"typeString": "literal_string \"scheme is not registered\""
},
"value": "scheme is not registered"
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
},
{
"typeIdentifier": "t_stringliteral_f49accaed0fc85cca97fe84c1d1aed7770001ae630847b7bcf2d35045e44c8d1",
"typeString": "literal_string \"scheme is not registered\""
}
],
"id": 15190,
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
22174,
22175
],
"referencedDeclaration": 22175,
"src": "393:7:58",
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
"typeString": "function (bool,string memory) pure"
}
},
"id": 15205,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "393:133:58",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 15206,
"nodeType": "ExpressionStatement",
"src": "393:133:58"
},
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 15214,
"name": "this",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 22219,
"src": "608:4:58",
"typeDescriptions": {
"typeIdentifier": "t_contract$_UniversalScheme_$15223",
"typeString": "contract UniversalScheme"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_contract$_UniversalScheme_$15223",
"typeString": "contract UniversalScheme"
}
],
"id": 15213,
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"nodeType": "ElementaryTypeNameExpression",
"src": "600:7:58",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_address_$",
"typeString": "type(address)"
},
"typeName": "address"
},
"id": 15215,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "600:13:58",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 15217,
"name": "_avatar",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 15185,
"src": "623:7:58",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Avatar_$12705",
"typeString": "contract Avatar"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_contract$_Avatar_$12705",
"typeString": "contract Avatar"
}
],
"id": 15216,
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"nodeType": "ElementaryTypeNameExpression",
"src": "615:7:58",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_address_$",
"typeString": "type(address)"
},
"typeName": "address"
},
"id": 15218,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "615:16:58",
"typeDescriptions": {
"typeIdentifier": "t_address_payable",
"typeString": "address payable"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
},
{
"typeIdentifier": "t_address_payable",
"typeString": "address payable"
}
],
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"arguments": [],
"expression": {
"argumentTypes": [],
"expression": {
"argumentTypes": null,
"id": 15208,
"name": "_avatar",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 15185,
"src": "563:7:58",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Avatar_$12705",
"typeString": "contract Avatar"
}
},
"id": 15209,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "owner",
"nodeType": "MemberAccess",
"referencedDeclaration": 21342,
"src": "563:13:58",
"typeDescriptions": {
"typeIdentifier": "t_function_external_view$__$returns$_t_address_$",
"typeString": "function () view external returns (address)"
}
},
"id": 15210,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "563:15:58",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
}
],
"id": 15207,
"name": "ControllerInterface",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 14394,
"src": "543:19:58",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_contract$_ControllerInterface_$14394_$",
"typeString": "type(contract ControllerInterface)"
}
},
"id": 15211,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "543:36:58",
"typeDescriptions": {
"typeIdentifier": "t_contract$_ControllerInterface_$14394",
"typeString": "contract ControllerInterface"
}
},
"id": 15212,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "getSchemeParameters",
"nodeType": "MemberAccess",
"referencedDeclaration": 14357,
"src": "543:56:58",
"typeDescriptions": {
"typeIdentifier": "t_function_external_view$_t_address_$_t_address_$returns$_t_bytes32_$",
"typeString": "function (address,address) view external returns (bytes32)"
}
},
"id": 15219,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "543:89:58",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"functionReturnParameters": 15189,
"id": 15220,
"nodeType": "Return",
"src": "536:96:58"
}
]
},
"documentation": " @dev get the parameters for the current scheme from the controller",
"id": 15222,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "getParametersFromController",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 15186,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 15185,
"name": "_avatar",
"nodeType": "VariableDeclaration",
"scope": 15222,
"src": "336:14:58",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Avatar_$12705",
"typeString": "contract Avatar"
},
"typeName": {
"contractScope": null,
"id": 15184,
"name": "Avatar",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 12705,
"src": "336:6:58",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Avatar_$12705",
"typeString": "contract Avatar"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "335:16:58"
},
"returnParameters": {
"id": 15189,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 15188,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 15222,
"src": "374:7:58",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 15187,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "374:7:58",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "373:9:58"
},
"scope": 15223,
"src": "299:340:58",
"stateMutability": "view",
"superFunction": 15233,
"visibility": "internal"
}
],
"scope": 15224,
"src": "151:490:58"
}
],
"src": "0:642:58"
},
"legacyAST": {
"absolutePath": "@daostack/arc/contracts/universalSchemes/UniversalScheme.sol",
"exportedSymbols": {
"UniversalScheme": [
15223
]
},
"id": 15224,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 15178,
"literals": [
"solidity",
"^",
"0.5",
".4"
],
"nodeType": "PragmaDirective",
"src": "0:23:58"
},
{
"absolutePath": "@daostack/arc/contracts/universalSchemes/UniversalSchemeInterface.sol",
"file": "./UniversalSchemeInterface.sol",
"id": 15179,
"nodeType": "ImportDirective",
"scope": 15224,
"sourceUnit": 15235,
"src": "25:40:58",
"symbolAliases": [],
"unitAlias": ""
},
{
"absolutePath": "@daostack/arc/contracts/controller/ControllerInterface.sol",
"file": "../controller/ControllerInterface.sol",
"id": 15180,
"nodeType": "ImportDirective",
"scope": 15224,
"sourceUnit": 14395,
"src": "66:47:58",
"symbolAliases": [],
"unitAlias": ""
},
{
"absolutePath": "@daostack/arc/contracts/controller/Avatar.sol",
"file": "../controller/Avatar.sol",
"id": 15181,
"nodeType": "ImportDirective",
"scope": 15224,
"sourceUnit": 12706,
"src": "114:34:58",
"symbolAliases": [],
"unitAlias": ""
},
{
"baseContracts": [
{
"arguments": null,
"baseName": {
"contractScope": null,
"id": 15182,
"name": "UniversalSchemeInterface",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 15234,
"src": "179:24:58",
"typeDescriptions": {
"typeIdentifier": "t_contract$_UniversalSchemeInterface_$15234",
"typeString": "contract UniversalSchemeInterface"
}
},
"id": 15183,
"nodeType": "InheritanceSpecifier",
"src": "179:24:58"
}
],
"contractDependencies": [
15234
],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"id": 15223,
"linearizedBaseContracts": [
15223,
15234
],
"name": "UniversalScheme",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": {
"id": 15221,
"nodeType": "Block",
"src": "383:256:58",
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 15198,
"name": "this",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 22219,
"src": "465:4:58",
"typeDescriptions": {
"typeIdentifier": "t_contract$_UniversalScheme_$15223",
"typeString": "contract UniversalScheme"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_contract$_UniversalScheme_$15223",
"typeString": "contract UniversalScheme"
}
],
"id": 15197,
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"nodeType": "ElementaryTypeNameExpression",
"src": "457:7:58",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_address_$",
"typeString": "type(address)"
},
"typeName": "address"
},
"id": 15199,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "457:13:58",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 15201,
"name": "_avatar",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 15185,
"src": "480:7:58",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Avatar_$12705",
"typeString": "contract Avatar"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_contract$_Avatar_$12705",
"typeString": "contract Avatar"
}
],
"id": 15200,
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"nodeType": "ElementaryTypeNameExpression",
"src": "472:7:58",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_address_$",
"typeString": "type(address)"
},
"typeName": "address"
},
"id": 15202,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "472:16:58",
"typeDescriptions": {
"typeIdentifier": "t_address_payable",
"typeString": "address payable"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
},
{
"typeIdentifier": "t_address_payable",
"typeString": "address payable"
}
],
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"arguments": [],
"expression": {
"argumentTypes": [],
"expression": {
"argumentTypes": null,
"id": 15192,
"name": "_avatar",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 15185,
"src": "421:7:58",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Avatar_$12705",
"typeString": "contract Avatar"
}
},
"id": 15193,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "owner",
"nodeType": "MemberAccess",
"referencedDeclaration": 21342,
"src": "421:13:58",
"typeDescriptions": {
"typeIdentifier": "t_function_external_view$__$returns$_t_address_$",
"typeString": "function () view external returns (address)"
}
},
"id": 15194,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "421:15:58",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
}
],
"id": 15191,
"name": "ControllerInterface",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 14394,
"src": "401:19:58",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_contract$_ControllerInterface_$14394_$",
"typeString": "type(contract ControllerInterface)"
}
},
"id": 15195,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "401:36:58",
"typeDescriptions": {
"typeIdentifier": "t_contract$_ControllerInterface_$14394",
"typeString": "contract ControllerInterface"
}
},
"id": 15196,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "isSchemeRegistered",
"nodeType": "MemberAccess",
"referencedDecl