{
  "contractName": "ScriptHelpers",
  "abi": [],
  "bytecode": "0x604c602c600b82828239805160001a60731460008114601c57601e565bfe5b5030600052607381538281f30073000000000000000000000000000000000000000030146080604052600080fd00a165627a7a723058206ecd9ca1299724a28a36f794767abdec7400e163f65beb6ac93b5bbbcd8555870029",
  "deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fd00a165627a7a723058206ecd9ca1299724a28a36f794767abdec7400e163f65beb6ac93b5bbbcd8555870029",
  "sourceMap": "71:1409:36:-;;132:2:-1;166:7;155:9;146:7;137:37;252:7;246:14;243:1;238:23;232:4;229:33;270:1;265:20;;;;222:63;;265:20;274:9;222:63;;298:9;295:1;288:20;328:4;319:7;311:22;352:7;343;336:24",
  "deployedSourceMap": "71:1409:36:-;;;;;;;;",
  "source": "/*\n * SPDX-License-Identitifer:    MIT\n */\n\npragma solidity ^0.4.24;\n\n\nlibrary ScriptHelpers {\n    function getSpecId(bytes _script) internal pure returns (uint32) {\n        return uint32At(_script, 0);\n    }\n\n    function uint256At(bytes _data, uint256 _location) internal pure returns (uint256 result) {\n        assembly {\n            result := mload(add(_data, add(0x20, _location)))\n        }\n    }\n\n    function addressAt(bytes _data, uint256 _location) internal pure returns (address result) {\n        uint256 word = uint256At(_data, _location);\n\n        assembly {\n            result := div(and(word, 0xffffffffffffffffffffffffffffffffffffffff000000000000000000000000),\n            0x1000000000000000000000000)\n        }\n    }\n\n    function uint32At(bytes _data, uint256 _location) internal pure returns (uint32 result) {\n        uint256 word = uint256At(_data, _location);\n\n        assembly {\n            result := div(and(word, 0xffffffff00000000000000000000000000000000000000000000000000000000),\n            0x100000000000000000000000000000000000000000000000000000000)\n        }\n    }\n\n    function locationOf(bytes _data, uint256 _location) internal pure returns (uint256 result) {\n        assembly {\n            result := add(_data, add(0x20, _location))\n        }\n    }\n\n    function toBytes(bytes4 _sig) internal pure returns (bytes) {\n        bytes memory payload = new bytes(4);\n        assembly { mstore(add(payload, 0x20), _sig) }\n        return payload;\n    }\n}\n",
  "sourcePath": "@aragon/os/contracts/evmscript/ScriptHelpers.sol",
  "ast": {
    "absolutePath": "@aragon/os/contracts/evmscript/ScriptHelpers.sol",
    "exportedSymbols": {
      "ScriptHelpers": [
        6125
      ]
    },
    "id": 6126,
    "nodeType": "SourceUnit",
    "nodes": [
      {
        "id": 6035,
        "literals": [
          "solidity",
          "^",
          "0.4",
          ".24"
        ],
        "nodeType": "PragmaDirective",
        "src": "44:24:36"
      },
      {
        "baseContracts": [],
        "contractDependencies": [],
        "contractKind": "library",
        "documentation": null,
        "fullyImplemented": true,
        "id": 6125,
        "linearizedBaseContracts": [
          6125
        ],
        "name": "ScriptHelpers",
        "nodeType": "ContractDefinition",
        "nodes": [
          {
            "body": {
              "id": 6047,
              "nodeType": "Block",
              "src": "164:44:36",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 6043,
                        "name": "_script",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 6037,
                        "src": "190:7:36",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes_memory_ptr",
                          "typeString": "bytes memory"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "hexValue": "30",
                        "id": 6044,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "number",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "199:1:36",
                        "subdenomination": null,
                        "typeDescriptions": {
                          "typeIdentifier": "t_rational_0_by_1",
                          "typeString": "int_const 0"
                        },
                        "value": "0"
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bytes_memory_ptr",
                          "typeString": "bytes memory"
                        },
                        {
                          "typeIdentifier": "t_rational_0_by_1",
                          "typeString": "int_const 0"
                        }
                      ],
                      "id": 6042,
                      "name": "uint32At",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 6095,
                      "src": "181:8:36",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_internal_pure$_t_bytes_memory_ptr_$_t_uint256_$returns$_t_uint32_$",
                        "typeString": "function (bytes memory,uint256) pure returns (uint32)"
                      }
                    },
                    "id": 6045,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "181:20:36",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint32",
                      "typeString": "uint32"
                    }
                  },
                  "functionReturnParameters": 6041,
                  "id": 6046,
                  "nodeType": "Return",
                  "src": "174:27:36"
                }
              ]
            },
            "documentation": null,
            "id": 6048,
            "implemented": true,
            "isConstructor": false,
            "isDeclaredConst": true,
            "modifiers": [],
            "name": "getSpecId",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 6038,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 6037,
                  "name": "_script",
                  "nodeType": "VariableDeclaration",
                  "scope": 6048,
                  "src": "118:13:36",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes_memory_ptr",
                    "typeString": "bytes"
                  },
                  "typeName": {
                    "id": 6036,
                    "name": "bytes",
                    "nodeType": "ElementaryTypeName",
                    "src": "118:5:36",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes_storage_ptr",
                      "typeString": "bytes"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "117:15:36"
            },
            "payable": false,
            "returnParameters": {
              "id": 6041,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 6040,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 6048,
                  "src": "156:6:36",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint32",
                    "typeString": "uint32"
                  },
                  "typeName": {
                    "id": 6039,
                    "name": "uint32",
                    "nodeType": "ElementaryTypeName",
                    "src": "156:6:36",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint32",
                      "typeString": "uint32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "155:8:36"
            },
            "scope": 6125,
            "src": "99:109:36",
            "stateMutability": "pure",
            "superFunction": null,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 6058,
              "nodeType": "Block",
              "src": "304:98:36",
              "statements": [
                {
                  "externalReferences": [
                    {
                      "result": {
                        "declaration": 6055,
                        "isOffset": false,
                        "isSlot": false,
                        "src": "337:6:36",
                        "valueSize": 1
                      }
                    },
                    {
                      "_data": {
                        "declaration": 6050,
                        "isOffset": false,
                        "isSlot": false,
                        "src": "357:5:36",
                        "valueSize": 1
                      }
                    },
                    {
                      "_location": {
                        "declaration": 6052,
                        "isOffset": false,
                        "isSlot": false,
                        "src": "374:9:36",
                        "valueSize": 1
                      }
                    }
                  ],
                  "id": 6057,
                  "nodeType": "InlineAssembly",
                  "operations": "{\n    result := mload(add(_data, add(0x20, _location)))\n}",
                  "src": "314:88:36"
                }
              ]
            },
            "documentation": null,
            "id": 6059,
            "implemented": true,
            "isConstructor": false,
            "isDeclaredConst": true,
            "modifiers": [],
            "name": "uint256At",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 6053,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 6050,
                  "name": "_data",
                  "nodeType": "VariableDeclaration",
                  "scope": 6059,
                  "src": "233:11:36",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes_memory_ptr",
                    "typeString": "bytes"
                  },
                  "typeName": {
                    "id": 6049,
                    "name": "bytes",
                    "nodeType": "ElementaryTypeName",
                    "src": "233:5:36",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes_storage_ptr",
                      "typeString": "bytes"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 6052,
                  "name": "_location",
                  "nodeType": "VariableDeclaration",
                  "scope": 6059,
                  "src": "246:17:36",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 6051,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "246:7:36",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "232:32:36"
            },
            "payable": false,
            "returnParameters": {
              "id": 6056,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 6055,
                  "name": "result",
                  "nodeType": "VariableDeclaration",
                  "scope": 6059,
                  "src": "288:14:36",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 6054,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "288:7:36",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "287:16:36"
            },
            "scope": 6125,
            "src": "214:188:36",
            "stateMutability": "pure",
            "superFunction": null,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 6076,
              "nodeType": "Block",
              "src": "498:235:36",
              "statements": [
                {
                  "assignments": [
                    6069
                  ],
                  "declarations": [
                    {
                      "constant": false,
                      "id": 6069,
                      "name": "word",
                      "nodeType": "VariableDeclaration",
                      "scope": 6077,
                      "src": "508:12:36",
                      "stateVariable": false,
                      "storageLocation": "default",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      },
                      "typeName": {
                        "id": 6068,
                        "name": "uint256",
                        "nodeType": "ElementaryTypeName",
                        "src": "508:7:36",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      },
                      "value": null,
                      "visibility": "internal"
                    }
                  ],
                  "id": 6074,
                  "initialValue": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 6071,
                        "name": "_data",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 6061,
                        "src": "533:5:36",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes_memory_ptr",
                          "typeString": "bytes memory"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 6072,
                        "name": "_location",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 6063,
                        "src": "540:9:36",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bytes_memory_ptr",
                          "typeString": "bytes memory"
                        },
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      ],
                      "id": 6070,
                      "name": "uint256At",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 6059,
                      "src": "523:9:36",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_internal_pure$_t_bytes_memory_ptr_$_t_uint256_$returns$_t_uint256_$",
                        "typeString": "function (bytes memory,uint256) pure returns (uint256)"
                      }
                    },
                    "id": 6073,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "523:27:36",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "nodeType": "VariableDeclarationStatement",
                  "src": "508:42:36"
                },
                {
                  "externalReferences": [
                    {
                      "result": {
                        "declaration": 6066,
                        "isOffset": false,
                        "isSlot": false,
                        "src": "584:6:36",
                        "valueSize": 1
                      }
                    },
                    {
                      "word": {
                        "declaration": 6069,
                        "isOffset": false,
                        "isSlot": false,
                        "src": "602:4:36",
                        "valueSize": 1
                      }
                    }
                  ],
                  "id": 6075,
                  "nodeType": "InlineAssembly",
                  "operations": "{\n    result := div(and(word, 0xffffffffffffffffffffffffffffffffffffffff000000000000000000000000), 0x1000000000000000000000000)\n}",
                  "src": "561:172:36"
                }
              ]
            },
            "documentation": null,
            "id": 6077,
            "implemented": true,
            "isConstructor": false,
            "isDeclaredConst": true,
            "modifiers": [],
            "name": "addressAt",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 6064,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 6061,
                  "name": "_data",
                  "nodeType": "VariableDeclaration",
                  "scope": 6077,
                  "src": "427:11:36",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes_memory_ptr",
                    "typeString": "bytes"
                  },
                  "typeName": {
                    "id": 6060,
                    "name": "bytes",
                    "nodeType": "ElementaryTypeName",
                    "src": "427:5:36",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes_storage_ptr",
                      "typeString": "bytes"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 6063,
                  "name": "_location",
                  "nodeType": "VariableDeclaration",
                  "scope": 6077,
                  "src": "440:17:36",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 6062,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "440:7:36",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "426:32:36"
            },
            "payable": false,
            "returnParameters": {
              "id": 6067,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 6066,
                  "name": "result",
                  "nodeType": "VariableDeclaration",
                  "scope": 6077,
                  "src": "482:14:36",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 6065,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "482:7:36",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "481:16:36"
            },
            "scope": 6125,
            "src": "408:325:36",
            "stateMutability": "pure",
            "superFunction": null,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 6094,
              "nodeType": "Block",
              "src": "827:267:36",
              "statements": [
                {
                  "assignments": [
                    6087
                  ],
                  "declarations": [
                    {
                      "constant": false,
                      "id": 6087,
                      "name": "word",
                      "nodeType": "VariableDeclaration",
                      "scope": 6095,
                      "src": "837:12:36",
                      "stateVariable": false,
                      "storageLocation": "default",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      },
                      "typeName": {
                        "id": 6086,
                        "name": "uint256",
                        "nodeType": "ElementaryTypeName",
                        "src": "837:7:36",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      },
                      "value": null,
                      "visibility": "internal"
                    }
                  ],
                  "id": 6092,
                  "initialValue": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 6089,
                        "name": "_data",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 6079,
                        "src": "862:5:36",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes_memory_ptr",
                          "typeString": "bytes memory"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 6090,
                        "name": "_location",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 6081,
                        "src": "869:9:36",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bytes_memory_ptr",
                          "typeString": "bytes memory"
                        },
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      ],
                      "id": 6088,
                      "name": "uint256At",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 6059,
                      "src": "852:9:36",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_internal_pure$_t_bytes_memory_ptr_$_t_uint256_$returns$_t_uint256_$",
                        "typeString": "function (bytes memory,uint256) pure returns (uint256)"
                      }
                    },
                    "id": 6091,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "852:27:36",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "nodeType": "VariableDeclarationStatement",
                  "src": "837:42:36"
                },
                {
                  "externalReferences": [
                    {
                      "result": {
                        "declaration": 6084,
                        "isOffset": false,
                        "isSlot": false,
                        "src": "913:6:36",
                        "valueSize": 1
                      }
                    },
                    {
                      "word": {
                        "declaration": 6087,
                        "isOffset": false,
                        "isSlot": false,
                        "src": "931:4:36",
                        "valueSize": 1
                      }
                    }
                  ],
                  "id": 6093,
                  "nodeType": "InlineAssembly",
                  "operations": "{\n    result := div(and(word, 0xffffffff00000000000000000000000000000000000000000000000000000000), 0x100000000000000000000000000000000000000000000000000000000)\n}",
                  "src": "890:204:36"
                }
              ]
            },
            "documentation": null,
            "id": 6095,
            "implemented": true,
            "isConstructor": false,
            "isDeclaredConst": true,
            "modifiers": [],
            "name": "uint32At",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 6082,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 6079,
                  "name": "_data",
                  "nodeType": "VariableDeclaration",
                  "scope": 6095,
                  "src": "757:11:36",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes_memory_ptr",
                    "typeString": "bytes"
                  },
                  "typeName": {
                    "id": 6078,
                    "name": "bytes",
                    "nodeType": "ElementaryTypeName",
                    "src": "757:5:36",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes_storage_ptr",
                      "typeString": "bytes"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 6081,
                  "name": "_location",
                  "nodeType": "VariableDeclaration",
                  "scope": 6095,
                  "src": "770:17:36",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 6080,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "770:7:36",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "756:32:36"
            },
            "payable": false,
            "returnParameters": {
              "id": 6085,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 6084,
                  "name": "result",
                  "nodeType": "VariableDeclaration",
                  "scope": 6095,
                  "src": "812:13:36",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint32",
                    "typeString": "uint32"
                  },
                  "typeName": {
                    "id": 6083,
                    "name": "uint32",
                    "nodeType": "ElementaryTypeName",
                    "src": "812:6:36",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint32",
                      "typeString": "uint32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "811:15:36"
            },
            "scope": 6125,
            "src": "739:355:36",
            "stateMutability": "pure",
            "superFunction": null,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 6105,
              "nodeType": "Block",
              "src": "1191:91:36",
              "statements": [
                {
                  "externalReferences": [
                    {
                      "result": {
                        "declaration": 6102,
                        "isOffset": false,
                        "isSlot": false,
                        "src": "1224:6:36",
                        "valueSize": 1
                      }
                    },
                    {
                      "_data": {
                        "declaration": 6097,
                        "isOffset": false,
                        "isSlot": false,
                        "src": "1238:5:36",
                        "valueSize": 1
                      }
                    },
                    {
                      "_location": {
                        "declaration": 6099,
                        "isOffset": false,
                        "isSlot": false,
                        "src": "1255:9:36",
                        "valueSize": 1
                      }
                    }
                  ],
                  "id": 6104,
                  "nodeType": "InlineAssembly",
                  "operations": "{\n    result := add(_data, add(0x20, _location))\n}",
                  "src": "1201:81:36"
                }
              ]
            },
            "documentation": null,
            "id": 6106,
            "implemented": true,
            "isConstructor": false,
            "isDeclaredConst": true,
            "modifiers": [],
            "name": "locationOf",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 6100,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 6097,
                  "name": "_data",
                  "nodeType": "VariableDeclaration",
                  "scope": 6106,
                  "src": "1120:11:36",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes_memory_ptr",
                    "typeString": "bytes"
                  },
                  "typeName": {
                    "id": 6096,
                    "name": "bytes",
                    "nodeType": "ElementaryTypeName",
                    "src": "1120:5:36",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes_storage_ptr",
                      "typeString": "bytes"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 6099,
                  "name": "_location",
                  "nodeType": "VariableDeclaration",
                  "scope": 6106,
                  "src": "1133:17:36",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 6098,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "1133:7:36",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "1119:32:36"
            },
            "payable": false,
            "returnParameters": {
              "id": 6103,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 6102,
                  "name": "result",
                  "nodeType": "VariableDeclaration",
                  "scope": 6106,
                  "src": "1175:14:36",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 6101,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "1175:7:36",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "1174:16:36"
            },
            "scope": 6125,
            "src": "1100:182:36",
            "stateMutability": "pure",
            "superFunction": null,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 6123,
              "nodeType": "Block",
              "src": "1348:130:36",
              "statements": [
                {
                  "assignments": [
                    6114
                  ],
                  "declarations": [
                    {
                      "constant": false,
                      "id": 6114,
                      "name": "payload",
                      "nodeType": "VariableDeclaration",
                      "scope": 6124,
                      "src": "1358:20:36",
                      "stateVariable": false,
                      "storageLocation": "memory",
                      "typeDescriptions": {
                        "typeIdentifier": "t_bytes_memory_ptr",
                        "typeString": "bytes"
                      },
                      "typeName": {
                        "id": 6113,
                        "name": "bytes",
                        "nodeType": "ElementaryTypeName",
                        "src": "1358:5:36",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes_storage_ptr",
                          "typeString": "bytes"
                        }
                      },
                      "value": null,
                      "visibility": "internal"
                    }
                  ],
                  "id": 6119,
                  "initialValue": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "hexValue": "34",
                        "id": 6117,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "number",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "1391:1:36",
                        "subdenomination": null,
                        "typeDescriptions": {
                          "typeIdentifier": "t_rational_4_by_1",
                          "typeString": "int_const 4"
                        },
                        "value": "4"
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_rational_4_by_1",
                          "typeString": "int_const 4"
                        }
                      ],
                      "id": 6116,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": true,
                      "lValueRequested": false,
                      "nodeType": "NewExpression",
                      "src": "1381:9:36",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_bytes_memory_$",
                        "typeString": "function (uint256) pure returns (bytes memory)"
                      },
                      "typeName": {
                        "id": 6115,
                        "name": "bytes",
                        "nodeType": "ElementaryTypeName",
                        "src": "1385:5:36",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes_storage_ptr",
                          "typeString": "bytes"
                        }
                      }
                    },
                    "id": 6118,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": true,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "1381:12:36",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes_memory",
                      "typeString": "bytes memory"
                    }
                  },
                  "nodeType": "VariableDeclarationStatement",
                  "src": "1358:35:36"
                },
                {
                  "externalReferences": [
                    {
                      "_sig": {
                        "declaration": 6108,
                        "isOffset": false,
                        "isSlot": false,
                        "src": "1441:4:36",
                        "valueSize": 1
                      }
                    },
                    {
                      "payload": {
                        "declaration": 6114,
                        "isOffset": false,
                        "isSlot": false,
                        "src": "1425:7:36",
                        "valueSize": 1
                      }
                    }
                  ],
                  "id": 6120,
                  "nodeType": "InlineAssembly",
                  "operations": "{\n    mstore(add(payload, 0x20), _sig)\n}",
                  "src": "1403:60:36"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "id": 6121,
                    "name": "payload",
                    "nodeType": "Identifier",
                    "overloadedDeclarations": [],
                    "referencedDeclaration": 6114,
                    "src": "1464:7:36",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes_memory_ptr",
                      "typeString": "bytes memory"
                    }
                  },
                  "functionReturnParameters": 6112,
                  "id": 6122,
                  "nodeType": "Return",
                  "src": "1457:14:36"
                }
              ]
            },
            "documentation": null,
            "id": 6124,
            "implemented": true,
            "isConstructor": false,
            "isDeclaredConst": true,
            "modifiers": [],
            "name": "toBytes",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 6109,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 6108,
                  "name": "_sig",
                  "nodeType": "VariableDeclaration",
                  "scope": 6124,
                  "src": "1305:11:36",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes4",
                    "typeString": "bytes4"
                  },
                  "typeName": {
                    "id": 6107,
                    "name": "bytes4",
                    "nodeType": "ElementaryTypeName",
                    "src": "1305:6:36",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes4",
                      "typeString": "bytes4"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "1304:13:36"
            },
            "payable": false,
            "returnParameters": {
              "id": 6112,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 6111,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 6124,
                  "src": "1341:5:36",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes_memory_ptr",
                    "typeString": "bytes"
                  },
                  "typeName": {
                    "id": 6110,
                    "name": "bytes",
                    "nodeType": "ElementaryTypeName",
                    "src": "1341:5:36",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes_storage_ptr",
                      "typeString": "bytes"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "1340:7:36"
            },
            "scope": 6125,
            "src": "1288:190:36",
            "stateMutability": "pure",
            "superFunction": null,
            "visibility": "internal"
          }
        ],
        "scope": 6126,
        "src": "71:1409:36"
      }
    ],
    "src": "44:1437:36"
  },
  "legacyAST": {
    "absolutePath": "@aragon/os/contracts/evmscript/ScriptHelpers.sol",
    "exportedSymbols": {
      "ScriptHelpers": [
        6125
      ]
    },
    "id": 6126,
    "nodeType": "SourceUnit",
    "nodes": [
      {
        "id": 6035,
        "literals": [
          "solidity",
          "^",
          "0.4",
          ".24"
        ],
        "nodeType": "PragmaDirective",
        "src": "44:24:36"
      },
      {
        "baseContracts": [],
        "contractDependencies": [],
        "contractKind": "library",
        "documentation": null,
        "fullyImplemented": true,
        "id": 6125,
        "linearizedBaseContracts": [
          6125
        ],
        "name": "ScriptHelpers",
        "nodeType": "ContractDefinition",
        "nodes": [
          {
            "body": {
              "id": 6047,
              "nodeType": "Block",
              "src": "164:44:36",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 6043,
                        "name": "_script",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 6037,
                        "src": "190:7:36",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes_memory_ptr",
                          "typeString": "bytes memory"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "hexValue": "30",
                        "id": 6044,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "number",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "199:1:36",
                        "subdenomination": null,
                        "typeDescriptions": {
                          "typeIdentifier": "t_rational_0_by_1",
                          "typeString": "int_const 0"
                        },
                        "value": "0"
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bytes_memory_ptr",
                          "typeString": "bytes memory"
                        },
                        {
                          "typeIdentifier": "t_rational_0_by_1",
                          "typeString": "int_const 0"
                        }
                      ],
                      "id": 6042,
                      "name": "uint32At",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 6095,
                      "src": "181:8:36",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_internal_pure$_t_bytes_memory_ptr_$_t_uint256_$returns$_t_uint32_$",
                        "typeString": "function (bytes memory,uint256) pure returns (uint32)"
                      }
                    },
                    "id": 6045,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "181:20:36",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint32",
                      "typeString": "uint32"
                    }
                  },
                  "functionReturnParameters": 6041,
                  "id": 6046,
                  "nodeType": "Return",
                  "src": "174:27:36"
                }
              ]
            },
            "documentation": null,
            "id": 6048,
            "implemented": true,
            "isConstructor": false,
            "isDeclaredConst": true,
            "modifiers": [],
            "name": "getSpecId",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 6038,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 6037,
                  "name": "_script",
                  "nodeType": "VariableDeclaration",
                  "scope": 6048,
                  "src": "118:13:36",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes_memory_ptr",
                    "typeString": "bytes"
                  },
                  "typeName": {
                    "id": 6036,
                    "name": "bytes",
                    "nodeType": "ElementaryTypeName",
                    "src": "118:5:36",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes_storage_ptr",
                      "typeString": "bytes"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "117:15:36"
            },
            "payable": false,
            "returnParameters": {
              "id": 6041,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 6040,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 6048,
                  "src": "156:6:36",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint32",
                    "typeString": "uint32"
                  },
                  "typeName": {
                    "id": 6039,
                    "name": "uint32",
                    "nodeType": "ElementaryTypeName",
                    "src": "156:6:36",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint32",
                      "typeString": "uint32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "155:8:36"
            },
            "scope": 6125,
            "src": "99:109:36",
            "stateMutability": "pure",
            "superFunction": null,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 6058,
              "nodeType": "Block",
              "src": "304:98:36",
              "statements": [
                {
                  "externalReferences": [
                    {
                      "result": {
                        "declaration": 6055,
                        "isOffset": false,
                        "isSlot": false,
                        "src": "337:6:36",
                        "valueSize": 1
                      }
                    },
                    {
                      "_data": {
                        "declaration": 6050,
                        "isOffset": false,
                        "isSlot": false,
                        "src": "357:5:36",
                        "valueSize": 1
                      }
                    },
                    {
                      "_location": {
                        "declaration": 6052,
                        "isOffset": false,
                        "isSlot": false,
                        "src": "374:9:36",
                        "valueSize": 1
                      }
                    }
                  ],
                  "id": 6057,
                  "nodeType": "InlineAssembly",
                  "operations": "{\n    result := mload(add(_data, add(0x20, _location)))\n}",
                  "src": "314:88:36"
                }
              ]
            },
            "documentation": null,
            "id": 6059,
            "implemented": true,
            "isConstructor": false,
            "isDeclaredConst": true,
            "modifiers": [],
            "name": "uint256At",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 6053,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 6050,
                  "name": "_data",
                  "nodeType": "VariableDeclaration",
                  "scope": 6059,
                  "src": "233:11:36",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes_memory_ptr",
                    "typeString": "bytes"
                  },
                  "typeName": {
                    "id": 6049,
                    "name": "bytes",
                    "nodeType": "ElementaryTypeName",
                    "src": "233:5:36",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes_storage_ptr",
                      "typeString": "bytes"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 6052,
                  "name": "_location",
                  "nodeType": "VariableDeclaration",
                  "scope": 6059,
                  "src": "246:17:36",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 6051,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "246:7:36",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "232:32:36"
            },
            "payable": false,
            "returnParameters": {
              "id": 6056,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 6055,
                  "name": "result",
                  "nodeType": "VariableDeclaration",
                  "scope": 6059,
                  "src": "288:14:36",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 6054,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "288:7:36",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "287:16:36"
            },
            "scope": 6125,
            "src": "214:188:36",
            "stateMutability": "pure",
            "superFunction": null,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 6076,
              "nodeType": "Block",
              "src": "498:235:36",
              "statements": [
                {
                  "assignments": [
                    6069
                  ],
                  "declarations": [
                    {
                      "constant": false,
                      "id": 6069,
                      "name": "word",
                      "nodeType": "VariableDeclaration",
                      "scope": 6077,
                      "src": "508:12:36",
                      "stateVariable": false,
                      "storageLocation": "default",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      },
                      "typeName": {
                        "id": 6068,
                        "name": "uint256",
                        "nodeType": "ElementaryTypeName",
                        "src": "508:7:36",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      },
                      "value": null,
                      "visibility": "internal"
                    }
                  ],
                  "id": 6074,
                  "initialValue": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 6071,
                        "name": "_data",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 6061,
                        "src": "533:5:36",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes_memory_ptr",
                          "typeString": "bytes memory"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 6072,
                        "name": "_location",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 6063,
                        "src": "540:9:36",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bytes_memory_ptr",
                          "typeString": "bytes memory"
                        },
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      ],
                      "id": 6070,
                      "name": "uint256At",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 6059,
                      "src": "523:9:36",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_internal_pure$_t_bytes_memory_ptr_$_t_uint256_$returns$_t_uint256_$",
                        "typeString": "function (bytes memory,uint256) pure returns (uint256)"
                      }
                    },
                    "id": 6073,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "523:27:36",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "nodeType": "VariableDeclarationStatement",
                  "src": "508:42:36"
                },
                {
                  "externalReferences": [
                    {
                      "result": {
                        "declaration": 6066,
                        "isOffset": false,
                        "isSlot": false,
                        "src": "584:6:36",
                        "valueSize": 1
                      }
                    },
                    {
                      "word": {
                        "declaration": 6069,
                        "isOffset": false,
                        "isSlot": false,
                        "src": "602:4:36",
                        "valueSize": 1
                      }
                    }
                  ],
                  "id": 6075,
                  "nodeType": "InlineAssembly",
                  "operations": "{\n    result := div(and(word, 0xffffffffffffffffffffffffffffffffffffffff000000000000000000000000), 0x1000000000000000000000000)\n}",
                  "src": "561:172:36"
                }
              ]
            },
            "documentation": null,
            "id": 6077,
            "implemented": true,
            "isConstructor": false,
            "isDeclaredConst": true,
            "modifiers": [],
            "name": "addressAt",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 6064,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 6061,
                  "name": "_data",
                  "nodeType": "VariableDeclaration",
                  "scope": 6077,
                  "src": "427:11:36",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes_memory_ptr",
                    "typeString": "bytes"
                  },
                  "typeName": {
                    "id": 6060,
                    "name": "bytes",
                    "nodeType": "ElementaryTypeName",
                    "src": "427:5:36",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes_storage_ptr",
                      "typeString": "bytes"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 6063,
                  "name": "_location",
                  "nodeType": "VariableDeclaration",
                  "scope": 6077,
                  "src": "440:17:36",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 6062,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "440:7:36",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "426:32:36"
            },
            "payable": false,
            "returnParameters": {
              "id": 6067,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 6066,
                  "name": "result",
                  "nodeType": "VariableDeclaration",
                  "scope": 6077,
                  "src": "482:14:36",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 6065,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "482:7:36",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "481:16:36"
            },
            "scope": 6125,
            "src": "408:325:36",
            "stateMutability": "pure",
            "superFunction": null,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 6094,
              "nodeType": "Block",
              "src": "827:267:36",
              "statements": [
                {
                  "assignments": [
                    6087
                  ],
                  "declarations": [
                    {
                      "constant": false,
                      "id": 6087,
                      "name": "word",
                      "nodeType": "VariableDeclaration",
                      "scope": 6095,
                      "src": "837:12:36",
                      "stateVariable": false,
                      "storageLocation": "default",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      },
                      "typeName": {
                        "id": 6086,
                        "name": "uint256",
                        "nodeType": "ElementaryTypeName",
                        "src": "837:7:36",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      },
                      "value": null,
                      "visibility": "internal"
                    }
                  ],
                  "id": 6092,
                  "initialValue": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 6089,
                        "name": "_data",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 6079,
                        "src": "862:5:36",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes_memory_ptr",
                          "typeString": "bytes memory"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 6090,
                        "name": "_location",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 6081,
                        "src": "869:9:36",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bytes_memory_ptr",
                          "typeString": "bytes memory"
                        },
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      ],
                      "id": 6088,
                      "name": "uint256At",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 6059,
                      "src": "852:9:36",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_internal_pure$_t_bytes_memory_ptr_$_t_uint256_$returns$_t_uint256_$",
                        "typeString": "function (bytes memory,uint256) pure returns (uint256)"
                      }
                    },
                    "id": 6091,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "852:27:36",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "nodeType": "VariableDeclarationStatement",
                  "src": "837:42:36"
                },
                {
                  "externalReferences": [
                    {
                      "result": {
                        "declaration": 6084,
                        "isOffset": false,
                        "isSlot": false,
                        "src": "913:6:36",
                        "valueSize": 1
                      }
                    },
                    {
                      "word": {
                        "declaration": 6087,
                        "isOffset": false,
                        "isSlot": false,
                        "src": "931:4:36",
                        "valueSize": 1
                      }
                    }
                  ],
                  "id": 6093,
                  "nodeType": "InlineAssembly",
                  "operations": "{\n    result := div(and(word, 0xffffffff00000000000000000000000000000000000000000000000000000000), 0x100000000000000000000000000000000000000000000000000000000)\n}",
                  "src": "890:204:36"
                }
              ]
            },
            "documentation": null,
            "id": 6095,
            "implemented": true,
            "isConstructor": false,
            "isDeclaredConst": true,
            "modifiers": [],
            "name": "uint32At",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 6082,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 6079,
                  "name": "_data",
                  "nodeType": "VariableDeclaration",
                  "scope": 6095,
                  "src": "757:11:36",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes_memory_ptr",
                    "typeString": "bytes"
                  },
                  "typeName": {
                    "id": 6078,
                    "name": "bytes",
                    "nodeType": "ElementaryTypeName",
                    "src": "757:5:36",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes_storage_ptr",
                      "typeString": "bytes"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 6081,
                  "name": "_location",
                  "nodeType": "VariableDeclaration",
                  "scope": 6095,
                  "src": "770:17:36",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 6080,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "770:7:36",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "756:32:36"
            },
            "payable": false,
            "returnParameters": {
              "id": 6085,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 6084,
                  "name": "result",
                  "nodeType": "VariableDeclaration",
                  "scope": 6095,
                  "src": "812:13:36",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint32",
                    "typeString": "uint32"
                  },
                  "typeName": {
                    "id": 6083,
                    "name": "uint32",
                    "nodeType": "ElementaryTypeName",
                    "src": "812:6:36",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint32",
                      "typeString": "uint32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "811:15:36"
            },
            "scope": 6125,
            "src": "739:355:36",
            "stateMutability": "pure",
            "superFunction": null,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 6105,
              "nodeType": "Block",
              "src": "1191:91:36",
              "statements": [
                {
                  "externalReferences": [
                    {
                      "result": {
                        "declaration": 6102,
                        "isOffset": false,
                        "isSlot": false,
                        "src": "1224:6:36",
                        "valueSize": 1
                      }
                    },
                    {
                      "_data": {
                        "declaration": 6097,
                        "isOffset": false,
                        "isSlot": false,
                        "src": "1238:5:36",
                        "valueSize": 1
                      }
                    },
                    {
                      "_location": {
                        "declaration": 6099,
                        "isOffset": false,
                        "isSlot": false,
                        "src": "1255:9:36",
                        "valueSize": 1
                      }
                    }
                  ],
                  "id": 6104,
                  "nodeType": "InlineAssembly",
                  "operations": "{\n    result := add(_data, add(0x20, _location))\n}",
                  "src": "1201:81:36"
                }
              ]
            },
            "documentation": null,
            "id": 6106,
            "implemented": true,
            "isConstructor": false,
            "isDeclaredConst": true,
            "modifiers": [],
            "name": "locationOf",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 6100,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 6097,
                  "name": "_data",
                  "nodeType": "VariableDeclaration",
                  "scope": 6106,
                  "src": "1120:11:36",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes_memory_ptr",
                    "typeString": "bytes"
                  },
                  "typeName": {
                    "id": 6096,
                    "name": "bytes",
                    "nodeType": "ElementaryTypeName",
                    "src": "1120:5:36",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes_storage_ptr",
                      "typeString": "bytes"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 6099,
                  "name": "_location",
                  "nodeType": "VariableDeclaration",
                  "scope": 6106,
                  "src": "1133:17:36",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 6098,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "1133:7:36",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "1119:32:36"
            },
            "payable": false,
            "returnParameters": {
              "id": 6103,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 6102,
                  "name": "result",
                  "nodeType": "VariableDeclaration",
                  "scope": 6106,
                  "src": "1175:14:36",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 6101,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "1175:7:36",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "1174:16:36"
            },
            "scope": 6125,
            "src": "1100:182:36",
            "stateMutability": "pure",
            "superFunction": null,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 6123,
              "nodeType": "Block",
              "src": "1348:130:36",
              "statements": [
                {
                  "assignments": [
                    6114
                  ],
                  "declarations": [
                    {
                      "constant": false,
                      "id": 6114,
                      "name": "payload",
                      "nodeType": "VariableDeclaration",
                      "scope": 6124,
                      "src": "1358:20:36",
                      "stateVariable": false,
                      "storageLocation": "memory",
                      "typeDescriptions": {
                        "typeIdentifier": "t_bytes_memory_ptr",
                        "typeString": "bytes"
                      },
                      "typeName": {
                        "id": 6113,
                        "name": "bytes",
                        "nodeType": "ElementaryTypeName",
                        "src": "1358:5:36",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes_storage_ptr",
                          "typeString": "bytes"
                        }
                      },
                      "value": null,
                      "visibility": "internal"
                    }
                  ],
                  "id": 6119,
                  "initialValue": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "hexValue": "34",
                        "id": 6117,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "number",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "1391:1:36",
                        "subdenomination": null,
                        "typeDescriptions": {
                          "typeIdentifier": "t_rational_4_by_1",
                          "typeString": "int_const 4"
                        },
                        "value": "4"
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_rational_4_by_1",
                          "typeString": "int_const 4"
                        }
                      ],
                      "id": 6116,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": true,
                      "lValueRequested": false,
                      "nodeType": "NewExpression",
                      "src": "1381:9:36",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_bytes_memory_$",
                        "typeString": "function (uint256) pure returns (bytes memory)"
                      },
                      "typeName": {
                        "id": 6115,
                        "name": "bytes",
                        "nodeType": "ElementaryTypeName",
                        "src": "1385:5:36",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes_storage_ptr",
                          "typeString": "bytes"
                        }
                      }
                    },
                    "id": 6118,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": true,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "1381:12:36",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes_memory",
                      "typeString": "bytes memory"
                    }
                  },
                  "nodeType": "VariableDeclarationStatement",
                  "src": "1358:35:36"
                },
                {
                  "externalReferences": [
                    {
                      "_sig": {
                        "declaration": 6108,
                        "isOffset": false,
                        "isSlot": false,
                        "src": "1441:4:36",
                        "valueSize": 1
                      }
                    },
                    {
                      "payload": {
                        "declaration": 6114,
                        "isOffset": false,
                        "isSlot": false,
                        "src": "1425:7:36",
                        "valueSize": 1
                      }
                    }
                  ],
                  "id": 6120,
                  "nodeType": "InlineAssembly",
                  "operations": "{\n    mstore(add(payload, 0x20), _sig)\n}",
                  "src": "1403:60:36"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "id": 6121,
                    "name": "payload",
                    "nodeType": "Identifier",
                    "overloadedDeclarations": [],
                    "referencedDeclaration": 6114,
                    "src": "1464:7:36",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes_memory_ptr",
                      "typeString": "bytes memory"
                    }
                  },
                  "functionReturnParameters": 6112,
                  "id": 6122,
                  "nodeType": "Return",
                  "src": "1457:14:36"
                }
              ]
            },
            "documentation": null,
            "id": 6124,
            "implemented": true,
            "isConstructor": false,
            "isDeclaredConst": true,
            "modifiers": [],
            "name": "toBytes",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 6109,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 6108,
                  "name": "_sig",
                  "nodeType": "VariableDeclaration",
                  "scope": 6124,
                  "src": "1305:11:36",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes4",
                    "typeString": "bytes4"
                  },
                  "typeName": {
                    "id": 6107,
                    "name": "bytes4",
                    "nodeType": "ElementaryTypeName",
                    "src": "1305:6:36",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes4",
                      "typeString": "bytes4"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "1304:13:36"
            },
            "payable": false,
            "returnParameters": {
              "id": 6112,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 6111,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 6124,
                  "src": "1341:5:36",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes_memory_ptr",
                    "typeString": "bytes"
                  },
                  "typeName": {
                    "id": 6110,
                    "name": "bytes",
                    "nodeType": "ElementaryTypeName",
                    "src": "1341:5:36",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes_storage_ptr",
                      "typeString": "bytes"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "1340:7:36"
            },
            "scope": 6125,
            "src": "1288:190:36",
            "stateMutability": "pure",
            "superFunction": null,
            "visibility": "internal"
          }
        ],
        "scope": 6126,
        "src": "71:1409:36"
      }
    ],
    "src": "44:1437:36"
  },
  "compiler": {
    "name": "solc",
    "version": "0.4.24+commit.e67f0147.Emscripten.clang"
  },
  "networks": {},
  "schemaVersion": "2.0.1",
  "updatedAt": "2019-04-16T08:24:52.820Z"
}