{
  "abi": [],
  "bytecode": {
    "object": "0x602d6023600b82828239805160001a607314601657fe5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea164736f6c6343000706000a",
    "sourceMap": "130:1166:29:-:0;;;;;;;;;;;;;;;;;;;;;;;;;",
    "linkReferences": {}
  },
  "deployedBytecode": {
    "object": "0x73000000000000000000000000000000000000000030146080604052600080fdfea164736f6c6343000706000a",
    "sourceMap": "130:1166:29:-:0;;;;;;;;",
    "linkReferences": {}
  },
  "methodIdentifiers": {},
  "ast": {
    "absolutePath": "packages/contracts-core/contracts/libs/TypeCasts.sol",
    "id": 28730,
    "exportedSymbols": {
      "SafeMath": [
        24170
      ],
      "TypeCasts": [
        28729
      ],
      "TypedMemView": [
        25621
      ]
    },
    "nodeType": "SourceUnit",
    "src": "46:1251:29",
    "nodes": [
      {
        "id": 28627,
        "nodeType": "PragmaDirective",
        "src": "46:22:29",
        "literals": [
          "solidity",
          "0.7",
          ".6"
        ]
      },
      {
        "id": 28628,
        "nodeType": "ImportDirective",
        "src": "70:58:29",
        "absolutePath": "node_modules/@summa-tx/memview-sol/contracts/TypedMemView.sol",
        "file": "@summa-tx/memview-sol/contracts/TypedMemView.sol",
        "scope": 28730,
        "sourceUnit": 25622,
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "id": 28729,
        "nodeType": "ContractDefinition",
        "src": "130:1166:29",
        "nodes": [
          {
            "id": 28631,
            "nodeType": "UsingForDirective",
            "src": "154:29:29",
            "libraryName": {
              "id": 28629,
              "name": "TypedMemView",
              "nodeType": "UserDefinedTypeName",
              "referencedDeclaration": 25621,
              "src": "160:12:29",
              "typeDescriptions": {
                "typeIdentifier": "t_contract$_TypedMemView_$25621",
                "typeString": "library TypedMemView"
              }
            },
            "typeName": {
              "id": 28630,
              "name": "bytes",
              "nodeType": "ElementaryTypeName",
              "src": "177:5:29",
              "typeDescriptions": {
                "typeIdentifier": "t_bytes_storage_ptr",
                "typeString": "bytes"
              }
            }
          },
          {
            "id": 28634,
            "nodeType": "UsingForDirective",
            "src": "188:31:29",
            "libraryName": {
              "id": 28632,
              "name": "TypedMemView",
              "nodeType": "UserDefinedTypeName",
              "referencedDeclaration": 25621,
              "src": "194:12:29",
              "typeDescriptions": {
                "typeIdentifier": "t_contract$_TypedMemView_$25621",
                "typeString": "library TypedMemView"
              }
            },
            "typeName": {
              "id": 28633,
              "name": "bytes29",
              "nodeType": "ElementaryTypeName",
              "src": "211:7:29",
              "typeDescriptions": {
                "typeIdentifier": "t_bytes29",
                "typeString": "bytes29"
              }
            }
          },
          {
            "id": 28663,
            "nodeType": "FunctionDefinition",
            "src": "225:176:29",
            "body": {
              "id": 28662,
              "nodeType": "Block",
              "src": "329:72:29",
              "statements": [
                {
                  "expression": {
                    "id": 28660,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "id": 28641,
                      "name": "_b",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 28639,
                      "src": "339:2:29",
                      "typeDescriptions": {
                        "typeIdentifier": "t_bytes32",
                        "typeString": "bytes32"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "arguments": [
                        {
                          "hexValue": "30",
                          "id": 28650,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "kind": "number",
                          "lValueRequested": false,
                          "nodeType": "Literal",
                          "src": "367:1:29",
                          "typeDescriptions": {
                            "typeIdentifier": "t_rational_0_by_1",
                            "typeString": "int_const 0"
                          },
                          "value": "0"
                        },
                        {
                          "arguments": [
                            {
                              "expression": {
                                "arguments": [
                                  {
                                    "id": 28655,
                                    "name": "_s",
                                    "nodeType": "Identifier",
                                    "overloadedDeclarations": [],
                                    "referencedDeclaration": 28636,
                                    "src": "382:2:29",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_string_memory_ptr",
                                      "typeString": "string memory"
                                    }
                                  }
                                ],
                                "expression": {
                                  "argumentTypes": [
                                    {
                                      "typeIdentifier": "t_string_memory_ptr",
                                      "typeString": "string memory"
                                    }
                                  ],
                                  "id": 28654,
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": true,
                                  "lValueRequested": false,
                                  "nodeType": "ElementaryTypeNameExpression",
                                  "src": "376:5:29",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_type$_t_bytes_storage_ptr_$",
                                    "typeString": "type(bytes storage pointer)"
                                  },
                                  "typeName": {
                                    "id": 28653,
                                    "name": "bytes",
                                    "nodeType": "ElementaryTypeName",
                                    "src": "376:5:29",
                                    "typeDescriptions": {}
                                  }
                                },
                                "id": 28656,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": false,
                                "kind": "typeConversion",
                                "lValueRequested": false,
                                "names": [],
                                "nodeType": "FunctionCall",
                                "src": "376:9:29",
                                "tryCall": false,
                                "typeDescriptions": {
                                  "typeIdentifier": "t_bytes_memory_ptr",
                                  "typeString": "bytes memory"
                                }
                              },
                              "id": 28657,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": false,
                              "lValueRequested": false,
                              "memberName": "length",
                              "nodeType": "MemberAccess",
                              "src": "376:16:29",
                              "typeDescriptions": {
                                "typeIdentifier": "t_uint256",
                                "typeString": "uint256"
                              }
                            }
                          ],
                          "expression": {
                            "argumentTypes": [
                              {
                                "typeIdentifier": "t_uint256",
                                "typeString": "uint256"
                              }
                            ],
                            "id": 28652,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "lValueRequested": false,
                            "nodeType": "ElementaryTypeNameExpression",
                            "src": "370:5:29",
                            "typeDescriptions": {
                              "typeIdentifier": "t_type$_t_uint8_$",
                              "typeString": "type(uint8)"
                            },
                            "typeName": {
                              "id": 28651,
                              "name": "uint8",
                              "nodeType": "ElementaryTypeName",
                              "src": "370:5:29",
                              "typeDescriptions": {}
                            }
                          },
                          "id": 28658,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "kind": "typeConversion",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "370:23:29",
                          "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": 28647,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "kind": "number",
                              "lValueRequested": false,
                              "nodeType": "Literal",
                              "src": "358:1:29",
                              "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": 28644,
                                  "name": "_s",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 28636,
                                  "src": "350:2:29",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_string_memory_ptr",
                                    "typeString": "string memory"
                                  }
                                }
                              ],
                              "expression": {
                                "argumentTypes": [
                                  {
                                    "typeIdentifier": "t_string_memory_ptr",
                                    "typeString": "string memory"
                                  }
                                ],
                                "id": 28643,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": true,
                                "lValueRequested": false,
                                "nodeType": "ElementaryTypeNameExpression",
                                "src": "344:5:29",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_type$_t_bytes_storage_ptr_$",
                                  "typeString": "type(bytes storage pointer)"
                                },
                                "typeName": {
                                  "id": 28642,
                                  "name": "bytes",
                                  "nodeType": "ElementaryTypeName",
                                  "src": "344:5:29",
                                  "typeDescriptions": {}
                                }
                              },
                              "id": 28645,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": false,
                              "kind": "typeConversion",
                              "lValueRequested": false,
                              "names": [],
                              "nodeType": "FunctionCall",
                              "src": "344:9:29",
                              "tryCall": false,
                              "typeDescriptions": {
                                "typeIdentifier": "t_bytes_memory_ptr",
                                "typeString": "bytes memory"
                              }
                            },
                            "id": 28646,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": false,
                            "lValueRequested": false,
                            "memberName": "ref",
                            "nodeType": "MemberAccess",
                            "referencedDeclaration": 24785,
                            "src": "344:13:29",
                            "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": 28648,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "kind": "functionCall",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "344:16:29",
                          "tryCall": false,
                          "typeDescriptions": {
                            "typeIdentifier": "t_bytes29",
                            "typeString": "bytes29"
                          }
                        },
                        "id": 28649,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "memberName": "index",
                        "nodeType": "MemberAccess",
                        "referencedDeclaration": 25140,
                        "src": "344:22:29",
                        "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": 28659,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "functionCall",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "344:50:29",
                      "tryCall": false,
                      "typeDescriptions": {
                        "typeIdentifier": "t_bytes32",
                        "typeString": "bytes32"
                      }
                    },
                    "src": "339:55:29",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "id": 28661,
                  "nodeType": "ExpressionStatement",
                  "src": "339:55:29"
                }
              ]
            },
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "coerceBytes32",
            "parameters": {
              "id": 28637,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 28636,
                  "mutability": "mutable",
                  "name": "_s",
                  "nodeType": "VariableDeclaration",
                  "scope": 28663,
                  "src": "248:16:29",
                  "stateVariable": false,
                  "storageLocation": "memory",
                  "typeDescriptions": {
                    "typeIdentifier": "t_string_memory_ptr",
                    "typeString": "string"
                  },
                  "typeName": {
                    "id": 28635,
                    "name": "string",
                    "nodeType": "ElementaryTypeName",
                    "src": "248:6:29",
                    "typeDescriptions": {
                      "typeIdentifier": "t_string_storage_ptr",
                      "typeString": "string"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "247:18:29"
            },
            "returnParameters": {
              "id": 28640,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 28639,
                  "mutability": "mutable",
                  "name": "_b",
                  "nodeType": "VariableDeclaration",
                  "scope": 28663,
                  "src": "313:10:29",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 28638,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "313:7:29",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "312:12:29"
            },
            "scope": 28729,
            "stateMutability": "pure",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "id": 28690,
            "nodeType": "FunctionDefinition",
            "src": "467:493:29",
            "body": {
              "id": 28689,
              "nodeType": "Block",
              "src": "577:383:29",
              "statements": [
                {
                  "assignments": [
                    28671
                  ],
                  "declarations": [
                    {
                      "constant": false,
                      "id": 28671,
                      "mutability": "mutable",
                      "name": "_slen",
                      "nodeType": "VariableDeclaration",
                      "scope": 28689,
                      "src": "587:11:29",
                      "stateVariable": false,
                      "storageLocation": "default",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint8",
                        "typeString": "uint8"
                      },
                      "typeName": {
                        "id": 28670,
                        "name": "uint8",
                        "nodeType": "ElementaryTypeName",
                        "src": "587:5:29",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint8",
                          "typeString": "uint8"
                        }
                      },
                      "visibility": "internal"
                    }
                  ],
                  "id": 28673,
                  "initialValue": {
                    "hexValue": "30",
                    "id": 28672,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": true,
                    "kind": "number",
                    "lValueRequested": false,
                    "nodeType": "Literal",
                    "src": "601:1:29",
                    "typeDescriptions": {
                      "typeIdentifier": "t_rational_0_by_1",
                      "typeString": "int_const 0"
                    },
                    "value": "0"
                  },
                  "nodeType": "VariableDeclarationStatement",
                  "src": "587:15:29"
                },
                {
                  "body": {
                    "id": 28686,
                    "nodeType": "Block",
                    "src": "651:32:29",
                    "statements": [
                      {
                        "expression": {
                          "id": 28684,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "nodeType": "UnaryOperation",
                          "operator": "++",
                          "prefix": false,
                          "src": "665:7:29",
                          "subExpression": {
                            "id": 28683,
                            "name": "_slen",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 28671,
                            "src": "665:5:29",
                            "typeDescriptions": {
                              "typeIdentifier": "t_uint8",
                              "typeString": "uint8"
                            }
                          },
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint8",
                            "typeString": "uint8"
                          }
                        },
                        "id": 28685,
                        "nodeType": "ExpressionStatement",
                        "src": "665:7:29"
                      }
                    ]
                  },
                  "condition": {
                    "commonType": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    },
                    "id": 28682,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftExpression": {
                      "commonType": {
                        "typeIdentifier": "t_uint8",
                        "typeString": "uint8"
                      },
                      "id": 28676,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "leftExpression": {
                        "id": 28674,
                        "name": "_slen",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 28671,
                        "src": "619:5:29",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint8",
                          "typeString": "uint8"
                        }
                      },
                      "nodeType": "BinaryOperation",
                      "operator": "<",
                      "rightExpression": {
                        "hexValue": "3332",
                        "id": 28675,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "number",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "627:2:29",
                        "typeDescriptions": {
                          "typeIdentifier": "t_rational_32_by_1",
                          "typeString": "int_const 32"
                        },
                        "value": "32"
                      },
                      "src": "619:10:29",
                      "typeDescriptions": {
                        "typeIdentifier": "t_bool",
                        "typeString": "bool"
                      }
                    },
                    "nodeType": "BinaryOperation",
                    "operator": "&&",
                    "rightExpression": {
                      "commonType": {
                        "typeIdentifier": "t_bytes1",
                        "typeString": "bytes1"
                      },
                      "id": 28681,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "leftExpression": {
                        "baseExpression": {
                          "id": 28677,
                          "name": "_buf",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 28665,
                          "src": "633:4:29",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bytes32",
                            "typeString": "bytes32"
                          }
                        },
                        "id": 28679,
                        "indexExpression": {
                          "id": 28678,
                          "name": "_slen",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 28671,
                          "src": "638:5:29",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint8",
                            "typeString": "uint8"
                          }
                        },
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "nodeType": "IndexAccess",
                        "src": "633:11:29",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes1",
                          "typeString": "bytes1"
                        }
                      },
                      "nodeType": "BinaryOperation",
                      "operator": "!=",
                      "rightExpression": {
                        "hexValue": "30",
                        "id": 28680,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "number",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "648:1:29",
                        "typeDescriptions": {
                          "typeIdentifier": "t_rational_0_by_1",
                          "typeString": "int_const 0"
                        },
                        "value": "0"
                      },
                      "src": "633:16:29",
                      "typeDescriptions": {
                        "typeIdentifier": "t_bool",
                        "typeString": "bool"
                      }
                    },
                    "src": "619:30:29",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "id": 28687,
                  "nodeType": "WhileStatement",
                  "src": "612:71:29"
                },
                {
                  "AST": {
                    "nodeType": "YulBlock",
                    "src": "758:196:29",
                    "statements": [
                      {
                        "nodeType": "YulAssignment",
                        "src": "772:22:29",
                        "value": {
                          "arguments": [
                            {
                              "kind": "number",
                              "nodeType": "YulLiteral",
                              "src": "789:4:29",
                              "type": "",
                              "value": "0x40"
                            }
                          ],
                          "functionName": {
                            "name": "mload",
                            "nodeType": "YulIdentifier",
                            "src": "783:5:29"
                          },
                          "nodeType": "YulFunctionCall",
                          "src": "783:11:29"
                        },
                        "variableNames": [
                          {
                            "name": "_newStr",
                            "nodeType": "YulIdentifier",
                            "src": "772:7:29"
                          }
                        ]
                      },
                      {
                        "expression": {
                          "arguments": [
                            {
                              "kind": "number",
                              "nodeType": "YulLiteral",
                              "src": "814:4:29",
                              "type": "",
                              "value": "0x40"
                            },
                            {
                              "arguments": [
                                {
                                  "name": "_newStr",
                                  "nodeType": "YulIdentifier",
                                  "src": "824:7:29"
                                },
                                {
                                  "kind": "number",
                                  "nodeType": "YulLiteral",
                                  "src": "833:4:29",
                                  "type": "",
                                  "value": "0x40"
                                }
                              ],
                              "functionName": {
                                "name": "add",
                                "nodeType": "YulIdentifier",
                                "src": "820:3:29"
                              },
                              "nodeType": "YulFunctionCall",
                              "src": "820:18:29"
                            }
                          ],
                          "functionName": {
                            "name": "mstore",
                            "nodeType": "YulIdentifier",
                            "src": "807:6:29"
                          },
                          "nodeType": "YulFunctionCall",
                          "src": "807:32:29"
                        },
                        "nodeType": "YulExpressionStatement",
                        "src": "807:32:29"
                      },
                      {
                        "expression": {
                          "arguments": [
                            {
                              "name": "_newStr",
                              "nodeType": "YulIdentifier",
                              "src": "884:7:29"
                            },
                            {
                              "name": "_slen",
                              "nodeType": "YulIdentifier",
                              "src": "893:5:29"
                            }
                          ],
                          "functionName": {
                            "name": "mstore",
                            "nodeType": "YulIdentifier",
                            "src": "877:6:29"
                          },
                          "nodeType": "YulFunctionCall",
                          "src": "877:22:29"
                        },
                        "nodeType": "YulExpressionStatement",
                        "src": "877:22:29"
                      },
                      {
                        "expression": {
                          "arguments": [
                            {
                              "arguments": [
                                {
                                  "name": "_newStr",
                                  "nodeType": "YulIdentifier",
                                  "src": "923:7:29"
                                },
                                {
                                  "kind": "number",
                                  "nodeType": "YulLiteral",
                                  "src": "932:4:29",
                                  "type": "",
                                  "value": "0x20"
                                }
                              ],
                              "functionName": {
                                "name": "add",
                                "nodeType": "YulIdentifier",
                                "src": "919:3:29"
                              },
                              "nodeType": "YulFunctionCall",
                              "src": "919:18:29"
                            },
                            {
                              "name": "_buf",
                              "nodeType": "YulIdentifier",
                              "src": "939:4:29"
                            }
                          ],
                          "functionName": {
                            "name": "mstore",
                            "nodeType": "YulIdentifier",
                            "src": "912:6:29"
                          },
                          "nodeType": "YulFunctionCall",
                          "src": "912:32:29"
                        },
                        "nodeType": "YulExpressionStatement",
                        "src": "912:32:29"
                      }
                    ]
                  },
                  "evmVersion": "istanbul",
                  "externalReferences": [
                    {
                      "declaration": 28665,
                      "isOffset": false,
                      "isSlot": false,
                      "src": "939:4:29",
                      "valueSize": 1
                    },
                    {
                      "declaration": 28668,
                      "isOffset": false,
                      "isSlot": false,
                      "src": "772:7:29",
                      "valueSize": 1
                    },
                    {
                      "declaration": 28668,
                      "isOffset": false,
                      "isSlot": false,
                      "src": "824:7:29",
                      "valueSize": 1
                    },
                    {
                      "declaration": 28668,
                      "isOffset": false,
                      "isSlot": false,
                      "src": "884:7:29",
                      "valueSize": 1
                    },
                    {
                      "declaration": 28668,
                      "isOffset": false,
                      "isSlot": false,
                      "src": "923:7:29",
                      "valueSize": 1
                    },
                    {
                      "declaration": 28671,
                      "isOffset": false,
                      "isSlot": false,
                      "src": "893:5:29",
                      "valueSize": 1
                    }
                  ],
                  "id": 28688,
                  "nodeType": "InlineAssembly",
                  "src": "749:205:29"
                }
              ]
            },
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "coerceString",
            "parameters": {
              "id": 28666,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 28665,
                  "mutability": "mutable",
                  "name": "_buf",
                  "nodeType": "VariableDeclaration",
                  "scope": 28690,
                  "src": "489:12:29",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 28664,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "489:7:29",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "488:14:29"
            },
            "returnParameters": {
              "id": 28669,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 28668,
                  "mutability": "mutable",
                  "name": "_newStr",
                  "nodeType": "VariableDeclaration",
                  "scope": 28690,
                  "src": "550:21:29",
                  "stateVariable": false,
                  "storageLocation": "memory",
                  "typeDescriptions": {
                    "typeIdentifier": "t_string_memory_ptr",
                    "typeString": "string"
                  },
                  "typeName": {
                    "id": 28667,
                    "name": "string",
                    "nodeType": "ElementaryTypeName",
                    "src": "550:6:29",
                    "typeDescriptions": {
                      "typeIdentifier": "t_string_storage_ptr",
                      "typeString": "string"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "549:23:29"
            },
            "scope": 28729,
            "stateMutability": "pure",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "id": 28709,
            "nodeType": "FunctionDefinition",
            "src": "999:129:29",
            "body": {
              "id": 28708,
              "nodeType": "Block",
              "src": "1072:56:29",
              "statements": [
                {
                  "expression": {
                    "arguments": [
                      {
                        "arguments": [
                          {
                            "arguments": [
                              {
                                "id": 28703,
                                "name": "_addr",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 28692,
                                "src": "1113:5:29",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_address",
                                  "typeString": "address"
                                }
                              }
                            ],
                            "expression": {
                              "argumentTypes": [
                                {
                                  "typeIdentifier": "t_address",
                                  "typeString": "address"
                                }
                              ],
                              "id": 28702,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "lValueRequested": false,
                              "nodeType": "ElementaryTypeNameExpression",
                              "src": "1105:7:29",
                              "typeDescriptions": {
                                "typeIdentifier": "t_type$_t_uint160_$",
                                "typeString": "type(uint160)"
                              },
                              "typeName": {
                                "id": 28701,
                                "name": "uint160",
                                "nodeType": "ElementaryTypeName",
                                "src": "1105:7:29",
                                "typeDescriptions": {}
                              }
                            },
                            "id": 28704,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": false,
                            "kind": "typeConversion",
                            "lValueRequested": false,
                            "names": [],
                            "nodeType": "FunctionCall",
                            "src": "1105:14:29",
                            "tryCall": false,
                            "typeDescriptions": {
                              "typeIdentifier": "t_uint160",
                              "typeString": "uint160"
                            }
                          }
                        ],
                        "expression": {
                          "argumentTypes": [
                            {
                              "typeIdentifier": "t_uint160",
                              "typeString": "uint160"
                            }
                          ],
                          "id": 28700,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "lValueRequested": false,
                          "nodeType": "ElementaryTypeNameExpression",
                          "src": "1097:7:29",
                          "typeDescriptions": {
                            "typeIdentifier": "t_type$_t_uint256_$",
                            "typeString": "type(uint256)"
                          },
                          "typeName": {
                            "id": 28699,
                            "name": "uint256",
                            "nodeType": "ElementaryTypeName",
                            "src": "1097:7:29",
                            "typeDescriptions": {}
                          }
                        },
                        "id": 28705,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "kind": "typeConversion",
                        "lValueRequested": false,
                        "names": [],
                        "nodeType": "FunctionCall",
                        "src": "1097:23:29",
                        "tryCall": false,
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      ],
                      "id": 28698,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": true,
                      "lValueRequested": false,
                      "nodeType": "ElementaryTypeNameExpression",
                      "src": "1089:7:29",
                      "typeDescriptions": {
                        "typeIdentifier": "t_type$_t_bytes32_$",
                        "typeString": "type(bytes32)"
                      },
                      "typeName": {
                        "id": 28697,
                        "name": "bytes32",
                        "nodeType": "ElementaryTypeName",
                        "src": "1089:7:29",
                        "typeDescriptions": {}
                      }
                    },
                    "id": 28706,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "typeConversion",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "1089:32:29",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "functionReturnParameters": 28696,
                  "id": 28707,
                  "nodeType": "Return",
                  "src": "1082:39:29"
                }
              ]
            },
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "addressToBytes32",
            "parameters": {
              "id": 28693,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 28692,
                  "mutability": "mutable",
                  "name": "_addr",
                  "nodeType": "VariableDeclaration",
                  "scope": 28709,
                  "src": "1025:13:29",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 28691,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "1025:7:29",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "1024:15:29"
            },
            "returnParameters": {
              "id": 28696,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 28695,
                  "mutability": "mutable",
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 28709,
                  "src": "1063:7:29",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 28694,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "1063:7:29",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "1062:9:29"
            },
            "scope": 28729,
            "stateMutability": "pure",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "id": 28728,
            "nodeType": "FunctionDefinition",
            "src": "1167:127:29",
            "body": {
              "id": 28727,
              "nodeType": "Block",
              "src": "1239:55:29",
              "statements": [
                {
                  "expression": {
                    "arguments": [
                      {
                        "arguments": [
                          {
                            "arguments": [
                              {
                                "id": 28722,
                                "name": "_buf",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 28711,
                                "src": "1280:4:29",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_bytes32",
                                  "typeString": "bytes32"
                                }
                              }
                            ],
                            "expression": {
                              "argumentTypes": [
                                {
                                  "typeIdentifier": "t_bytes32",
                                  "typeString": "bytes32"
                                }
                              ],
                              "id": 28721,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "lValueRequested": false,
                              "nodeType": "ElementaryTypeNameExpression",
                              "src": "1272:7:29",
                              "typeDescriptions": {
                                "typeIdentifier": "t_type$_t_uint256_$",
                                "typeString": "type(uint256)"
                              },
                              "typeName": {
                                "id": 28720,
                                "name": "uint256",
                                "nodeType": "ElementaryTypeName",
                                "src": "1272:7:29",
                                "typeDescriptions": {}
                              }
                            },
                            "id": 28723,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": false,
                            "kind": "typeConversion",
                            "lValueRequested": false,
                            "names": [],
                            "nodeType": "FunctionCall",
                            "src": "1272:13:29",
                            "tryCall": false,
                            "typeDescriptions": {
                              "typeIdentifier": "t_uint256",
                              "typeString": "uint256"
                            }
                          }
                        ],
                        "expression": {
                          "argumentTypes": [
                            {
                              "typeIdentifier": "t_uint256",
                              "typeString": "uint256"
                            }
                          ],
                          "id": 28719,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "lValueRequested": false,
                          "nodeType": "ElementaryTypeNameExpression",
                          "src": "1264:7:29",
                          "typeDescriptions": {
                            "typeIdentifier": "t_type$_t_uint160_$",
                            "typeString": "type(uint160)"
                          },
                          "typeName": {
                            "id": 28718,
                            "name": "uint160",
                            "nodeType": "ElementaryTypeName",
                            "src": "1264:7:29",
                            "typeDescriptions": {}
                          }
                        },
                        "id": 28724,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "kind": "typeConversion",
                        "lValueRequested": false,
                        "names": [],
                        "nodeType": "FunctionCall",
                        "src": "1264:22:29",
                        "tryCall": false,
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint160",
                          "typeString": "uint160"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_uint160",
                          "typeString": "uint160"
                        }
                      ],
                      "id": 28717,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": true,
                      "lValueRequested": false,
                      "nodeType": "ElementaryTypeNameExpression",
                      "src": "1256:7:29",
                      "typeDescriptions": {
                        "typeIdentifier": "t_type$_t_address_$",
                        "typeString": "type(address)"
                      },
                      "typeName": {
                        "id": 28716,
                        "name": "address",
                        "nodeType": "ElementaryTypeName",
                        "src": "1256:7:29",
                        "typeDescriptions": {}
                      }
                    },
                    "id": 28725,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "typeConversion",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "1256:31:29",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_address_payable",
                      "typeString": "address payable"
                    }
                  },
                  "functionReturnParameters": 28715,
                  "id": 28726,
                  "nodeType": "Return",
                  "src": "1249:38:29"
                }
              ]
            },
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "bytes32ToAddress",
            "parameters": {
              "id": 28712,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 28711,
                  "mutability": "mutable",
                  "name": "_buf",
                  "nodeType": "VariableDeclaration",
                  "scope": 28728,
                  "src": "1193:12:29",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 28710,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "1193:7:29",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "1192:14:29"
            },
            "returnParameters": {
              "id": 28715,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 28714,
                  "mutability": "mutable",
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 28728,
                  "src": "1230:7:29",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 28713,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "1230:7:29",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "1229:9:29"
            },
            "scope": 28729,
            "stateMutability": "pure",
            "virtual": false,
            "visibility": "internal"
          }
        ],
        "abstract": false,
        "baseContracts": [],
        "contractDependencies": [],
        "contractKind": "library",
        "fullyImplemented": true,
        "linearizedBaseContracts": [
          28729
        ],
        "name": "TypeCasts",
        "scope": 28730
      }
    ],
    "license": "MIT OR Apache-2.0"
  },
  "id": 29
}