{
  "contractName": "ActionMock",
  "abi": [
    {
      "constant": false,
      "inputs": [
        {
          "name": "avatar",
          "type": "address"
        },
        {
          "name": "params",
          "type": "bytes32[]"
        }
      ],
      "name": "genericAction",
      "outputs": [
        {
          "name": "",
          "type": "bool"
        }
      ],
      "payable": false,
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "constant": false,
      "inputs": [
        {
          "name": "params",
          "type": "bytes32[]"
        }
      ],
      "name": "action",
      "outputs": [
        {
          "name": "",
          "type": "bool"
        }
      ],
      "payable": false,
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": false,
          "name": "_sender",
          "type": "address"
        },
        {
          "indexed": false,
          "name": "_param",
          "type": "bytes32"
        }
      ],
      "name": "Action",
      "type": "event"
    }
  ],
  "bytecode": "0x6060604052341561000f57600080fd5b6102c68061001e6000396000f30060606040526004361061004b5763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416636ce15a5481146100505780637ff4b630146100ce575b600080fd5b341561005b57600080fd5b6100ba6004803573ffffffffffffffffffffffffffffffffffffffff1690604460248035908101908301358060208082020160405190810160405280939291908181526020018383602002808284375094965061011d95505050505050565b604051901515815260200160405180910390f35b34156100d957600080fd5b6100ba600460248135818101908301358060208181020160405190810160405280939291908181526020018383602002808284375094965061022995505050505050565b60008273ffffffffffffffffffffffffffffffffffffffff16636ce15a5430846000604051602001526040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200180602001828103825283818151815260200191508051906020019060200280838360005b838110156101e35780820151838201526020016101cb565b505050509050019350505050602060405180830381600087803b151561020857600080fd5b6102c65a03f1151561021957600080fd5b5050506040518051949350505050565b60007f38986d52282e94f11fdf413d0c6cb2f89ce3ef8986c7e800152f440db2bcbfb2338360008151811061025a57fe5b9060200190602002015160405173ffffffffffffffffffffffffffffffffffffffff909216825260208201526040908101905180910390a15060019190505600a165627a7a72305820f5d4ab90bfbc9236cebc708ada11b7c975830aa0e68984d58f76ebc604e8845c0029",
  "deployedBytecode": "0x60606040526004361061004b5763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416636ce15a5481146100505780637ff4b630146100ce575b600080fd5b341561005b57600080fd5b6100ba6004803573ffffffffffffffffffffffffffffffffffffffff1690604460248035908101908301358060208082020160405190810160405280939291908181526020018383602002808284375094965061011d95505050505050565b604051901515815260200160405180910390f35b34156100d957600080fd5b6100ba600460248135818101908301358060208181020160405190810160405280939291908181526020018383602002808284375094965061022995505050505050565b60008273ffffffffffffffffffffffffffffffffffffffff16636ce15a5430846000604051602001526040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200180602001828103825283818151815260200191508051906020019060200280838360005b838110156101e35780820151838201526020016101cb565b505050509050019350505050602060405180830381600087803b151561020857600080fd5b6102c65a03f1151561021957600080fd5b5050506040518051949350505050565b60007f38986d52282e94f11fdf413d0c6cb2f89ce3ef8986c7e800152f440db2bcbfb2338360008151811061025a57fe5b9060200190602002015160405173ffffffffffffffffffffffffffffffffffffffff909216825260208201526040908101905180910390a15060019190505600a165627a7a72305820f5d4ab90bfbc9236cebc708ada11b7c975830aa0e68984d58f76ebc604e8845c0029",
  "sourceMap": "63:369:14:-;;;;;;;;;;;;;;;;;",
  "deployedSourceMap": "63:369:14:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;287:142;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;287:142:14;;-1:-1:-1;287:142:14;;-1:-1:-1;;;;;;287:142:14;;;;;;;;;;;;;;;;;;160:121;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;160:121:14;;-1:-1:-1;160:121:14;;-1:-1:-1;;;;;;160:121:14;287:142;357:4;380:6;:20;;;409:4;415:6;380:42;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:2;8:100;;;99:1;94:3;90;84:5;71:3;;;64:6;52:2;45:3;8:100;;;12:14;3:109;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;287:142:14;-1:-1:-1;;;;287:142:14:o;160:121::-;209:4;225:28;232:10;243:6;250:1;243:9;;;;;;;;;;;;;;;;225:28;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;270:4:14;160:121;;;:::o",
  "source": "pragma solidity ^0.4.18;\n\nimport \"../controller/Avatar.sol\";\n\n\ncontract ActionMock is ActionInterface {\n\n    event Action(address _sender,bytes32 _param);\n\n    function action(bytes32[] params) public returns(bool) {\n        Action(msg.sender,params[0]);\n        return true;\n    }\n\n    function genericAction(Avatar avatar,bytes32[] params) public returns(bool) {\n        return avatar.genericAction(address(this),params);\n    }\n\n}\n",
  "sourcePath": "/Users/oren/daostack/daostack2/daostack/contracts/test/ActionMock.sol",
  "ast": {
    "attributes": {
      "absolutePath": "/Users/oren/daostack/daostack2/daostack/contracts/test/ActionMock.sol",
      "exportedSymbols": {
        "ActionMock": [
          6864
        ]
      }
    },
    "children": [
      {
        "attributes": {
          "literals": [
            "solidity",
            "^",
            "0.4",
            ".18"
          ]
        },
        "id": 6816,
        "name": "PragmaDirective",
        "src": "0:24:14"
      },
      {
        "attributes": {
          "SourceUnit": 3874,
          "absolutePath": "/Users/oren/daostack/daostack2/daostack/contracts/controller/Avatar.sol",
          "file": "../controller/Avatar.sol",
          "scope": 6865,
          "symbolAliases": [
            null
          ],
          "unitAlias": ""
        },
        "id": 6817,
        "name": "ImportDirective",
        "src": "26:34:14"
      },
      {
        "attributes": {
          "contractDependencies": [
            3598
          ],
          "contractKind": "contract",
          "documentation": null,
          "fullyImplemented": true,
          "linearizedBaseContracts": [
            6864,
            3598
          ],
          "name": "ActionMock",
          "scope": 6865
        },
        "children": [
          {
            "attributes": {
              "arguments": [
                null
              ]
            },
            "children": [
              {
                "attributes": {
                  "contractScope": null,
                  "name": "ActionInterface",
                  "referencedDeclaration": 3598,
                  "type": "contract ActionInterface"
                },
                "id": 6818,
                "name": "UserDefinedTypeName",
                "src": "86:15:14"
              }
            ],
            "id": 6819,
            "name": "InheritanceSpecifier",
            "src": "86:15:14"
          },
          {
            "attributes": {
              "anonymous": false,
              "name": "Action"
            },
            "children": [
              {
                "children": [
                  {
                    "attributes": {
                      "constant": false,
                      "indexed": false,
                      "name": "_sender",
                      "scope": 6825,
                      "stateVariable": false,
                      "storageLocation": "default",
                      "type": "address",
                      "value": null,
                      "visibility": "internal"
                    },
                    "children": [
                      {
                        "attributes": {
                          "name": "address",
                          "type": "address"
                        },
                        "id": 6820,
                        "name": "ElementaryTypeName",
                        "src": "122:7:14"
                      }
                    ],
                    "id": 6821,
                    "name": "VariableDeclaration",
                    "src": "122:15:14"
                  },
                  {
                    "attributes": {
                      "constant": false,
                      "indexed": false,
                      "name": "_param",
                      "scope": 6825,
                      "stateVariable": false,
                      "storageLocation": "default",
                      "type": "bytes32",
                      "value": null,
                      "visibility": "internal"
                    },
                    "children": [
                      {
                        "attributes": {
                          "name": "bytes32",
                          "type": "bytes32"
                        },
                        "id": 6822,
                        "name": "ElementaryTypeName",
                        "src": "138:7:14"
                      }
                    ],
                    "id": 6823,
                    "name": "VariableDeclaration",
                    "src": "138:14:14"
                  }
                ],
                "id": 6824,
                "name": "ParameterList",
                "src": "121:32:14"
              }
            ],
            "id": 6825,
            "name": "EventDefinition",
            "src": "109:45:14"
          },
          {
            "attributes": {
              "constant": false,
              "implemented": true,
              "isConstructor": false,
              "modifiers": [
                null
              ],
              "name": "action",
              "payable": false,
              "scope": 6864,
              "stateMutability": "nonpayable",
              "superFunction": 3597,
              "visibility": "public"
            },
            "children": [
              {
                "children": [
                  {
                    "attributes": {
                      "constant": false,
                      "name": "params",
                      "scope": 6844,
                      "stateVariable": false,
                      "storageLocation": "default",
                      "type": "bytes32[] memory",
                      "value": null,
                      "visibility": "internal"
                    },
                    "children": [
                      {
                        "attributes": {
                          "length": null,
                          "type": "bytes32[] storage pointer"
                        },
                        "children": [
                          {
                            "attributes": {
                              "name": "bytes32",
                              "type": "bytes32"
                            },
                            "id": 6826,
                            "name": "ElementaryTypeName",
                            "src": "176:7:14"
                          }
                        ],
                        "id": 6827,
                        "name": "ArrayTypeName",
                        "src": "176:9:14"
                      }
                    ],
                    "id": 6828,
                    "name": "VariableDeclaration",
                    "src": "176:16:14"
                  }
                ],
                "id": 6829,
                "name": "ParameterList",
                "src": "175:18:14"
              },
              {
                "children": [
                  {
                    "attributes": {
                      "constant": false,
                      "name": "",
                      "scope": 6844,
                      "stateVariable": false,
                      "storageLocation": "default",
                      "type": "bool",
                      "value": null,
                      "visibility": "internal"
                    },
                    "children": [
                      {
                        "attributes": {
                          "name": "bool",
                          "type": "bool"
                        },
                        "id": 6830,
                        "name": "ElementaryTypeName",
                        "src": "209:4:14"
                      }
                    ],
                    "id": 6831,
                    "name": "VariableDeclaration",
                    "src": "209:4:14"
                  }
                ],
                "id": 6832,
                "name": "ParameterList",
                "src": "208:6:14"
              },
              {
                "children": [
                  {
                    "children": [
                      {
                        "attributes": {
                          "argumentTypes": null,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "isStructConstructorCall": false,
                          "lValueRequested": false,
                          "names": [
                            null
                          ],
                          "type": "tuple()",
                          "type_conversion": false
                        },
                        "children": [
                          {
                            "attributes": {
                              "argumentTypes": [
                                {
                                  "typeIdentifier": "t_address",
                                  "typeString": "address"
                                },
                                {
                                  "typeIdentifier": "t_bytes32",
                                  "typeString": "bytes32"
                                }
                              ],
                              "overloadedDeclarations": [
                                null
                              ],
                              "referencedDeclaration": 6825,
                              "type": "function (address,bytes32)",
                              "value": "Action"
                            },
                            "id": 6833,
                            "name": "Identifier",
                            "src": "225:6:14"
                          },
                          {
                            "attributes": {
                              "argumentTypes": null,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": false,
                              "lValueRequested": false,
                              "member_name": "sender",
                              "referencedDeclaration": null,
                              "type": "address"
                            },
                            "children": [
                              {
                                "attributes": {
                                  "argumentTypes": null,
                                  "overloadedDeclarations": [
                                    null
                                  ],
                                  "referencedDeclaration": 12011,
                                  "type": "msg",
                                  "value": "msg"
                                },
                                "id": 6834,
                                "name": "Identifier",
                                "src": "232:3:14"
                              }
                            ],
                            "id": 6835,
                            "name": "MemberAccess",
                            "src": "232:10:14"
                          },
                          {
                            "attributes": {
                              "argumentTypes": null,
                              "isConstant": false,
                              "isLValue": true,
                              "isPure": false,
                              "lValueRequested": false,
                              "type": "bytes32"
                            },
                            "children": [
                              {
                                "attributes": {
                                  "argumentTypes": null,
                                  "overloadedDeclarations": [
                                    null
                                  ],
                                  "referencedDeclaration": 6828,
                                  "type": "bytes32[] memory",
                                  "value": "params"
                                },
                                "id": 6836,
                                "name": "Identifier",
                                "src": "243:6:14"
                              },
                              {
                                "attributes": {
                                  "argumentTypes": null,
                                  "hexvalue": "30",
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": true,
                                  "lValueRequested": false,
                                  "subdenomination": null,
                                  "token": "number",
                                  "type": "int_const 0",
                                  "value": "0"
                                },
                                "id": 6837,
                                "name": "Literal",
                                "src": "250:1:14"
                              }
                            ],
                            "id": 6838,
                            "name": "IndexAccess",
                            "src": "243:9:14"
                          }
                        ],
                        "id": 6839,
                        "name": "FunctionCall",
                        "src": "225:28:14"
                      }
                    ],
                    "id": 6840,
                    "name": "ExpressionStatement",
                    "src": "225:28:14"
                  },
                  {
                    "attributes": {
                      "functionReturnParameters": 6832
                    },
                    "children": [
                      {
                        "attributes": {
                          "argumentTypes": null,
                          "hexvalue": "74727565",
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "lValueRequested": false,
                          "subdenomination": null,
                          "token": "bool",
                          "type": "bool",
                          "value": "true"
                        },
                        "id": 6841,
                        "name": "Literal",
                        "src": "270:4:14"
                      }
                    ],
                    "id": 6842,
                    "name": "Return",
                    "src": "263:11:14"
                  }
                ],
                "id": 6843,
                "name": "Block",
                "src": "215:66:14"
              }
            ],
            "id": 6844,
            "name": "FunctionDefinition",
            "src": "160:121:14"
          },
          {
            "attributes": {
              "constant": false,
              "implemented": true,
              "isConstructor": false,
              "modifiers": [
                null
              ],
              "name": "genericAction",
              "payable": false,
              "scope": 6864,
              "stateMutability": "nonpayable",
              "superFunction": null,
              "visibility": "public"
            },
            "children": [
              {
                "children": [
                  {
                    "attributes": {
                      "constant": false,
                      "name": "avatar",
                      "scope": 6863,
                      "stateVariable": false,
                      "storageLocation": "default",
                      "type": "contract Avatar",
                      "value": null,
                      "visibility": "internal"
                    },
                    "children": [
                      {
                        "attributes": {
                          "contractScope": null,
                          "name": "Avatar",
                          "referencedDeclaration": 3873,
                          "type": "contract Avatar"
                        },
                        "id": 6845,
                        "name": "UserDefinedTypeName",
                        "src": "310:6:14"
                      }
                    ],
                    "id": 6846,
                    "name": "VariableDeclaration",
                    "src": "310:13:14"
                  },
                  {
                    "attributes": {
                      "constant": false,
                      "name": "params",
                      "scope": 6863,
                      "stateVariable": false,
                      "storageLocation": "default",
                      "type": "bytes32[] memory",
                      "value": null,
                      "visibility": "internal"
                    },
                    "children": [
                      {
                        "attributes": {
                          "length": null,
                          "type": "bytes32[] storage pointer"
                        },
                        "children": [
                          {
                            "attributes": {
                              "name": "bytes32",
                              "type": "bytes32"
                            },
                            "id": 6847,
                            "name": "ElementaryTypeName",
                            "src": "324:7:14"
                          }
                        ],
                        "id": 6848,
                        "name": "ArrayTypeName",
                        "src": "324:9:14"
                      }
                    ],
                    "id": 6849,
                    "name": "VariableDeclaration",
                    "src": "324:16:14"
                  }
                ],
                "id": 6850,
                "name": "ParameterList",
                "src": "309:32:14"
              },
              {
                "children": [
                  {
                    "attributes": {
                      "constant": false,
                      "name": "",
                      "scope": 6863,
                      "stateVariable": false,
                      "storageLocation": "default",
                      "type": "bool",
                      "value": null,
                      "visibility": "internal"
                    },
                    "children": [
                      {
                        "attributes": {
                          "name": "bool",
                          "type": "bool"
                        },
                        "id": 6851,
                        "name": "ElementaryTypeName",
                        "src": "357:4:14"
                      }
                    ],
                    "id": 6852,
                    "name": "VariableDeclaration",
                    "src": "357:4:14"
                  }
                ],
                "id": 6853,
                "name": "ParameterList",
                "src": "356:6:14"
              },
              {
                "children": [
                  {
                    "attributes": {
                      "functionReturnParameters": 6853
                    },
                    "children": [
                      {
                        "attributes": {
                          "argumentTypes": null,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "isStructConstructorCall": false,
                          "lValueRequested": false,
                          "names": [
                            null
                          ],
                          "type": "bool",
                          "type_conversion": false
                        },
                        "children": [
                          {
                            "attributes": {
                              "argumentTypes": [
                                {
                                  "typeIdentifier": "t_address",
                                  "typeString": "address"
                                },
                                {
                                  "typeIdentifier": "t_array$_t_bytes32_$dyn_memory_ptr",
                                  "typeString": "bytes32[] memory"
                                }
                              ],
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": false,
                              "lValueRequested": false,
                              "member_name": "genericAction",
                              "referencedDeclaration": 3727,
                              "type": "function (address,bytes32[] memory) external returns (bool)"
                            },
                            "children": [
                              {
                                "attributes": {
                                  "argumentTypes": null,
                                  "overloadedDeclarations": [
                                    null
                                  ],
                                  "referencedDeclaration": 6846,
                                  "type": "contract Avatar",
                                  "value": "avatar"
                                },
                                "id": 6854,
                                "name": "Identifier",
                                "src": "380:6:14"
                              }
                            ],
                            "id": 6855,
                            "name": "MemberAccess",
                            "src": "380:20:14"
                          },
                          {
                            "attributes": {
                              "argumentTypes": null,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": false,
                              "isStructConstructorCall": false,
                              "lValueRequested": false,
                              "names": [
                                null
                              ],
                              "type": "address",
                              "type_conversion": true
                            },
                            "children": [
                              {
                                "attributes": {
                                  "argumentTypes": [
                                    {
                                      "typeIdentifier": "t_contract$_ActionMock_$6864",
                                      "typeString": "contract ActionMock"
                                    }
                                  ],
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": true,
                                  "lValueRequested": false,
                                  "type": "type(address)",
                                  "value": "address"
                                },
                                "id": 6856,
                                "name": "ElementaryTypeNameExpression",
                                "src": "401:7:14"
                              },
                              {
                                "attributes": {
                                  "argumentTypes": null,
                                  "overloadedDeclarations": [
                                    null
                                  ],
                                  "referencedDeclaration": 12076,
                                  "type": "contract ActionMock",
                                  "value": "this"
                                },
                                "id": 6857,
                                "name": "Identifier",
                                "src": "409:4:14"
                              }
                            ],
                            "id": 6858,
                            "name": "FunctionCall",
                            "src": "401:13:14"
                          },
                          {
                            "attributes": {
                              "argumentTypes": null,
                              "overloadedDeclarations": [
                                null
                              ],
                              "referencedDeclaration": 6849,
                              "type": "bytes32[] memory",
                              "value": "params"
                            },
                            "id": 6859,
                            "name": "Identifier",
                            "src": "415:6:14"
                          }
                        ],
                        "id": 6860,
                        "name": "FunctionCall",
                        "src": "380:42:14"
                      }
                    ],
                    "id": 6861,
                    "name": "Return",
                    "src": "373:49:14"
                  }
                ],
                "id": 6862,
                "name": "Block",
                "src": "363:66:14"
              }
            ],
            "id": 6863,
            "name": "FunctionDefinition",
            "src": "287:142:14"
          }
        ],
        "id": 6864,
        "name": "ContractDefinition",
        "src": "63:369:14"
      }
    ],
    "id": 6865,
    "name": "SourceUnit",
    "src": "0:433:14"
  },
  "compiler": {
    "name": "solc",
    "version": "0.4.18+commit.9cf6e910.Emscripten.clang"
  },
  "networks": {},
  "schemaVersion": "1.0.1",
  "updatedAt": "2018-02-04T21:57:39.059Z"
}