Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use bt decode in runtime call #188

Open
wants to merge 31 commits into
base: staging
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 10 commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
d797295
use bt decode in runtime call
camfairchild Oct 15, 2024
f084774
add util and use decode_scale
camfairchild Oct 15, 2024
8acd33f
use dynamic runtime api info
camfairchild Oct 21, 2024
60cf8da
remove hard-coded type registry
camfairchild Oct 21, 2024
b5ba219
fix loading from rust type reg
camfairchild Oct 22, 2024
912a361
add new runtime call and query without decode
camfairchild Oct 22, 2024
8211f6d
fix impl for grab neurons multip
camfairchild Oct 22, 2024
de78d16
fix s list
camfairchild Oct 22, 2024
15eb5f2
typeidtoname is a staticmethod
camfairchild Oct 22, 2024
78a486b
put metadata_v15 attr in init
camfairchild Oct 22, 2024
44e019a
wip
camfairchild Oct 22, 2024
34c88ca
add catch for None result
camfairchild Nov 6, 2024
a9753df
bump bt deocde req
camfairchild Nov 13, 2024
0a7b613
add encode/decoded account id to utils
camfairchild Nov 13, 2024
82f846d
move decode account id to utils
camfairchild Nov 13, 2024
b5c4639
use btdecode encode and add encode as scale
camfairchild Nov 13, 2024
f88f84c
use encode as scale in runtime calls
camfairchild Nov 13, 2024
3f848df
Merge branch 'staging' into feat/use-bt-decode-in-runtime-call
camfairchild Nov 13, 2024
39ae665
Merge remote-tracking branch 'origin/staging' into feat/use-bt-decode…
thewhaleking Nov 22, 2024
bc2fb45
Merge branch 'staging' into feat/use-bt-decode-in-runtime-call
thewhaleking Dec 5, 2024
49ad893
Added note.
thewhaleking Dec 5, 2024
30ffb48
Merge branch 'staging' into feat/use-bt-decode-in-runtime-call
thewhaleking Dec 18, 2024
6d9e016
Fixed .value, ruff
thewhaleking Dec 18, 2024
4de9392
Fix catch for literal_eval
thewhaleking Dec 18, 2024
f41d839
change error colouring wrapping
camfairchild Dec 18, 2024
52a8951
extract value object where needed
camfairchild Dec 18, 2024
b3acffb
simplify get payment info
camfairchild Dec 18, 2024
7f0b991
dont try to encode scaletypes with encoded data
camfairchild Dec 18, 2024
9c0c268
Rename `'partialFee'` to `'partial_fee'`
thewhaleking Dec 18, 2024
e8341f2
Fixes type hint
thewhaleking Dec 19, 2024
b5ecad6
ruff
thewhaleking Dec 19, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
162 changes: 0 additions & 162 deletions bittensor_cli/src/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,168 +137,6 @@ class WalletValidationTypes(Enum):
"types": {
"Balance": "u64", # Need to override default u128
},
"runtime_api": {
"DelegateInfoRuntimeApi": {
"methods": {
"get_delegated": {
"params": [
{
"name": "coldkey",
"type": "Vec<u8>",
},
],
"type": "Vec<u8>",
},
"get_delegates": {
"params": [],
"type": "Vec<u8>",
},
}
},
"NeuronInfoRuntimeApi": {
"methods": {
"get_neuron_lite": {
"params": [
{
"name": "netuid",
"type": "u16",
},
{
"name": "uid",
"type": "u16",
},
],
"type": "Vec<u8>",
},
"get_neurons_lite": {
"params": [
{
"name": "netuid",
"type": "u16",
},
],
"type": "Vec<u8>",
},
"get_neuron": {
"params": [
{
"name": "netuid",
"type": "u16",
},
{
"name": "uid",
"type": "u16",
},
],
"type": "Vec<u8>",
},
"get_neurons": {
"params": [
{
"name": "netuid",
"type": "u16",
},
],
"type": "Vec<u8>",
},
}
},
"StakeInfoRuntimeApi": {
"methods": {
"get_stake_info_for_coldkey": {
"params": [
{
"name": "coldkey_account_vec",
"type": "Vec<u8>",
},
],
"type": "Vec<u8>",
},
"get_stake_info_for_coldkeys": {
"params": [
{
"name": "coldkey_account_vecs",
"type": "Vec<Vec<u8>>",
},
],
"type": "Vec<u8>",
},
},
},
"ValidatorIPRuntimeApi": {
"methods": {
"get_associated_validator_ip_info_for_subnet": {
"params": [
{
"name": "netuid",
"type": "u16",
},
],
"type": "Vec<u8>",
},
},
},
"SubnetInfoRuntimeApi": {
"methods": {
"get_subnet_hyperparams": {
"params": [
{
"name": "netuid",
"type": "u16",
},
],
"type": "Vec<u8>",
},
"get_subnet_info": {
"params": [
{
"name": "netuid",
"type": "u16",
},
],
"type": "Vec<u8>",
},
"get_subnets_info": {
"params": [],
"type": "Vec<u8>",
},
}
},
"SubnetRegistrationRuntimeApi": {
"methods": {"get_network_registration_cost": {"params": [], "type": "u64"}}
},
"ColdkeySwapRuntimeApi": {
"methods": {
"get_scheduled_coldkey_swap": {
"params": [
{
"name": "coldkey_account_vec",
"type": "Vec<u8>",
},
],
"type": "Vec<u8>",
},
"get_remaining_arbitration_period": {
"params": [
{
"name": "coldkey_account_vec",
"type": "Vec<u8>",
},
],
"type": "Vec<u8>",
},
"get_coldkey_swap_destinations": {
"params": [
{
"name": "coldkey_account_vec",
"type": "Vec<u8>",
},
],
"type": "Vec<u8>",
},
}
},
},
}

NETWORK_EXPLORER_MAP = {
Expand Down
Loading
Loading