-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: expand README with comprehensive subnet architecture and requir…
…ements - Add detailed introduction section explaining subnet purpose - Document subnet architecture including miner and validator operations - Define performance metrics and reward distribution model - Add comprehensive getting started guide with requirements - Include agent development options and registration process - Document best practices for miners - Remove unused OS import from validator.py
- Loading branch information
1 parent
ac4fe35
commit a83a3af
Showing
7 changed files
with
232 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ | |
prompt.md | ||
currentwork.md | ||
userstories.md | ||
/btcli |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: agent-arena-subnet | ||
channels: | ||
- conda-forge | ||
- defaults | ||
dependencies: | ||
- python=3.11 | ||
- numpy | ||
- pandas | ||
- fastapi | ||
- uvicorn | ||
- pydantic | ||
- python-dotenv | ||
- requests | ||
- cryptography | ||
- pytest | ||
- pip | ||
- pip: | ||
- uvicorn==0.30.5 | ||
- fastapi==0.112.0 | ||
- pydantic==2.9.2 | ||
- numpy==2.1.3 | ||
- pandas==2.2.3 | ||
- fiber @ git+https://github.com/rayonlabs/fiber.git@199d6432b748c2a93c3ee0c34db72418b19c6d7f | ||
- py-bip39-bindings==0.1.12 | ||
- py-ed25519-zebra-bindings==1.1.0 | ||
- py-sr25519-bindings==0.2.1 | ||
- substrate-interface==1.7.10 | ||
- scalecodec==1.2.11 | ||
- tweepy==4.14.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
from datetime import datetime | ||
|
||
import bittensor | ||
|
||
# Hardcode or set the environment variable WALLET_PASS to the password for the wallet | ||
# environ["WALLET_PASS"] = "" | ||
|
||
|
||
def main(args): | ||
wallet = bittensor.wallet(name=args.name) | ||
keypair = wallet.coldkey | ||
|
||
timestamp = datetime.now() | ||
timezone = timestamp.astimezone().tzname() | ||
|
||
# ensure compatiblity with polkadotjs messages, as polkadotjs always wraps message | ||
message = ( | ||
"<Bytes>" + f"On {timestamp} {timezone} {args.message}" + "</Bytes>" | ||
) | ||
signature = keypair.sign(data=message) | ||
|
||
file_contents = f"{message}\n\tSigned by: {keypair.ss58_address}\n\tSignature: {signature.hex()}" | ||
print(file_contents) | ||
open("message_and_signature.txt", "w").write(file_contents) | ||
|
||
print("Signature generated and saved to message_and_signature.txt") | ||
|
||
|
||
if __name__ == "__main__": | ||
import argparse | ||
|
||
parser = argparse.ArgumentParser(description="Generate a signature") | ||
parser.add_argument("--message", help="The message to sign", type=str) | ||
parser.add_argument("--name", help="The wallet name", type=str) | ||
args = parser.parse_args() | ||
|
||
main(args) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<Bytes>On 2024-11-23 10:23:39.417457 PST I am the owner of subnet 249 on testnet</Bytes> | ||
Signed by: 5Coa4pK6q1br1XdYUPwJHuvoi33NyVM9bGyeGREue7kTkbAL | ||
Signature: e24f8a3bde43366ef57224b09cab61338fa8c460463dbfa3f95bbd1d22cf3a27a36ac506572a0c51d26f1249ef625e245d4386e5f298fda6ffdf96e60433e18c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
import os | ||
import httpx | ||
from cryptography.fernet import Fernet | ||
from substrateinterface import Keypair | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
annotated-types==0.7.0 | ||
anyio==4.6.2.post1 | ||
base58==2.1.1 | ||
certifi==2024.8.30 | ||
cffi==1.17.1 | ||
charset-normalizer==3.4.0 | ||
click==8.1.7 | ||
colorama==0.4.6 | ||
cryptography==43.0.0 | ||
cytoolz==1.0.0 | ||
ecdsa==0.19.0 | ||
eth-hash==0.7.0 | ||
eth-keys==0.6.0 | ||
eth-typing==5.0.0 | ||
eth-utils==2.3.2 | ||
fastapi==0.112.0 | ||
fiber @ git+https://github.com/rayonlabs/fiber.git@199d6432b748c2a93c3ee0c34db72418b19c6d7f | ||
h11==0.14.0 | ||
httpcore==1.0.7 | ||
httpx==0.27.0 | ||
idna==3.10 | ||
iniconfig==2.0.0 | ||
more-itertools==10.5.0 | ||
netaddr==1.3.0 | ||
numpy==2.1.3 | ||
oauthlib==3.2.2 | ||
packaging==24.2 | ||
pandas==2.2.3 | ||
pluggy==1.5.0 | ||
py-bip39-bindings==0.1.12 | ||
py-ed25519-zebra-bindings==1.1.0 | ||
py-sr25519-bindings==0.2.1 | ||
pycparser==2.22 | ||
pycryptodome==3.21.0 | ||
pydantic==2.9.2 | ||
pydantic_core==2.23.4 | ||
PyNaCl==1.5.0 | ||
pytest==8.3.3 | ||
python-dateutil==2.9.0.post0 | ||
python-dotenv==1.0.1 | ||
pytz==2024.2 | ||
requests==2.32.3 | ||
requests-oauthlib==1.3.1 | ||
scalecodec==1.2.11 | ||
six==1.16.0 | ||
sniffio==1.3.1 | ||
starlette==0.37.2 | ||
substrate-interface==1.7.10 | ||
tenacity==9.0.0 | ||
toolz==1.0.0 | ||
tweepy==4.14.0 | ||
typing_extensions==4.12.2 | ||
tzdata==2024.2 | ||
urllib3==2.2.3 | ||
uvicorn==0.30.5 | ||
websocket-client==1.8.0 | ||
xxhash==3.5.0 |