{
  "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": "0x6060604052341561000f57600080fd5b6102c68061001e6000396000f30060606040526004361061004b5763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416636ce15a5481146100505780637ff4b630146100ce575b600080fd5b341561005b57600080fd5b6100ba6004803573ffffffffffffffffffffffffffffffffffffffff1690604460248035908101908301358060208082020160405190810160405280939291908181526020018383602002808284375094965061011d95505050505050565b604051901515815260200160405180910390f35b34156100d957600080fd5b6100ba600460248135818101908301358060208181020160405190810160405280939291908181526020018383602002808284375094965061022995505050505050565b60008273ffffffffffffffffffffffffffffffffffffffff16636ce15a5430846000604051602001526040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200180602001828103825283818151815260200191508051906020019060200280838360005b838110156101e35780820151838201526020016101cb565b505050509050019350505050602060405180830381600087803b151561020857600080fd5b6102c65a03f1151561021957600080fd5b5050506040518051949350505050565b60007f38986d52282e94f11fdf413d0c6cb2f89ce3ef8986c7e800152f440db2bcbfb2338360008151811061025a57fe5b9060200190602002015160405173ffffffffffffffffffffffffffffffffffffffff909216825260208201526040908101905180910390a15060019190505600a165627a7a723058204b47f10e88d22b4bedf8bf10fa8c5ddd8d011e1d2b27335251a5d91f14a0f8010029",
  "deployedBytecode": "0x60606040526004361061004b5763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416636ce15a5481146100505780637ff4b630146100ce575b600080fd5b341561005b57600080fd5b6100ba6004803573ffffffffffffffffffffffffffffffffffffffff1690604460248035908101908301358060208082020160405190810160405280939291908181526020018383602002808284375094965061011d95505050505050565b604051901515815260200160405180910390f35b34156100d957600080fd5b6100ba600460248135818101908301358060208181020160405190810160405280939291908181526020018383602002808284375094965061022995505050505050565b60008273ffffffffffffffffffffffffffffffffffffffff16636ce15a5430846000604051602001526040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200180602001828103825283818151815260200191508051906020019060200280838360005b838110156101e35780820151838201526020016101cb565b505050509050019350505050602060405180830381600087803b151561020857600080fd5b6102c65a03f1151561021957600080fd5b5050506040518051949350505050565b60007f38986d52282e94f11fdf413d0c6cb2f89ce3ef8986c7e800152f440db2bcbfb2338360008151811061025a57fe5b9060200190602002015160405173ffffffffffffffffffffffffffffffffffffffff909216825260208201526040908101905180910390a15060019190505600a165627a7a723058204b47f10e88d22b4bedf8bf10fa8c5ddd8d011e1d2b27335251a5d91f14a0f8010029",
  "sourceMap": "63:369:13:-;;;;;;;;;;;;;;;;;",
  "deployedSourceMap": "63:369:13:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;287:142;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;287:142:13;;-1:-1:-1;287:142:13;;-1:-1:-1;;;;;;287:142:13;;;;;;;;;;;;;;;;;;160:121;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;160:121:13;;-1:-1:-1;160:121:13;;-1:-1:-1;;;;;;160:121:13;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:13;-1:-1:-1;;;;287:142:13:o;160:121::-;209:4;225:28;232:10;243:6;250:1;243:9;;;;;;;;;;;;;;;;225:28;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;270:4:13;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": "/home/travis/build/dev-matan-tsuberi/daostack/contracts/test/ActionMock.sol",
  "ast": {
    "attributes": {
      "absolutePath": "/home/travis/build/dev-matan-tsuberi/daostack/contracts/test/ActionMock.sol",
      "exportedSymbols": {
        "ActionMock": [
          6056
        ]
      }
    },
    "children": [
      {
        "attributes": {
          "literals": [
            "solidity",
            "^",
            "0.4",
            ".18"
          ]
        },
        "id": 6008,
        "name": "PragmaDirective",
        "src": "0:24:13"
      },
      {
        "attributes": {
          "SourceUnit": 3066,
          "absolutePath": "/home/travis/build/dev-matan-tsuberi/daostack/contracts/controller/Avatar.sol",
          "file": "../controller/Avatar.sol",
          "scope": 6057,
          "symbolAliases": [
            null
          ],
          "unitAlias": ""
        },
        "id": 6009,
        "name": "ImportDirective",
        "src": "26:34:13"
      },
      {
        "attributes": {
          "contractDependencies": [
            2790
          ],
          "contractKind": "contract",
          "documentation": null,
          "fullyImplemented": true,
          "linearizedBaseContracts": [
            6056,
            2790
          ],
          "name": "ActionMock",
          "scope": 6057
        },
        "children": [
          {
            "attributes": {
              "arguments": [
                null
              ]
            },
            "children": [
              {
                "attributes": {
                  "contractScope": null,
                  "name": "ActionInterface",
                  "referencedDeclaration": 2790,
                  "type": "contract ActionInterface"
                },
                "id": 6010,
                "name": "UserDefinedTypeName",
                "src": "86:15:13"
              }
            ],
            "id": 6011,
            "name": "InheritanceSpecifier",
            "src": "86:15:13"
          },
          {
            "attributes": {
              "anonymous": false,
              "name": "Action"
            },
            "children": [
              {
                "children": [
                  {
                    "attributes": {
                      "constant": false,
                      "indexed": false,
                      "name": "_sender",
                      "scope": 6017,
                      "stateVariable": false,
                      "storageLocation": "default",
                      "type": "address",
                      "value": null,
                      "visibility": "internal"
                    },
                    "children": [
                      {
                        "attributes": {
                          "name": "address",
                          "type": "address"
                        },
                        "id": 6012,
                        "name": "ElementaryTypeName",
                        "src": "122:7:13"
                      }
                    ],
                    "id": 6013,
                    "name": "VariableDeclaration",
                    "src": "122:15:13"
                  },
                  {
                    "attributes": {
                      "constant": false,
                      "indexed": false,
                      "name": "_param",
                      "scope": 6017,
                      "stateVariable": false,
                      "storageLocation": "default",
                      "type": "bytes32",
                      "value": null,
                      "visibility": "internal"
                    },
                    "children": [
                      {
                        "attributes": {
                          "name": "bytes32",
                          "type": "bytes32"
                        },
                        "id": 6014,
                        "name": "ElementaryTypeName",
                        "src": "138:7:13"
                      }
                    ],
                    "id": 6015,
                    "name": "VariableDeclaration",
                    "src": "138:14:13"
                  }
                ],
                "id": 6016,
                "name": "ParameterList",
                "src": "121:32:13"
              }
            ],
            "id": 6017,
            "name": "EventDefinition",
            "src": "109:45:13"
          },
          {
            "attributes": {
              "constant": false,
              "implemented": true,
              "isConstructor": false,
              "modifiers": [
                null
              ],
              "name": "action",
              "payable": false,
              "scope": 6056,
              "stateMutability": "nonpayable",
              "superFunction": 2789,
              "visibility": "public"
            },
            "children": [
              {
                "children": [
                  {
                    "attributes": {
                      "constant": false,
                      "name": "params",
                      "scope": 6036,
                      "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": 6018,
                            "name": "ElementaryTypeName",
                            "src": "176:7:13"
                          }
                        ],
                        "id": 6019,
                        "name": "ArrayTypeName",
                        "src": "176:9:13"
                      }
                    ],
                    "id": 6020,
                    "name": "VariableDeclaration",
                    "src": "176:16:13"
                  }
                ],
                "id": 6021,
                "name": "ParameterList",
                "src": "175:18:13"
              },
              {
                "children": [
                  {
                    "attributes": {
                      "constant": false,
                      "name": "",
                      "scope": 6036,
                      "stateVariable": false,
                      "storageLocation": "default",
                      "type": "bool",
                      "value": null,
                      "visibility": "internal"
                    },
                    "children": [
                      {
                        "attributes": {
                          "name": "bool",
                          "type": "bool"
                        },
                        "id": 6022,
                        "name": "ElementaryTypeName",
                        "src": "209:4:13"
                      }
                    ],
                    "id": 6023,
                    "name": "VariableDeclaration",
                    "src": "209:4:13"
                  }
                ],
                "id": 6024,
                "name": "ParameterList",
                "src": "208:6:13"
              },
              {
                "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": 6017,
                              "type": "function (address,bytes32)",
                              "value": "Action"
                            },
                            "id": 6025,
                            "name": "Identifier",
                            "src": "225:6:13"
                          },
                          {
                            "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": 10867,
                                  "type": "msg",
                                  "value": "msg"
                                },
                                "id": 6026,
                                "name": "Identifier",
                                "src": "232:3:13"
                              }
                            ],
                            "id": 6027,
                            "name": "MemberAccess",
                            "src": "232:10:13"
                          },
                          {
                            "attributes": {
                              "argumentTypes": null,
                              "isConstant": false,
                              "isLValue": true,
                              "isPure": false,
                              "lValueRequested": false,
                              "type": "bytes32"
                            },
                            "children": [
                              {
                                "attributes": {
                                  "argumentTypes": null,
                                  "overloadedDeclarations": [
                                    null
                                  ],
                                  "referencedDeclaration": 6020,
                                  "type": "bytes32[] memory",
                                  "value": "params"
                                },
                                "id": 6028,
                                "name": "Identifier",
                                "src": "243:6:13"
                              },
                              {
                                "attributes": {
                                  "argumentTypes": null,
                                  "hexvalue": "30",
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": true,
                                  "lValueRequested": false,
                                  "subdenomination": null,
                                  "token": "number",
                                  "type": "int_const 0",
                                  "value": "0"
                                },
                                "id": 6029,
                                "name": "Literal",
                                "src": "250:1:13"
                              }
                            ],
                            "id": 6030,
                            "name": "IndexAccess",
                            "src": "243:9:13"
                          }
                        ],
                        "id": 6031,
                        "name": "FunctionCall",
                        "src": "225:28:13"
                      }
                    ],
                    "id": 6032,
                    "name": "ExpressionStatement",
                    "src": "225:28:13"
                  },
                  {
                    "attributes": {
                      "functionReturnParameters": 6024
                    },
                    "children": [
                      {
                        "attributes": {
                          "argumentTypes": null,
                          "hexvalue": "74727565",
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "lValueRequested": false,
                          "subdenomination": null,
                          "token": "bool",
                          "type": "bool",
                          "value": "true"
                        },
                        "id": 6033,
                        "name": "Literal",
                        "src": "270:4:13"
                      }
                    ],
                    "id": 6034,
                    "name": "Return",
                    "src": "263:11:13"
                  }
                ],
                "id": 6035,
                "name": "Block",
                "src": "215:66:13"
              }
            ],
            "id": 6036,
            "name": "FunctionDefinition",
            "src": "160:121:13"
          },
          {
            "attributes": {
              "constant": false,
              "implemented": true,
              "isConstructor": false,
              "modifiers": [
                null
              ],
              "name": "genericAction",
              "payable": false,
              "scope": 6056,
              "stateMutability": "nonpayable",
              "superFunction": null,
              "visibility": "public"
            },
            "children": [
              {
                "children": [
                  {
                    "attributes": {
                      "constant": false,
                      "name": "avatar",
                      "scope": 6055,
                      "stateVariable": false,
                      "storageLocation": "default",
                      "type": "contract Avatar",
                      "value": null,
                      "visibility": "internal"
                    },
                    "children": [
                      {
                        "attributes": {
                          "contractScope": null,
                          "name": "Avatar",
                          "referencedDeclaration": 3065,
                          "type": "contract Avatar"
                        },
                        "id": 6037,
                        "name": "UserDefinedTypeName",
                        "src": "310:6:13"
                      }
                    ],
                    "id": 6038,
                    "name": "VariableDeclaration",
                    "src": "310:13:13"
                  },
                  {
                    "attributes": {
                      "constant": false,
                      "name": "params",
                      "scope": 6055,
                      "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": 6039,
                            "name": "ElementaryTypeName",
                            "src": "324:7:13"
                          }
                        ],
                        "id": 6040,
                        "name": "ArrayTypeName",
                        "src": "324:9:13"
                      }
                    ],
                    "id": 6041,
                    "name": "VariableDeclaration",
                    "src": "324:16:13"
                  }
                ],
                "id": 6042,
                "name": "ParameterList",
                "src": "309:32:13"
              },
              {
                "children": [
                  {
                    "attributes": {
                      "constant": false,
                      "name": "",
                      "scope": 6055,
                      "stateVariable": false,
                      "storageLocation": "default",
                      "type": "bool",
                      "value": null,
                      "visibility": "internal"
                    },
                    "children": [
                      {
                        "attributes": {
                          "name": "bool",
                          "type": "bool"
                        },
                        "id": 6043,
                        "name": "ElementaryTypeName",
                        "src": "357:4:13"
                      }
                    ],
                    "id": 6044,
                    "name": "VariableDeclaration",
                    "src": "357:4:13"
                  }
                ],
                "id": 6045,
                "name": "ParameterList",
                "src": "356:6:13"
              },
              {
                "children": [
                  {
                    "attributes": {
                      "functionReturnParameters": 6045
                    },
                    "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": 2919,
                              "type": "function (address,bytes32[] memory) external returns (bool)"
                            },
                            "children": [
                              {
                                "attributes": {
                                  "argumentTypes": null,
                                  "overloadedDeclarations": [
                                    null
                                  ],
                                  "referencedDeclaration": 6038,
                                  "type": "contract Avatar",
                                  "value": "avatar"
                                },
                                "id": 6046,
                                "name": "Identifier",
                                "src": "380:6:13"
                              }
                            ],
                            "id": 6047,
                            "name": "MemberAccess",
                            "src": "380:20:13"
                          },
                          {
                            "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_$6056",
                                      "typeString": "contract ActionMock"
                                    }
                                  ],
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": true,
                                  "lValueRequested": false,
                                  "type": "type(address)",
                                  "value": "address"
                                },
                                "id": 6048,
                                "name": "ElementaryTypeNameExpression",
                                "src": "401:7:13"
                              },
                              {
                                "attributes": {
                                  "argumentTypes": null,
                                  "overloadedDeclarations": [
                                    null
                                  ],
                                  "referencedDeclaration": 10930,
                                  "type": "contract ActionMock",
                                  "value": "this"
                                },
                                "id": 6049,
                                "name": "Identifier",
                                "src": "409:4:13"
                              }
                            ],
                            "id": 6050,
                            "name": "FunctionCall",
                            "src": "401:13:13"
                          },
                          {
                            "attributes": {
                              "argumentTypes": null,
                              "overloadedDeclarations": [
                                null
                              ],
                              "referencedDeclaration": 6041,
                              "type": "bytes32[] memory",
                              "value": "params"
                            },
                            "id": 6051,
                            "name": "Identifier",
                            "src": "415:6:13"
                          }
                        ],
                        "id": 6052,
                        "name": "FunctionCall",
                        "src": "380:42:13"
                      }
                    ],
                    "id": 6053,
                    "name": "Return",
                    "src": "373:49:13"
                  }
                ],
                "id": 6054,
                "name": "Block",
                "src": "363:66:13"
              }
            ],
            "id": 6055,
            "name": "FunctionDefinition",
            "src": "287:142:13"
          }
        ],
        "id": 6056,
        "name": "ContractDefinition",
        "src": "63:369:13"
      }
    ],
    "id": 6057,
    "name": "SourceUnit",
    "src": "0:433:13"
  },
  "compiler": {
    "name": "solc",
    "version": "0.4.18+commit.9cf6e910.Emscripten.clang"
  },
  "networks": {},
  "schemaVersion": "1.0.1",
  "updatedAt": "2018-01-25T13:14:57.916Z"
}