hotstuff-python-sdk 0.0.1b4__py3-none-any.whl → 0.0.1b5__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
hotstuff/__init__.py CHANGED
@@ -3,7 +3,7 @@
3
3
  A Python SDK for interacting with Hotstuff L1.
4
4
  """
5
5
 
6
- __version__ = "0.0.1-beta.4"
6
+ __version__ = "0.0.1-beta.5"
7
7
 
8
8
  # Transports
9
9
  from hotstuff.transports import HttpTransport, WebSocketTransport
@@ -114,9 +114,13 @@ class SpotInstrument(BaseModel):
114
114
 
115
115
 
116
116
  class InstrumentsResponse(BaseModel):
117
- """Instruments response."""
118
- perps: List[PerpInstrument]
119
- spot: List[SpotInstrument]
117
+ """Instruments response.
118
+
119
+ Testnet may return only perps (no spot key); both lists default to empty
120
+ when the key is missing so validation succeeds on testnet and mainnet.
121
+ """
122
+ perps: List[PerpInstrument] = Field(default_factory=list, description="Perpetual instruments")
123
+ spot: List[SpotInstrument] = Field(default_factory=list, description="Spot instruments (may be omitted on testnet)")
120
124
 
121
125
 
122
126
  # Ticker Method
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: hotstuff-python-sdk
3
- Version: 0.0.1b4
3
+ Version: 0.0.1b5
4
4
  Summary: Python SDK for interacting with Hotstuff L1
5
5
  License: MIT
6
6
  Keywords: hotstuff,trading,blockchain,defi,exchange
@@ -1,4 +1,4 @@
1
- hotstuff/__init__.py,sha256=o-yKywLNcYH8qohQLy0Ib0tatVPx4pmtXizdLnUHZzA,2810
1
+ hotstuff/__init__.py,sha256=BnEf04tlaT4FE2ed5KxeL_d4_5P_UfXZLauUt6H2l0Y,2810
2
2
  hotstuff/apis/__init__.py,sha256=ijV2ioe7JM2uQTnS3uEzeQCq-4VWkCxAkTmw9Ih9slg,253
3
3
  hotstuff/apis/exchange.py,sha256=kjGTsT-Avre6L_XKgtn5LXTQSQwaaSXPk9DbmteFIvI,15700
4
4
  hotstuff/apis/info.py,sha256=m6HYolbNKjgi9RArPbHkQPinS1ZvjO78g4nxZg509NA,13441
@@ -15,7 +15,7 @@ hotstuff/methods/info/__init__.py,sha256=Sa4LfkDAefadl9XiIRM4LRslxAywFmASOddzXZx
15
15
  hotstuff/methods/info/account.py,sha256=ZA3Uk3Ojz3ze6A4rApD8wLjAJfJVYR5DQaq7t7XTOns,12795
16
16
  hotstuff/methods/info/explorer.py,sha256=gAOcdDSvV3p4LoqE8eApvi6VLa0pEd2rb1QlObpj3XM,1685
17
17
  hotstuff/methods/info/global.py,sha256=GXFjPHkZzlj10s_I-d0CFAeOcsQ7UF_CE064zql27eY,1370
18
- hotstuff/methods/info/market.py,sha256=GAjHeDd8UuuKHLalFxJ3ZuYhX08nqS0bwpzApa8WLFE,7063
18
+ hotstuff/methods/info/market.py,sha256=_84HwpTd3kuQMdSuF808CRw4WxMiTLH4HHKdIaMMg1I,7382
19
19
  hotstuff/methods/info/vault.py,sha256=x7aCMz8ETPxmU4CH0GJJXZ-x3XJmvxhbjJ69L_lNHIM,2356
20
20
  hotstuff/methods/subscription/__init__.py,sha256=keqk-_KG9KrX5OOhYGXj6UUkVrE5xKRXNGxOX7Kos98,191
21
21
  hotstuff/methods/subscription/channels.py,sha256=ZywTGMx7vuRwNAcjeJTzjBvyLXUYJMjqR5ovJ0s8fzE,5443
@@ -32,7 +32,7 @@ hotstuff/utils/address.py,sha256=vUVT4MAR5QM5zJquliYHEbSJXcrQ7XwBkSeNuvq2FE8,996
32
32
  hotstuff/utils/endpoints.py,sha256=l_YZzN0FgfDWVIVDz3Cocx8Mpnait-UbZ9fyfqtI0RI,422
33
33
  hotstuff/utils/nonce.py,sha256=higBLzP0PwI7De9WUEuA7tOTbMcyc-RHc-4C04pRmNg,581
34
34
  hotstuff/utils/signing.py,sha256=njT6R1iSj-x716WICA2nFDYMsFIbzfIjQZ1kV5fxPoQ,3511
35
- hotstuff_python_sdk-0.0.1b4.dist-info/LICENSE,sha256=v18SoYCD8lebxaYQWXtlqlwDLs6i_RAqXCHW4VGq6xg,1070
36
- hotstuff_python_sdk-0.0.1b4.dist-info/METADATA,sha256=MMAHLLUn8XMVHWr6aiS8ZSh0KhHrUT_p28FFvfWZnPQ,36346
37
- hotstuff_python_sdk-0.0.1b4.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
38
- hotstuff_python_sdk-0.0.1b4.dist-info/RECORD,,
35
+ hotstuff_python_sdk-0.0.1b5.dist-info/LICENSE,sha256=v18SoYCD8lebxaYQWXtlqlwDLs6i_RAqXCHW4VGq6xg,1070
36
+ hotstuff_python_sdk-0.0.1b5.dist-info/METADATA,sha256=6sLgpq0s5nyBYfdDpHm7vuDYelm6bAF5ZLc9u2hDlGg,36346
37
+ hotstuff_python_sdk-0.0.1b5.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
38
+ hotstuff_python_sdk-0.0.1b5.dist-info/RECORD,,