{
  "abi": [],
  "bytecode": {
    "object": "0x602d6023600b82828239805160001a607314601657fe5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea164736f6c6343000706000a",
    "sourceMap": "130:1166:75:-:0;;;;;;;;;;;;;;;;;;;;;;;;;",
    "linkReferences": {}
  },
  "deployedBytecode": {
    "object": "0x73000000000000000000000000000000000000000030146080604052600080fdfea164736f6c6343000706000a",
    "sourceMap": "130:1166:75:-:0;;;;;;;;",
    "linkReferences": {}
  },
  "methodIdentifiers": {},
  "ast": {
    "absolutePath": "packages/contracts-core/contracts/libs/TypeCasts.sol",
    "id": 46346,
    "exportedSymbols": {
      "SafeMath": [
        28151
      ],
      "TypeCasts": [
        46345
      ],
      "TypedMemView": [
        29602
      ]
    },
    "nodeType": "SourceUnit",
    "src": "46:1251:75",
    "nodes": [
      {
        "id": 46243,
        "nodeType": "PragmaDirective",
        "src": "46:22:75",
        "literals": [
          "solidity",
          "0.7",
          ".6"
        ]
      },
      {
        "id": 46244,
        "nodeType": "ImportDirective",
        "src": "70:58:75",
        "absolutePath": "node_modules/@summa-tx/memview-sol/contracts/TypedMemView.sol",
        "file": "@summa-tx/memview-sol/contracts/TypedMemView.sol",
        "scope": 46346,
        "sourceUnit": 29603,
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "id": 46345,
        "nodeType": "ContractDefinition",
        "src": "130:1166:75",
        "nodes": [
          {
            "id": 46247,
            "nodeType": "UsingForDirective",
            "src": "154:29:75",
            "libraryName": {
              "id": 46245,
              "name": "TypedMemView",
              "nodeType": "UserDefinedTypeName",
              "referencedDeclaration": 29602,
              "src": "160:12:75",
              "typeDescriptions": {
                "typeIdentifier": "t_contract$_TypedMemView_$29602",
                "typeString": "library TypedMemView"
              }
            },
            "typeName": {
              "id": 46246,
              "name": "bytes",
              "nodeType": "ElementaryTypeName",
              "src": "177:5:75",
              "typeDescriptions": {
                "typeIdentifier": "t_bytes_storage_ptr",
                "typeString": "bytes"
              }
            }
          },
          {
            "id": 46250,
            "nodeType": "UsingForDirective",
            "src": "188:31:75",
            "libraryName": {
              "id": 46248,
              "name": "TypedMemView",
              "nodeType": "UserDefinedTypeName",
              "referencedDeclaration": 29602,
              "src": "194:12:75",
              "typeDescriptions": {
                "typeIdentifier": "t_contract$_TypedMemView_$29602",
                "typeString": "library TypedMemView"
              }
            },
            "typeName": {
              "id": 46249,
              "name": "bytes29",
              "nodeType": "ElementaryTypeName",
              "src": "211:7:75",
              "typeDescriptions": {
                "typeIdentifier": "t_bytes29",
                "typeString": "bytes29"
              }
            }
          },
          {
            "id": 46279,
            "nodeType": "FunctionDefinition",
            "src": "225:176:75",
            "body": {
              "id": 46278,
              "nodeType": "Block",
              "src": "329:72:75",
              "statements": [
                {
                  "expression": {
                    "id": 46276,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "id": 46257,
                      "name": "_b",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 46255,
                      "src": "339:2:75",
                      "typeDescriptions": {
                        "typeIdentifier": "t_bytes32",
                        "typeString": "bytes32"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "arguments": [
                        {
                          "hexValue": "30",
                          "id": 46266,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "kind": "number",
                          "lValueRequested": false,
                          "nodeType": "Literal",
                          "src": "367:1:75",
                          "typeDescriptions": {
                            "typeIdentifier": "t_rational_0_by_1",
                            "typeString": "int_const 0"
                          },
                          "value": "0"
                        },
                        {
                          "arguments": [
                            {
                              "expression": {
                                "arguments": [
                                  {
                                    "id": 46271,
                                    "name": "_s",
                                    "nodeType": "Identifier",
                                    "overloadedDeclarations": [],
                                    "referencedDeclaration": 46252,
                                    "src": "382:2:75",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_string_memory_ptr",
                                      "typeString": "string memory"
                                    }
                                  }
                                ],
                                "expression": {
                                  "argumentTypes": [
                                    {
                                      "typeIdentifier": "t_string_memory_ptr",
                                      "typeString": "string memory"
                                    }
                                  ],
                                  "id": 46270,
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": true,
                                  "lValueRequested": false,
                                  "nodeType": "ElementaryTypeNameExpression",
                                  "src": "376:5:75",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_type$_t_bytes_storage_ptr_$",
                                    "typeString": "type(bytes storage pointer)"
                                  },
                                  "typeName": {
                                    "id": 46269,
                                    "name": "bytes",
                                    "nodeType": "ElementaryTypeName",
                                    "src": "376:5:75",
                                    "typeDescriptions": {}
                                  }
                                },
                                "id": 46272,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": false,
                                "kind": "typeConversion",
                                "lValueRequested": false,
                                "names": [],
                                "nodeType": "FunctionCall",
                                "src": "376:9:75",
                                "tryCall": false,
                                "typeDescriptions": {
                                  "typeIdentifier": "t_bytes_memory_ptr",
                                  "typeString": "bytes memory"
                                }
                              },
                              "id": 46273,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": false,
                              "lValueRequested": false,
                              "memberName": "length",
                              "nodeType": "MemberAccess",
                              "src": "376:16:75",
                              "typeDescriptions": {
                                "typeIdentifier": "t_uint256",
                                "typeString": "uint256"
                              }
                            }
                          ],
                          "expression": {
                            "argumentTypes": [
                              {
                                "typeIdentifier": "t_uint256",
                                "typeString": "uint256"
                              }
                            ],
                            "id": 46268,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "lValueRequested": false,
                            "nodeType": "ElementaryTypeNameExpression",
                            "src": "370:5:75",
                            "typeDescriptions": {
                              "typeIdentifier": "t_type$_t_uint8_$",
                              "typeString": "type(uint8)"
                            },
                            "typeName": {
                              "id": 46267,
                              "name": "uint8",
                              "nodeType": "ElementaryTypeName",
                              "src": "370:5:75",
                              "typeDescriptions": {}
                            }
                          },
                          "id": 46274,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "kind": "typeConversion",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "370:23:75",
                          "tryCall": false,
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint8",
                            "typeString": "uint8"
                          }
                        }
                      ],
                      "expression": {
                        "argumentTypes": [
                          {
                            "typeIdentifier": "t_rational_0_by_1",
                            "typeString": "int_const 0"
                          },
                          {
                            "typeIdentifier": "t_uint8",
                            "typeString": "uint8"
                          }
                        ],
                        "expression": {
                          "arguments": [
                            {
                              "hexValue": "30",
                              "id": 46263,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "kind": "number",
                              "lValueRequested": false,
                              "nodeType": "Literal",
                              "src": "358:1:75",
                              "typeDescriptions": {
                                "typeIdentifier": "t_rational_0_by_1",
                                "typeString": "int_const 0"
                              },
                              "value": "0"
                            }
                          ],
                          "expression": {
                            "argumentTypes": [
                              {
                                "typeIdentifier": "t_rational_0_by_1",
                                "typeString": "int_const 0"
                              }
                            ],
                            "expression": {
                              "arguments": [
                                {
                                  "id": 46260,
                                  "name": "_s",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 46252,
                                  "src": "350:2:75",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_string_memory_ptr",
                                    "typeString": "string memory"
                                  }
                                }
                              ],
                              "expression": {
                                "argumentTypes": [
                                  {
                                    "typeIdentifier": "t_string_memory_ptr",
                                    "typeString": "string memory"
                                  }
                                ],
                                "id": 46259,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": true,
                                "lValueRequested": false,
                                "nodeType": "ElementaryTypeNameExpression",
                                "src": "344:5:75",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_type$_t_bytes_storage_ptr_$",
                                  "typeString": "type(bytes storage pointer)"
                                },
                                "typeName": {
                                  "id": 46258,
                                  "name": "bytes",
                                  "nodeType": "ElementaryTypeName",
                                  "src": "344:5:75",
                                  "typeDescriptions": {}
                                }
                              },
                              "id": 46261,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": false,
                              "kind": "typeConversion",
                              "lValueRequested": false,
                              "names": [],
                              "nodeType": "FunctionCall",
                              "src": "344:9:75",
                              "tryCall": false,
                              "typeDescriptions": {
                                "typeIdentifier": "t_bytes_memory_ptr",
                                "typeString": "bytes memory"
                              }
                            },
                            "id": 46262,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": false,
                            "lValueRequested": false,
                            "memberName": "ref",
                            "nodeType": "MemberAccess",
                            "referencedDeclaration": 28766,
                            "src": "344:13:75",
                            "typeDescriptions": {
                              "typeIdentifier": "t_function_internal_pure$_t_bytes_memory_ptr_$_t_uint40_$returns$_t_bytes29_$bound_to$_t_bytes_memory_ptr_$",
                              "typeString": "function (bytes memory,uint40) pure returns (bytes29)"
                            }
                          },
                          "id": 46264,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "kind": "functionCall",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "344:16:75",
                          "tryCall": false,
                          "typeDescriptions": {
                            "typeIdentifier": "t_bytes29",
                            "typeString": "bytes29"
                          }
                        },
                        "id": 46265,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "memberName": "index",
                        "nodeType": "MemberAccess",
                        "referencedDeclaration": 29121,
                        "src": "344:22:75",
                        "typeDescriptions": {
                          "typeIdentifier": "t_function_internal_pure$_t_bytes29_$_t_uint256_$_t_uint8_$returns$_t_bytes32_$bound_to$_t_bytes29_$",
                          "typeString": "function (bytes29,uint256,uint8) pure returns (bytes32)"
                        }
                      },
                      "id": 46275,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "functionCall",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "344:50:75",
                      "tryCall": false,
                      "typeDescriptions": {
                        "typeIdentifier": "t_bytes32",
                        "typeString": "bytes32"
                      }
                    },
                    "src": "339:55:75",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "id": 46277,
                  "nodeType": "ExpressionStatement",
                  "src": "339:55:75"
                }
              ]
            },
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "coerceBytes32",
            "parameters": {
              "id": 46253,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 46252,
                  "mutability": "mutable",
                  "name": "_s",
                  "nodeType": "VariableDeclaration",
                  "scope": 46279,
                  "src": "248:16:75",
                  "stateVariable": false,
                  "storageLocation": "memory",
                  "typeDescriptions": {
                    "typeIdentifier": "t_string_memory_ptr",
                    "typeString": "string"
                  },
                  "typeName": {
                    "id": 46251,
                    "name": "string",
                    "nodeType": "ElementaryTypeName",
                    "src": "248:6:75",
                    "typeDescriptions": {
                      "typeIdentifier": "t_string_storage_ptr",
                      "typeString": "string"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "247:18:75"
            },
            "returnParameters": {
              "id": 46256,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 46255,
                  "mutability": "mutable",
                  "name": "_b",
                  "nodeType": "VariableDeclaration",
                  "scope": 46279,
                  "src": "313:10:75",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 46254,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "313:7:75",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "312:12:75"
            },
            "scope": 46345,
            "stateMutability": "pure",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "id": 46306,
            "nodeType": "FunctionDefinition",
            "src": "467:493:75",
            "body": {
              "id": 46305,
              "nodeType": "Block",
              "src": "577:383:75",
              "statements": [
                {
                  "assignments": [
                    46287
                  ],
                  "declarations": [
                    {
                      "constant": false,
                      "id": 46287,
                      "mutability": "mutable",
                      "name": "_slen",
                      "nodeType": "VariableDeclaration",
                      "scope": 46305,
                      "src": "587:11:75",
                      "stateVariable": false,
                      "storageLocation": "default",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint8",
                        "typeString": "uint8"
                      },
                      "typeName": {
                        "id": 46286,
                        "name": "uint8",
                        "nodeType": "ElementaryTypeName",
                        "src": "587:5:75",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint8",
                          "typeString": "uint8"
                        }
                      },
                      "visibility": "internal"
                    }
                  ],
                  "id": 46289,
                  "initialValue": {
                    "hexValue": "30",
                    "id": 46288,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": true,
                    "kind": "number",
                    "lValueRequested": false,
                    "nodeType": "Literal",
                    "src": "601:1:75",
                    "typeDescriptions": {
                      "typeIdentifier": "t_rational_0_by_1",
                      "typeString": "int_const 0"
                    },
                    "value": "0"
                  },
                  "nodeType": "VariableDeclarationStatement",
                  "src": "587:15:75"
                },
                {
                  "body": {
                    "id": 46302,
                    "nodeType": "Block",
                    "src": "651:32:75",
                    "statements": [
                      {
                        "expression": {
                          "id": 46300,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "nodeType": "UnaryOperation",
                          "operator": "++",
                          "prefix": false,
                          "src": "665:7:75",
                          "subExpression": {
                            "id": 46299,
                            "name": "_slen",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 46287,
                            "src": "665:5:75",
                            "typeDescriptions": {
                              "typeIdentifier": "t_uint8",
                              "typeString": "uint8"
                            }
                          },
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint8",
                            "typeString": "uint8"
                          }
                        },
                        "id": 46301,
                        "nodeType": "ExpressionStatement",
                        "src": "665:7:75"
                      }
                    ]
                  },
                  "condition": {
                    "commonType": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    },
                    "id": 46298,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftExpression": {
                      "commonType": {
                        "typeIdentifier": "t_uint8",
                        "typeString": "uint8"
                      },
                      "id": 46292,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "leftExpression": {
                        "id": 46290,
                        "name": "_slen",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 46287,
                        "src": "619:5:75",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint8",
                          "typeString": "uint8"
                        }
                      },
                      "nodeType": "BinaryOperation",
                      "operator": "<",
                      "rightExpression": {
                        "hexValue": "3332",
                        "id": 46291,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "number",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "627:2:75",
                        "typeDescriptions": {
                          "typeIdentifier": "t_rational_32_by_1",
                          "typeString": "int_const 32"
                        },
                        "value": "32"
                      },
                      "src": "619:10:75",
                      "typeDescriptions": {
                        "typeIdentifier": "t_bool",
                        "typeString": "bool"
                      }
                    },
                    "nodeType": "BinaryOperation",
                    "operator": "&&",
                    "rightExpression": {
                      "commonType": {
                        "typeIdentifier": "t_bytes1",
                        "typeString": "bytes1"
                      },
                      "id": 46297,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "leftExpression": {
                        "baseExpression": {
                          "id": 46293,
                          "name": "_buf",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 46281,
                          "src": "633:4:75",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bytes32",
                            "typeString": "bytes32"
                          }
                        },
                        "id": 46295,
                        "indexExpression": {
                          "id": 46294,
                          "name": "_slen",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 46287,
                          "src": "638:5:75",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint8",
                            "typeString": "uint8"
                          }
                        },
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "nodeType": "IndexAccess",
                        "src": "633:11:75",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes1",
                          "typeString": "bytes1"
                        }
                      },
                      "nodeType": "BinaryOperation",
                      "operator": "!=",
                      "rightExpression": {
                        "hexValue": "30",
                        "id": 46296,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "number",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "648:1:75",
                        "typeDescriptions": {
                          "typeIdentifier": "t_rational_0_by_1",
                          "typeString": "int_const 0"
                        },
                        "value": "0"
                      },
                      "src": "633:16:75",
                      "typeDescriptions": {
                        "typeIdentifier": "t_bool",
                        "typeString": "bool"
                      }
                    },
                    "src": "619:30:75",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "id": 46303,
                  "nodeType": "WhileStatement",
                  "src": "612:71:75"
                },
                {
                  "AST": {
                    "nodeType": "YulBlock",
                    "src": "758:196:75",
                    "statements": [
                      {
                        "nodeType": "YulAssignment",
                        "src": "772:22:75",
                        "value": {
                          "arguments": [
                            {
                              "kind": "number",
                              "nodeType": "YulLiteral",
                              "src": "789:4:75",
                              "type": "",
                              "value": "0x40"
                            }
                          ],
                          "functionName": {
                            "name": "mload",
                            "nodeType": "YulIdentifier",
                            "src": "783:5:75"
                          },
                          "nodeType": "YulFunctionCall",
                          "src": "783:11:75"
                        },
                        "variableNames": [
                          {
                            "name": "_newStr",
                            "nodeType": "YulIdentifier",
                            "src": "772:7:75"
                          }
                        ]
                      },
                      {
                        "expression": {
                          "arguments": [
                            {
                              "kind": "number",
                              "nodeType": "YulLiteral",
                              "src": "814:4:75",
                              "type": "",
                              "value": "0x40"
                            },
                            {
                              "arguments": [
                                {
                                  "name": "_newStr",
                                  "nodeType": "YulIdentifier",
                                  "src": "824:7:75"
                                },
                                {
                                  "kind": "number",
                                  "nodeType": "YulLiteral",
                                  "src": "833:4:75",
                                  "type": "",
                                  "value": "0x40"
                                }
                              ],
                              "functionName": {
                                "name": "add",
                                "nodeType": "YulIdentifier",
                                "src": "820:3:75"
                              },
                              "nodeType": "YulFunctionCall",
                              "src": "820:18:75"
                            }
                          ],
                          "functionName": {
                            "name": "mstore",
                            "nodeType": "YulIdentifier",
                            "src": "807:6:75"
                          },
                          "nodeType": "YulFunctionCall",
                          "src": "807:32:75"
                        },
                        "nodeType": "YulExpressionStatement",
                        "src": "807:32:75"
                      },
                      {
                        "expression": {
                          "arguments": [
                            {
                              "name": "_newStr",
                              "nodeType": "YulIdentifier",
                              "src": "884:7:75"
                            },
                            {
                              "name": "_slen",
                              "nodeType": "YulIdentifier",
                              "src": "893:5:75"
                            }
                          ],
                          "functionName": {
                            "name": "mstore",
                            "nodeType": "YulIdentifier",
                            "src": "877:6:75"
                          },
                          "nodeType": "YulFunctionCall",
                          "src": "877:22:75"
                        },
                        "nodeType": "YulExpressionStatement",
                        "src": "877:22:75"
                      },
                      {
                        "expression": {
                          "arguments": [
                            {
                              "arguments": [
                                {
                                  "name": "_newStr",
                                  "nodeType": "YulIdentifier",
                                  "src": "923:7:75"
                                },
                                {
                                  "kind": "number",
                                  "nodeType": "YulLiteral",
                                  "src": "932:4:75",
                                  "type": "",
                                  "value": "0x20"
                                }
                              ],
                              "functionName": {
                                "name": "add",
                                "nodeType": "YulIdentifier",
                                "src": "919:3:75"
                              },
                              "nodeType": "YulFunctionCall",
                              "src": "919:18:75"
                            },
                            {
                              "name": "_buf",
                              "nodeType": "YulIdentifier",
                              "src": "939:4:75"
                            }
                          ],
                          "functionName": {
                            "name": "mstore",
                            "nodeType": "YulIdentifier",
                            "src": "912:6:75"
                          },
                          "nodeType": "YulFunctionCall",
                          "src": "912:32:75"
                        },
                        "nodeType": "YulExpressionStatement",
                        "src": "912:32:75"
                      }
                    ]
                  },
                  "evmVersion": "istanbul",
                  "externalReferences": [
                    {
                      "declaration": 46281,
                      "isOffset": false,
                      "isSlot": false,
                      "src": "939:4:75",
                      "valueSize": 1
                    },
                    {
                      "declaration": 46284,
                      "isOffset": false,
                      "isSlot": false,
                      "src": "772:7:75",
                      "valueSize": 1
                    },
                    {
                      "declaration": 46284,
                      "isOffset": false,
                      "isSlot": false,
                      "src": "824:7:75",
                      "valueSize": 1
                    },
                    {
                      "declaration": 46284,
                      "isOffset": false,
                      "isSlot": false,
                      "src": "884:7:75",
                      "valueSize": 1
                    },
                    {
                      "declaration": 46284,
                      "isOffset": false,
                      "isSlot": false,
                      "src": "923:7:75",
                      "valueSize": 1
                    },
                    {
                      "declaration": 46287,
                      "isOffset": false,
                      "isSlot": false,
                      "src": "893:5:75",
                      "valueSize": 1
                    }
                  ],
                  "id": 46304,
                  "nodeType": "InlineAssembly",
                  "src": "749:205:75"
                }
              ]
            },
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "coerceString",
            "parameters": {
              "id": 46282,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 46281,
                  "mutability": "mutable",
                  "name": "_buf",
                  "nodeType": "VariableDeclaration",
                  "scope": 46306,
                  "src": "489:12:75",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 46280,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "489:7:75",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "488:14:75"
            },
            "returnParameters": {
              "id": 46285,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 46284,
                  "mutability": "mutable",
                  "name": "_newStr",
                  "nodeType": "VariableDeclaration",
                  "scope": 46306,
                  "src": "550:21:75",
                  "stateVariable": false,
                  "storageLocation": "memory",
                  "typeDescriptions": {
                    "typeIdentifier": "t_string_memory_ptr",
                    "typeString": "string"
                  },
                  "typeName": {
                    "id": 46283,
                    "name": "string",
                    "nodeType": "ElementaryTypeName",
                    "src": "550:6:75",
                    "typeDescriptions": {
                      "typeIdentifier": "t_string_storage_ptr",
                      "typeString": "string"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "549:23:75"
            },
            "scope": 46345,
            "stateMutability": "pure",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "id": 46325,
            "nodeType": "FunctionDefinition",
            "src": "999:129:75",
            "body": {
              "id": 46324,
              "nodeType": "Block",
              "src": "1072:56:75",
              "statements": [
                {
                  "expression": {
                    "arguments": [
                      {
                        "arguments": [
                          {
                            "arguments": [
                              {
                                "id": 46319,
                                "name": "_addr",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 46308,
                                "src": "1113:5:75",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_address",
                                  "typeString": "address"
                                }
                              }
                            ],
                            "expression": {
                              "argumentTypes": [
                                {
                                  "typeIdentifier": "t_address",
                                  "typeString": "address"
                                }
                              ],
                              "id": 46318,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "lValueRequested": false,
                              "nodeType": "ElementaryTypeNameExpression",
                              "src": "1105:7:75",
                              "typeDescriptions": {
                                "typeIdentifier": "t_type$_t_uint160_$",
                                "typeString": "type(uint160)"
                              },
                              "typeName": {
                                "id": 46317,
                                "name": "uint160",
                                "nodeType": "ElementaryTypeName",
                                "src": "1105:7:75",
                                "typeDescriptions": {}
                              }
                            },
                            "id": 46320,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": false,
                            "kind": "typeConversion",
                            "lValueRequested": false,
                            "names": [],
                            "nodeType": "FunctionCall",
                            "src": "1105:14:75",
                            "tryCall": false,
                            "typeDescriptions": {
                              "typeIdentifier": "t_uint160",
                              "typeString": "uint160"
                            }
                          }
                        ],
                        "expression": {
                          "argumentTypes": [
                            {
                              "typeIdentifier": "t_uint160",
                              "typeString": "uint160"
                            }
                          ],
                          "id": 46316,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "lValueRequested": false,
                          "nodeType": "ElementaryTypeNameExpression",
                          "src": "1097:7:75",
                          "typeDescriptions": {
                            "typeIdentifier": "t_type$_t_uint256_$",
                            "typeString": "type(uint256)"
                          },
                          "typeName": {
                            "id": 46315,
                            "name": "uint256",
                            "nodeType": "ElementaryTypeName",
                            "src": "1097:7:75",
                            "typeDescriptions": {}
                          }
                        },
                        "id": 46321,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "kind": "typeConversion",
                        "lValueRequested": false,
                        "names": [],
                        "nodeType": "FunctionCall",
                        "src": "1097:23:75",
                        "tryCall": false,
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      ],
                      "id": 46314,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": true,
                      "lValueRequested": false,
                      "nodeType": "ElementaryTypeNameExpression",
                      "src": "1089:7:75",
                      "typeDescriptions": {
                        "typeIdentifier": "t_type$_t_bytes32_$",
                        "typeString": "type(bytes32)"
                      },
                      "typeName": {
                        "id": 46313,
                        "name": "bytes32",
                        "nodeType": "ElementaryTypeName",
                        "src": "1089:7:75",
                        "typeDescriptions": {}
                      }
                    },
                    "id": 46322,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "typeConversion",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "1089:32:75",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "functionReturnParameters": 46312,
                  "id": 46323,
                  "nodeType": "Return",
                  "src": "1082:39:75"
                }
              ]
            },
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "addressToBytes32",
            "parameters": {
              "id": 46309,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 46308,
                  "mutability": "mutable",
                  "name": "_addr",
                  "nodeType": "VariableDeclaration",
                  "scope": 46325,
                  "src": "1025:13:75",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 46307,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "1025:7:75",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "1024:15:75"
            },
            "returnParameters": {
              "id": 46312,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 46311,
                  "mutability": "mutable",
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 46325,
                  "src": "1063:7:75",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 46310,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "1063:7:75",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "1062:9:75"
            },
            "scope": 46345,
            "stateMutability": "pure",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "id": 46344,
            "nodeType": "FunctionDefinition",
            "src": "1167:127:75",
            "body": {
              "id": 46343,
              "nodeType": "Block",
              "src": "1239:55:75",
              "statements": [
                {
                  "expression": {
                    "arguments": [
                      {
                        "arguments": [
                          {
                            "arguments": [
                              {
                                "id": 46338,
                                "name": "_buf",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 46327,
                                "src": "1280:4:75",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_bytes32",
                                  "typeString": "bytes32"
                                }
                              }
                            ],
                            "expression": {
                              "argumentTypes": [
                                {
                                  "typeIdentifier": "t_bytes32",
                                  "typeString": "bytes32"
                                }
                              ],
                              "id": 46337,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "lValueRequested": false,
                              "nodeType": "ElementaryTypeNameExpression",
                              "src": "1272:7:75",
                              "typeDescriptions": {
                                "typeIdentifier": "t_type$_t_uint256_$",
                                "typeString": "type(uint256)"
                              },
                              "typeName": {
                                "id": 46336,
                                "name": "uint256",
                                "nodeType": "ElementaryTypeName",
                                "src": "1272:7:75",
                                "typeDescriptions": {}
                              }
                            },
                            "id": 46339,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": false,
                            "kind": "typeConversion",
                            "lValueRequested": false,
                            "names": [],
                            "nodeType": "FunctionCall",
                            "src": "1272:13:75",
                            "tryCall": false,
                            "typeDescriptions": {
                              "typeIdentifier": "t_uint256",
                              "typeString": "uint256"
                            }
                          }
                        ],
                        "expression": {
                          "argumentTypes": [
                            {
                              "typeIdentifier": "t_uint256",
                              "typeString": "uint256"
                            }
                          ],
                          "id": 46335,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "lValueRequested": false,
                          "nodeType": "ElementaryTypeNameExpression",
                          "src": "1264:7:75",
                          "typeDescriptions": {
                            "typeIdentifier": "t_type$_t_uint160_$",
                            "typeString": "type(uint160)"
                          },
                          "typeName": {
                            "id": 46334,
                            "name": "uint160",
                            "nodeType": "ElementaryTypeName",
                            "src": "1264:7:75",
                            "typeDescriptions": {}
                          }
                        },
                        "id": 46340,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "kind": "typeConversion",
                        "lValueRequested": false,
                        "names": [],
                        "nodeType": "FunctionCall",
                        "src": "1264:22:75",
                        "tryCall": false,
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint160",
                          "typeString": "uint160"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_uint160",
                          "typeString": "uint160"
                        }
                      ],
                      "id": 46333,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": true,
                      "lValueRequested": false,
                      "nodeType": "ElementaryTypeNameExpression",
                      "src": "1256:7:75",
                      "typeDescriptions": {
                        "typeIdentifier": "t_type$_t_address_$",
                        "typeString": "type(address)"
                      },
                      "typeName": {
                        "id": 46332,
                        "name": "address",
                        "nodeType": "ElementaryTypeName",
                        "src": "1256:7:75",
                        "typeDescriptions": {}
                      }
                    },
                    "id": 46341,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "typeConversion",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "1256:31:75",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_address_payable",
                      "typeString": "address payable"
                    }
                  },
                  "functionReturnParameters": 46331,
                  "id": 46342,
                  "nodeType": "Return",
                  "src": "1249:38:75"
                }
              ]
            },
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "bytes32ToAddress",
            "parameters": {
              "id": 46328,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 46327,
                  "mutability": "mutable",
                  "name": "_buf",
                  "nodeType": "VariableDeclaration",
                  "scope": 46344,
                  "src": "1193:12:75",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 46326,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "1193:7:75",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "1192:14:75"
            },
            "returnParameters": {
              "id": 46331,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 46330,
                  "mutability": "mutable",
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 46344,
                  "src": "1230:7:75",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 46329,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "1230:7:75",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "1229:9:75"
            },
            "scope": 46345,
            "stateMutability": "pure",
            "virtual": false,
            "visibility": "internal"
          }
        ],
        "abstract": false,
        "baseContracts": [],
        "contractDependencies": [],
        "contractKind": "library",
        "fullyImplemented": true,
        "linearizedBaseContracts": [
          46345
        ],
        "name": "TypeCasts",
        "scope": 46346
      }
    ],
    "license": "MIT OR Apache-2.0"
  },
  "id": 75
}