Skip to content

Commit

Permalink
some typos and cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
elesiuta committed Sep 6, 2024
1 parent bcc1e1a commit b731e25
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ The proof of weights SDK is available on PyPI as `proof-of-weights` (https://pyp

```python
import proof_of_weights
proof_of_weights.submit_inputs(reward_function_inputs: list)
proof_of_weights.get_proof()
proofs = proof_of_weights.Proof_Of_Weights(wallet_name: str, wallet_hotkey: str, omron_validator_ss58: str, netuid: int, network: str = "finney")
proofs.submit_inputs(reward_function_inputs: list)
proofs.get_proof()
```
3 changes: 3 additions & 0 deletions proof_of_weights/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from .main import __version__, Proof_Of_Weights

__all__ = ["Proof_Of_Weights", "__version__"]
4 changes: 2 additions & 2 deletions proof_of_weights/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import bittensor
import requests

__VERSION__: typing.Final[str] = "0.0.1"
__version__: typing.Final[str] = "0.0.1"
OMRON_NETUID: typing.Final[int] = 2


Expand All @@ -17,7 +17,7 @@ def __init__(self, wallet_name: str, wallet_hotkey: str, omron_validator_ss58: s
self._wallet = bittensor.wallet(wallet_name, wallet_hotkey)
self._btnetwork = bittensor.subtensor(network=network)
self._omron_validator_ss58 = omron_validator_ss58
self._omron_validator_axon = self._bt_newtork.get_axon_info(netuid=OMRON_NETUID, hotkey_ss58=self.omron_validator_ss58)
self._omron_validator_axon = self._btnetwork.get_axon_info(netuid=OMRON_NETUID, hotkey_ss58=self.omron_validator_ss58)
self._omron_validator_ip = self._omron_validator_axon.ip
self._netuid = netuid
self._last_transaction_hash = ""
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

setuptools.setup(
name="Proof of Weights",
version=proof_of_weights.__VERSION__,
version=proof_of_weights.__version__,
python_requires=">3.6.*",
description="SDK for validators from various subnets to publish their reward function inputs to validators within the omron subnet.",
long_description=long_description,
Expand Down

0 comments on commit b731e25

Please sign in to comment.