2323from hathor .feature_activation .feature_service import FeatureService
2424from hathor .feature_activation .utils import Features
2525from hathor .manager import HathorManager
26+ from hathor .transaction .token_info import TokenVersion
2627from hathor .types import BlockId , TransactionId
2728from hathor .utils .pydantic import BaseModel , Hex
2829
@@ -31,6 +32,7 @@ class NativeTokenInfo(BaseModel):
3132 """Information about the native token."""
3233 name : str = Field (description = "Native token name" )
3334 symbol : str = Field (description = "Native token symbol" )
35+ version : int = Field (description = "Native token version" )
3436
3537
3638class VersionResponse (ResponseModel ):
@@ -72,7 +74,7 @@ class VersionResponse(ResponseModel):
7274 genesis_block_hash = BlockId (b'\x00 ' * 32 ),
7375 genesis_tx1_hash = TransactionId (b'\x00 ' * 31 + b'\x01 ' ),
7476 genesis_tx2_hash = TransactionId (b'\x00 ' * 31 + b'\x02 ' ),
75- native_token = NativeTokenInfo (name = 'Hathor' , symbol = 'HTR' ),
77+ native_token = NativeTokenInfo (name = 'Hathor' , symbol = 'HTR' , version = TokenVersion . NATIVE ),
7678 ),
7779 ),
7880}
@@ -135,5 +137,6 @@ def render_GET(self, request):
135137 native_token = NativeTokenInfo (
136138 name = self ._settings .NATIVE_TOKEN_NAME ,
137139 symbol = self ._settings .NATIVE_TOKEN_SYMBOL ,
140+ version = TokenVersion .NATIVE ,
138141 ),
139142 )
0 commit comments