Skip to main content

cybertensor

Project description

CYBERTENSOR

GitHub Python

Step-by-step guide

Yuma Consensus

Deployed contract

Game of Tensors subnet ideas:

  1. Subnet for ambassadors
  2. Subnet for knowledge domains
  3. Subnet for network infrastructure operators
  4. Subnet for relayers infrastructure operators
  5. Your idea here

When? Soon

Install

  1. From source:
git clone https://github.com/cybercongress/cybertensor.git
python3 -m pip install -e cybertensor/
  1. To test your installation, type:
ctcli --help

or using python

import cybertensor

Space Pussy setup

  1. Clone:
git clone https://github.com/cybercongress/cybertensor.git
cd cybertensor
  1. [Optional] Create and activate a virtual environment:
python3 -m venv venv
. venv/bin/activate
  1. Install from the source
python3 -m pip install -e .
  1. To test your installation, type:
ctcli --help

or using python

import cybertensor

Dev setup

  1. Use localbostrom:
git clone https://github.com/cybercongress/localbostrom
cd localbostrom
./hard_restart.sh
  1. Add mnemonics from localbostrom's README to local keystore:
cyber keys add validator --recover --home ./home
  1. Deploy code and instantiate contract:
cyber tx wasm store cybernet.wasm --from validator --home ./home --chain-id localbostrom --gas 8000000 --broadcast-mode block -y --keyring-backend test
cyber tx wasm instantiate 1 "{}" --from validator --home ./home --chain-id localbostrom --gas 5000000 --label cybernet1 --admin bostrom1phaxpevm5wecex2jyaqty2a4v02qj7qm5n94ug --broadcast-mode block -y --keyring-backend test
  1. Send tokens to contract and activate (with dmn):
cyber tx bank send validator bostrom14hj2tavq8fpesdwxxcu44rty3hh90vhujrvcmstl4zr3txmfvw9sww4mxt 1000000000000boot --home ./home --chain-id localbostrom --gas 500000 --broadcast-mode block -y --keyring-backend test
cyber tx wasm execute bostrom14hj2tavq8fpesdwxxcu44rty3hh90vhujrvcmstl4zr3txmfvw9sww4mxt '{"activate":{}}' --from validator --home ./home --chain-id localbostrom --gas 5000000 --broadcast-mode block -y --keyring-backend test
  1. Add mnemonics from localbostrom's README to ctcli keystore:
ctcli w regen_hotkey
ctcli w regen_coldkey
  1. Add contract and schemas to .cybertensor/contract dir:
tree ~/.cybertensor/contract 
/Users/cyberhead/.cybertensor/contract
├── cybernet.wasm
└── schema
    ├── execute.json
    ├── instantiate.json
    ├── query.json
    └── schema.json
  1. Register network:
ctcli s create

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cybertensor-0.1.4.tar.gz (150.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cybertensor-0.1.4-py3-none-any.whl (202.9 kB view details)

Uploaded Python 3

File details

Details for the file cybertensor-0.1.4.tar.gz.

File metadata

  • Download URL: cybertensor-0.1.4.tar.gz
  • Upload date:
  • Size: 150.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.18

File hashes

Hashes for cybertensor-0.1.4.tar.gz
Algorithm Hash digest
SHA256 4431a423389759e7d2d97a02352f4214a971d286ccce259cfa0db5ec352d60ed
MD5 d42d2ad0947392d81a4b87bc78b1756b
BLAKE2b-256 809b82d127a633be75a12d5e9da1a56246974621454f4840cfe35960c362e496

See more details on using hashes here.

File details

Details for the file cybertensor-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: cybertensor-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 202.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.18

File hashes

Hashes for cybertensor-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 2aa910eed0f95f218623cc4885e2d28f743d539c04a30fa1b794215b40dd50d3
MD5 0b09aed93173a4953153554ffd6c00ca
BLAKE2b-256 477b7e904f984cbb4227c51207a59100ba84e530f049b9fa83e4ec8bc6bc3da0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page