@gooddollar/goodcontracts
Version:
GoodDollar Contracts
1,038 lines • 45.3 kB
JSON
{
"contractName": "ActivePeriodMock",
"abi": [
{
"inputs": [
{
"internalType": "uint256",
"name": "_periodStart",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "_periodEnd",
"type": "uint256"
},
{
"internalType": "contract Avatar",
"name": "_avatar",
"type": "address"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "by",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "time",
"type": "uint256"
}
],
"name": "SchemeEnded",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "by",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "time",
"type": "uint256"
}
],
"name": "SchemeStarted",
"type": "event"
},
{
"constant": true,
"inputs": [],
"name": "isActive",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "periodEnd",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "periodStart",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [],
"name": "start",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [],
"name": "end",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
}
],
"metadata": "{\"compiler\":{\"version\":\"0.5.16+commit.9c3226ce\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_periodStart\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_periodEnd\",\"type\":\"uint256\"},{\"internalType\":\"contract Avatar\",\"name\":\"_avatar\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"by\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"time\",\"type\":\"uint256\"}],\"name\":\"SchemeEnded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"by\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"time\",\"type\":\"uint256\"}],\"name\":\"SchemeStarted\",\"type\":\"event\"},{\"constant\":false,\"inputs\":[],\"name\":\"end\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"isActive\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"periodEnd\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"periodStart\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"start\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"methods\":{}},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"/Users/hadar/workspace/GoodDollar/GoodBootstrap/packages/contracts/contracts/mocks/ActivePeriodMock.sol\":\"ActivePeriodMock\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"/Users/hadar/workspace/GoodDollar/GoodBootstrap/packages/contracts/contracts/dao/schemes/ActivePeriod.sol\":{\"keccak256\":\"0xd6b17fe8c789a03e87c80046319caee9fc9c9b5ded9008b09a550027c205c5ab\",\"urls\":[\"bzz-raw://0f77e8dc5f6abeefc9a2e185c257516f7f0266ae2781dd67c18daf1aac667daf\",\"dweb:/ipfs/QmbeRqLP2MvTZifqPBSK3PUDh8TjC1RaTA8b1dRRAXahmJ\"]},\"/Users/hadar/workspace/GoodDollar/GoodBootstrap/packages/contracts/contracts/mocks/ActivePeriodMock.sol\":{\"keccak256\":\"0xf5e75d758b737c78e2f2540947139d787936c3276c4e9bc55f4c7e086b2a98b0\",\"urls\":[\"bzz-raw://eba4913bc1dc1d68e08ab8f8a42d4db2442722d55f691ad7bd43b1d8c3b1e944\",\"dweb:/ipfs/QmfDWRbKh2JdFm7S94rrFMkU8eSHzLLBi5buQnz3bym9FJ\"]},\"@daostack/arc/contracts/controller/Avatar.sol\":{\"keccak256\":\"0x4e4fb9d3bc21f42fbfc6a01e9f8aa483a59e9f447b0d604f55b587a81ec09ef4\",\"urls\":[\"bzz-raw://9d3c1c7575cf6075ea1d89921f09b9b8e322b208dacaf0446cd4f64506c999f0\",\"dweb:/ipfs/QmVGDDHAR2ByuQpbgV7BBKXGEAcbaWvejpEZYzHgaagBFK\"]},\"@daostack/arc/contracts/controller/DAOToken.sol\":{\"keccak256\":\"0x9b213e4e3ceeffcfc1c962a43b70b8d763d8091a2dd713fc1989b97bb68786e6\",\"urls\":[\"bzz-raw://51d1d6e85fd90f45395a16b7a3c703c4636e836041f2a13f806e4222ef2e59c1\",\"dweb:/ipfs/QmQjeCeFf7TJzsYjT5scyZUDDixBA8Yy8YppgBuxcKPDnP\"]},\"@daostack/arc/contracts/libs/SafeERC20.sol\":{\"keccak256\":\"0xf6727d432f67046145b078f40c1cc4f6be7b0d12a6678ecaf457edf7550d244c\",\"urls\":[\"bzz-raw://5dba7734c4fed446c084a707761cbc66ba22b8b93ef53c8d4a22a76b6e271690\",\"dweb:/ipfs/QmP2VpPKUqLh4ZZs6LaxHVpCN1zCmiorygL9bMub4mbYCw\"]},\"@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": "0x608060405234801561001057600080fd5b506040516103823803806103828339818101604052606081101561003357600080fd5b50805160208201516040909201519091908282828183106100855760405162461bcd60e51b815260040180806020018281038252602681526020018061035c6026913960400191505060405180910390fd5b6000929092556001556002805460ff196001600160a01b0390931661010002610100600160a81b031990911617919091169055505050610292806100ca6000396000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c806322f3e2d41461005c578063506ec09514610078578063be9a655514610092578063eda4e6d61461009c578063efbe1c1c146100a4575b600080fd5b6100646100ac565b604080519115158252519081900360200190f35b6100806100b5565b60408051918252519081900360200190f35b61009a6100bb565b005b6100806100c5565b61009a6100cb565b60025460ff1681565b60015481565b6100c36100e5565b565b60005481565b6002546100c39061010090046001600160a01b03166101cb565b60005442101580156100f8575060015442105b610139576040805162461bcd60e51b815260206004820152600d60248201526c1b9bdd081a5b881c195c9a5bd9609a1b604482015290519081900360640190fd5b60025460ff1615610186576040805162461bcd60e51b815260206004820152601260248201527163616e6e6f7420737461727420747769636560701b604482015290519081900360640190fd5b6002805460ff1916600117905560408051428152905133917f727dd98701807c5fdf715b9f1fd7d87461a558e2ab3e05935add76e42e330fa3919081900360200190a2565b60025460ff16610212576040805162461bcd60e51b815260206004820152600d60248201526c6973206e6f742061637469766560981b604482015290519081900360640190fd5b6002805460ff1916905560408051428152905133917ef689ee9beb942c1c9c0d6642687ace05a9000d5f2979d344163c57829fa779919081900360200190a2806001600160a01b0316fffea265627a7a72315820ae1886e82217e5929032d6ad1619148a3d5a3c565b892b3688b7fb1f11c318a164736f6c6343000510003273746172742063616e6e6f74206265206166746572206e6f7220657175616c20746f20656e64",
"deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100575760003560e01c806322f3e2d41461005c578063506ec09514610078578063be9a655514610092578063eda4e6d61461009c578063efbe1c1c146100a4575b600080fd5b6100646100ac565b604080519115158252519081900360200190f35b6100806100b5565b60408051918252519081900360200190f35b61009a6100bb565b005b6100806100c5565b61009a6100cb565b60025460ff1681565b60015481565b6100c36100e5565b565b60005481565b6002546100c39061010090046001600160a01b03166101cb565b60005442101580156100f8575060015442105b610139576040805162461bcd60e51b815260206004820152600d60248201526c1b9bdd081a5b881c195c9a5bd9609a1b604482015290519081900360640190fd5b60025460ff1615610186576040805162461bcd60e51b815260206004820152601260248201527163616e6e6f7420737461727420747769636560701b604482015290519081900360640190fd5b6002805460ff1916600117905560408051428152905133917f727dd98701807c5fdf715b9f1fd7d87461a558e2ab3e05935add76e42e330fa3919081900360200190a2565b60025460ff16610212576040805162461bcd60e51b815260206004820152600d60248201526c6973206e6f742061637469766560981b604482015290519081900360640190fd5b6002805460ff1916905560408051428152905133917ef689ee9beb942c1c9c0d6642687ace05a9000d5f2979d344163c57829fa779919081900360200190a2806001600160a01b0316fffea265627a7a72315820ae1886e82217e5929032d6ad1619148a3d5a3c565b892b3688b7fb1f11c318a164736f6c63430005100032",
"sourceMap": "124:337:30:-;;;172:157;8:9:-1;5:2;;;30:1;27;20:12;5:2;172:157:30;;;;;;;;;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;172:157:30;;;;;;;;;;;;;;;;;1629:25:6;;;1621:76;;;;-1:-1:-1;;;1621:76:6;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1708:11;:26;;;;1744:9;:22;1776:6;:16;;-1:-1:-1;;;;;;;1776:16:6;;;;;-1:-1:-1;;;;;;1776:16:6;;;;1803;;;;;;-1:-1:-1;;;124:337:30;;;;;;",
"deployedSourceMap": "124:337:30:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;124:337:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;274:20:6;;;:::i;:::-;;;;;;;;;;;;;;;;;;243:24;;;:::i;:::-;;;;;;;;;;;;;;;;335:54:30;;;:::i;:::-;;211:26:6;;;:::i;395:64:30:-;;;:::i;274:20:6:-;;;;;;:::o;243:24::-;;;;:::o;335:54:30:-;369:13;:11;:13::i;:::-;335:54::o;211:26:6:-;;;;:::o;395:64:30:-;445:6;;427:25;;445:6;;;-1:-1:-1;;;;;445:6:30;427:17;:25::i;2010:134:6:-;918:11;;911:3;:18;;:37;;;;;939:9;;933:3;:15;911:37;903:63;;;;;-1:-1:-1;;;903:63:6;;;;;;;;;;;;-1:-1:-1;;;903:63:6;;;;;;;;;;;;;;;708:8;;;;707:9;699:40;;;;;-1:-1:-1;;;699:40:6;;;;;;;;;;;;-1:-1:-1;;;699:40:6;;;;;;;;;;;;;;;2077:8;:15;;-1:-1:-1;;2077:15:6;2088:4;2077:15;;;2107:30;;;2133:3;2107:30;;;;2121:10;;2107:30;;;;;;;;;;2010:134::o;2725:176::-;544:8;;;;536:34;;;;;-1:-1:-1;;;536:34:6;;;;;;;;;;;;-1:-1:-1;;;536:34:6;;;;;;;;;;;;;;;2795:8;:16;;-1:-1:-1;;2795:16:6;;;2826:28;;;2850:3;2826:28;;;;2838:10;;2826:28;;;;;;;;;;2885:7;-1:-1:-1;;;;;2864:30:6;",
"source": "pragma solidity >0.5.4;\n\nimport \"../dao/schemes/ActivePeriod.sol\";\nimport \"@daostack/arc/contracts/controller/Avatar.sol\";\n\ncontract ActivePeriodMock is ActivePeriod {\n constructor(\n uint256 _periodStart,\n uint256 _periodEnd,\n Avatar _avatar\n ) public ActivePeriod(_periodStart, _periodEnd, _avatar) {}\n\n function start() public {\n super.start();\n }\n\n function end() public {\n super.internalEnd(avatar);\n }\n}\n",
"sourcePath": "/Users/hadar/workspace/GoodDollar/GoodBootstrap/packages/contracts/contracts/mocks/ActivePeriodMock.sol",
"ast": {
"absolutePath": "/Users/hadar/workspace/GoodDollar/GoodBootstrap/packages/contracts/contracts/mocks/ActivePeriodMock.sol",
"exportedSymbols": {
"ActivePeriodMock": [
6300
]
},
"id": 6301,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 6261,
"literals": [
"solidity",
">",
"0.5",
".4"
],
"nodeType": "PragmaDirective",
"src": "0:23:30"
},
{
"absolutePath": "/Users/hadar/workspace/GoodDollar/GoodBootstrap/packages/contracts/contracts/dao/schemes/ActivePeriod.sol",
"file": "../dao/schemes/ActivePeriod.sol",
"id": 6262,
"nodeType": "ImportDirective",
"scope": 6301,
"sourceUnit": 2218,
"src": "25:41:30",
"symbolAliases": [],
"unitAlias": ""
},
{
"absolutePath": "@daostack/arc/contracts/controller/Avatar.sol",
"file": "@daostack/arc/contracts/controller/Avatar.sol",
"id": 6263,
"nodeType": "ImportDirective",
"scope": 6301,
"sourceUnit": 8542,
"src": "67:55:30",
"symbolAliases": [],
"unitAlias": ""
},
{
"baseContracts": [
{
"arguments": null,
"baseName": {
"contractScope": null,
"id": 6264,
"name": "ActivePeriod",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 2217,
"src": "153:12:30",
"typeDescriptions": {
"typeIdentifier": "t_contract$_ActivePeriod_$2217",
"typeString": "contract ActivePeriod"
}
},
"id": 6265,
"nodeType": "InheritanceSpecifier",
"src": "153:12:30"
}
],
"contractDependencies": [
2217
],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"id": 6300,
"linearizedBaseContracts": [
6300,
2217
],
"name": "ActivePeriodMock",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": {
"id": 6279,
"nodeType": "Block",
"src": "327:2:30",
"statements": []
},
"documentation": null,
"id": 6280,
"implemented": true,
"kind": "constructor",
"modifiers": [
{
"arguments": [
{
"argumentTypes": null,
"id": 6274,
"name": "_periodStart",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 6267,
"src": "292:12:30",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
{
"argumentTypes": null,
"id": 6275,
"name": "_periodEnd",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 6269,
"src": "306:10:30",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
{
"argumentTypes": null,
"id": 6276,
"name": "_avatar",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 6271,
"src": "318:7:30",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Avatar_$8541",
"typeString": "contract Avatar"
}
}
],
"id": 6277,
"modifierName": {
"argumentTypes": null,
"id": 6273,
"name": "ActivePeriod",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 2217,
"src": "279:12:30",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_contract$_ActivePeriod_$2217_$",
"typeString": "type(contract ActivePeriod)"
}
},
"nodeType": "ModifierInvocation",
"src": "279:47:30"
}
],
"name": "",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 6272,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 6267,
"name": "_periodStart",
"nodeType": "VariableDeclaration",
"scope": 6280,
"src": "193:20:30",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 6266,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "193:7:30",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 6269,
"name": "_periodEnd",
"nodeType": "VariableDeclaration",
"scope": 6280,
"src": "223:18:30",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 6268,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "223:7:30",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 6271,
"name": "_avatar",
"nodeType": "VariableDeclaration",
"scope": 6280,
"src": "251:14:30",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Avatar_$8541",
"typeString": "contract Avatar"
},
"typeName": {
"contractScope": null,
"id": 6270,
"name": "Avatar",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 8541,
"src": "251:6:30",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Avatar_$8541",
"typeString": "contract Avatar"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "183:88:30"
},
"returnParameters": {
"id": 6278,
"nodeType": "ParameterList",
"parameters": [],
"src": "327:0:30"
},
"scope": 6300,
"src": "172:157:30",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": {
"id": 6288,
"nodeType": "Block",
"src": "359:30:30",
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [],
"expression": {
"argumentTypes": [],
"expression": {
"argumentTypes": null,
"id": 6283,
"name": "super",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 18170,
"src": "369:5:30",
"typeDescriptions": {
"typeIdentifier": "t_super$_ActivePeriodMock_$6300",
"typeString": "contract super ActivePeriodMock"
}
},
"id": 6285,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "start",
"nodeType": "MemberAccess",
"referencedDeclaration": 2182,
"src": "369:11:30",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_nonpayable$__$returns$__$",
"typeString": "function ()"
}
},
"id": 6286,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "369:13:30",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 6287,
"nodeType": "ExpressionStatement",
"src": "369:13:30"
}
]
},
"documentation": null,
"id": 6289,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "start",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 6281,
"nodeType": "ParameterList",
"parameters": [],
"src": "349:2:30"
},
"returnParameters": {
"id": 6282,
"nodeType": "ParameterList",
"parameters": [],
"src": "359:0:30"
},
"scope": 6300,
"src": "335:54:30",
"stateMutability": "nonpayable",
"superFunction": 2182,
"visibility": "public"
},
{
"body": {
"id": 6298,
"nodeType": "Block",
"src": "417:42:30",
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 6295,
"name": "avatar",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 2074,
"src": "445:6:30",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Avatar_$8541",
"typeString": "contract Avatar"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_contract$_Avatar_$8541",
"typeString": "contract Avatar"
}
],
"expression": {
"argumentTypes": null,
"id": 6292,
"name": "super",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 18170,
"src": "427:5:30",
"typeDescriptions": {
"typeIdentifier": "t_super$_ActivePeriodMock_$6300",
"typeString": "contract super ActivePeriodMock"
}
},
"id": 6294,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "internalEnd",
"nodeType": "MemberAccess",
"referencedDeclaration": 2216,
"src": "427:17:30",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_nonpayable$_t_contract$_Avatar_$8541_$returns$__$",
"typeString": "function (contract Avatar)"
}
},
"id": 6296,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "427:25:30",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 6297,
"nodeType": "ExpressionStatement",
"src": "427:25:30"
}
]
},
"documentation": null,
"id": 6299,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "end",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 6290,
"nodeType": "ParameterList",
"parameters": [],
"src": "407:2:30"
},
"returnParameters": {
"id": 6291,
"nodeType": "ParameterList",
"parameters": [],
"src": "417:0:30"
},
"scope": 6300,
"src": "395:64:30",
"stateMutability": "nonpayable",
"superFunction": 2192,
"visibility": "public"
}
],
"scope": 6301,
"src": "124:337:30"
}
],
"src": "0:462:30"
},
"legacyAST": {
"absolutePath": "/Users/hadar/workspace/GoodDollar/GoodBootstrap/packages/contracts/contracts/mocks/ActivePeriodMock.sol",
"exportedSymbols": {
"ActivePeriodMock": [
6300
]
},
"id": 6301,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 6261,
"literals": [
"solidity",
">",
"0.5",
".4"
],
"nodeType": "PragmaDirective",
"src": "0:23:30"
},
{
"absolutePath": "/Users/hadar/workspace/GoodDollar/GoodBootstrap/packages/contracts/contracts/dao/schemes/ActivePeriod.sol",
"file": "../dao/schemes/ActivePeriod.sol",
"id": 6262,
"nodeType": "ImportDirective",
"scope": 6301,
"sourceUnit": 2218,
"src": "25:41:30",
"symbolAliases": [],
"unitAlias": ""
},
{
"absolutePath": "@daostack/arc/contracts/controller/Avatar.sol",
"file": "@daostack/arc/contracts/controller/Avatar.sol",
"id": 6263,
"nodeType": "ImportDirective",
"scope": 6301,
"sourceUnit": 8542,
"src": "67:55:30",
"symbolAliases": [],
"unitAlias": ""
},
{
"baseContracts": [
{
"arguments": null,
"baseName": {
"contractScope": null,
"id": 6264,
"name": "ActivePeriod",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 2217,
"src": "153:12:30",
"typeDescriptions": {
"typeIdentifier": "t_contract$_ActivePeriod_$2217",
"typeString": "contract ActivePeriod"
}
},
"id": 6265,
"nodeType": "InheritanceSpecifier",
"src": "153:12:30"
}
],
"contractDependencies": [
2217
],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"id": 6300,
"linearizedBaseContracts": [
6300,
2217
],
"name": "ActivePeriodMock",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": {
"id": 6279,
"nodeType": "Block",
"src": "327:2:30",
"statements": []
},
"documentation": null,
"id": 6280,
"implemented": true,
"kind": "constructor",
"modifiers": [
{
"arguments": [
{
"argumentTypes": null,
"id": 6274,
"name": "_periodStart",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 6267,
"src": "292:12:30",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
{
"argumentTypes": null,
"id": 6275,
"name": "_periodEnd",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 6269,
"src": "306:10:30",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
{
"argumentTypes": null,
"id": 6276,
"name": "_avatar",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 6271,
"src": "318:7:30",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Avatar_$8541",
"typeString": "contract Avatar"
}
}
],
"id": 6277,
"modifierName": {
"argumentTypes": null,
"id": 6273,
"name": "ActivePeriod",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 2217,
"src": "279:12:30",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_contract$_ActivePeriod_$2217_$",
"typeString": "type(contract ActivePeriod)"
}
},
"nodeType": "ModifierInvocation",
"src": "279:47:30"
}
],
"name": "",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 6272,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 6267,
"name": "_periodStart",
"nodeType": "VariableDeclaration",
"scope": 6280,
"src": "193:20:30",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 6266,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "193:7:30",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 6269,
"name": "_periodEnd",
"nodeType": "VariableDeclaration",
"scope": 6280,
"src": "223:18:30",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 6268,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "223:7:30",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 6271,
"name": "_avatar",
"nodeType": "VariableDeclaration",
"scope": 6280,
"src": "251:14:30",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Avatar_$8541",
"typeString": "contract Avatar"
},
"typeName": {
"contractScope": null,
"id": 6270,
"name": "Avatar",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 8541,
"src": "251:6:30",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Avatar_$8541",
"typeString": "contract Avatar"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "183:88:30"
},
"returnParameters": {
"id": 6278,
"nodeType": "ParameterList",
"parameters": [],
"src": "327:0:30"
},
"scope": 6300,
"src": "172:157:30",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": {
"id": 6288,
"nodeType": "Block",
"src": "359:30:30",
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [],
"expression": {
"argumentTypes": [],
"expression": {
"argumentTypes": null,
"id": 6283,
"name": "super",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 18170,
"src": "369:5:30",
"typeDescriptions": {
"typeIdentifier": "t_super$_ActivePeriodMock_$6300",
"typeString": "contract super ActivePeriodMock"
}
},
"id": 6285,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "start",
"nodeType": "MemberAccess",
"referencedDeclaration": 2182,
"src": "369:11:30",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_nonpayable$__$returns$__$",
"typeString": "function ()"
}
},
"id": 6286,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "369:13:30",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 6287,
"nodeType": "ExpressionStatement",
"src": "369:13:30"
}
]
},
"documentation": null,
"id": 6289,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "start",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 6281,
"nodeType": "ParameterList",
"parameters": [],
"src": "349:2:30"
},
"returnParameters": {
"id": 6282,
"nodeType": "ParameterList",
"parameters": [],
"src": "359:0:30"
},
"scope": 6300,
"src": "335:54:30",
"stateMutability": "nonpayable",
"superFunction": 2182,
"visibility": "public"
},
{
"body": {
"id": 6298,
"nodeType": "Block",
"src": "417:42:30",
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 6295,
"name": "avatar",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 2074,
"src": "445:6:30",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Avatar_$8541",
"typeString": "contract Avatar"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_contract$_Avatar_$8541",
"typeString": "contract Avatar"
}
],
"expression": {
"argumentTypes": null,
"id": 6292,
"name": "super",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 18170,
"src": "427:5:30",
"typeDescriptions": {
"typeIdentifier": "t_super$_ActivePeriodMock_$6300",
"typeString": "contract super ActivePeriodMock"
}
},
"id": 6294,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "internalEnd",
"nodeType": "MemberAccess",
"referencedDeclaration": 2216,
"src": "427:17:30",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_nonpayable$_t_contract$_Avatar_$8541_$returns$__$",
"typeString": "function (contract Avatar)"
}
},
"id": 6296,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "427:25:30",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 6297,
"nodeType": "ExpressionStatement",
"src": "427:25:30"
}
]
},
"documentation": null,
"id": 6299,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "end",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 6290,
"nodeType": "ParameterList",
"parameters": [],
"src": "407:2:30"
},
"returnParameters": {
"id": 6291,
"nodeType": "ParameterList",
"parameters": [],
"src": "417:0:30"
},
"scope": 6300,
"src": "395:64:30",
"stateMutability": "nonpayable",
"superFunction": 2192,
"visibility": "public"
}
],
"scope": 6301,
"src": "124:337:30"
}
],
"src": "0:462:30"
},
"compiler": {
"name": "solc",
"version": "0.5.16+commit.9c3226ce.Emscripten.clang"
},
"networks": {},
"schemaVersion": "3.2.3",
"updatedAt": "2022-10-27T11:34:11.229Z",
"devdoc": {
"methods": {}
},
"userdoc": {
"methods": {}
}
}