From 23faabcb23b5fd0e6fb4a2974ad165b4860b78c3 Mon Sep 17 00:00:00 2001 From: C H Date: Fri, 5 Jan 2024 23:52:41 +0300 Subject: [PATCH] Updated schema --- schema/cybernet.json | 1154 ++++++++++++++--- schema/raw/execute.json | 114 +- schema/raw/query.json | 554 +++++++- .../response_to_get_all_subnet_netuids.json | 10 + schema/raw/response_to_get_axon_info.json | 69 + schema/raw/response_to_get_burn.json | 10 + schema/raw/response_to_get_delegate.json | 8 +- schema/raw/response_to_get_delegate_take.json | 10 + schema/raw/response_to_get_delegated.json | 8 +- schema/raw/response_to_get_delegates.json | 8 +- schema/raw/response_to_get_difficulty.json | 10 + ...ponse_to_get_emission_value_by_subnet.json | 7 + schema/raw/response_to_get_hotkey_exist.json | 5 + schema/raw/response_to_get_hotkey_owner.json | 8 + .../raw/response_to_get_max_weight_limit.json | 10 + .../response_to_get_min_allowed_weights.json | 10 + .../response_to_get_netuids_for_hotkey.json | 13 + .../raw/response_to_get_networks_added.json | 10 + .../raw/response_to_get_prometheus_info.json | 51 + schema/raw/response_to_get_stake.json | 20 + ...e_to_get_stake_for_coldkey_and_hotkey.json | 10 + schema/raw/response_to_get_state.json | 27 - schema/raw/response_to_get_subnet_exist.json | 5 + schema/raw/response_to_get_subnet_info.json | 24 +- schema/raw/response_to_get_subnet_owner.json | 8 + schema/raw/response_to_get_subnets_info.json | 24 +- schema/raw/response_to_get_tempo.json | 10 + .../raw/response_to_get_total_issuance.json | 7 + .../raw/response_to_get_total_networks.json | 7 + schema/raw/response_to_get_total_stake.json | 7 + ...sponse_to_get_total_stake_for_coldkey.json | 10 + ...esponse_to_get_total_stake_for_hotkey.json | 10 + schema/raw/response_to_get_tx_rate_limit.json | 7 + ...ponse_to_get_uid_for_hotkey_on_subnet.json | 10 + .../raw/response_to_get_weights_sparse.json | 25 + 35 files changed, 1978 insertions(+), 302 deletions(-) create mode 100644 schema/raw/response_to_get_all_subnet_netuids.json create mode 100644 schema/raw/response_to_get_axon_info.json create mode 100644 schema/raw/response_to_get_burn.json create mode 100644 schema/raw/response_to_get_delegate_take.json create mode 100644 schema/raw/response_to_get_difficulty.json create mode 100644 schema/raw/response_to_get_emission_value_by_subnet.json create mode 100644 schema/raw/response_to_get_hotkey_exist.json create mode 100644 schema/raw/response_to_get_hotkey_owner.json create mode 100644 schema/raw/response_to_get_max_weight_limit.json create mode 100644 schema/raw/response_to_get_min_allowed_weights.json create mode 100644 schema/raw/response_to_get_netuids_for_hotkey.json create mode 100644 schema/raw/response_to_get_networks_added.json create mode 100644 schema/raw/response_to_get_prometheus_info.json create mode 100644 schema/raw/response_to_get_stake.json create mode 100644 schema/raw/response_to_get_stake_for_coldkey_and_hotkey.json create mode 100644 schema/raw/response_to_get_subnet_exist.json create mode 100644 schema/raw/response_to_get_subnet_owner.json create mode 100644 schema/raw/response_to_get_tempo.json create mode 100644 schema/raw/response_to_get_total_issuance.json create mode 100644 schema/raw/response_to_get_total_networks.json create mode 100644 schema/raw/response_to_get_total_stake.json create mode 100644 schema/raw/response_to_get_total_stake_for_coldkey.json create mode 100644 schema/raw/response_to_get_total_stake_for_hotkey.json create mode 100644 schema/raw/response_to_get_tx_rate_limit.json create mode 100644 schema/raw/response_to_get_uid_for_hotkey_on_subnet.json create mode 100644 schema/raw/response_to_get_weights_sparse.json diff --git a/schema/cybernet.json b/schema/cybernet.json index 80fad0b..5351c5a 100644 --- a/schema/cybernet.json +++ b/schema/cybernet.json @@ -1,6 +1,6 @@ { "contract_name": "cybernet", - "contract_version": "0.1.0", + "contract_version": "0.2.0", "idl_version": "1.0.0", "instantiate": { "$schema": "http://json-schema.org/draft-07/schema#", @@ -12,6 +12,32 @@ "$schema": "http://json-schema.org/draft-07/schema#", "title": "ExecuteMsg", "oneOf": [ + { + "type": "object", + "required": [ + "activate" + ], + "properties": { + "activate": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "deactivate" + ], + "properties": { + "deactivate": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false + }, { "type": "object", "required": [ @@ -81,17 +107,11 @@ "become_delegate": { "type": "object", "required": [ - "hotkey", - "take" + "hotkey" ], "properties": { "hotkey": { "type": "string" - }, - "take": { - "type": "integer", - "format": "uint16", - "minimum": 0.0 } }, "additionalProperties": false @@ -108,15 +128,9 @@ "add_stake": { "type": "object", "required": [ - "amount_staked", "hotkey" ], "properties": { - "amount_staked": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 - }, "hotkey": { "type": "string" } @@ -135,11 +149,11 @@ "remove_stake": { "type": "object", "required": [ - "amount_unstaked", + "amount", "hotkey" ], "properties": { - "amount_unstaked": { + "amount": { "type": "integer", "format": "uint64", "minimum": 0.0 @@ -410,18 +424,11 @@ "sudo_register": { "type": "object", "required": [ - "balance", "coldkey", "hotkey", - "netuid", - "stake" + "netuid" ], "properties": { - "balance": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 - }, "coldkey": { "type": "string" }, @@ -432,11 +439,6 @@ "type": "integer", "format": "uint16", "minimum": 0.0 - }, - "stake": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 } }, "additionalProperties": false @@ -1012,35 +1014,6 @@ }, "additionalProperties": false }, - { - "type": "object", - "required": [ - "sudo_set_scaling_law_power" - ], - "properties": { - "sudo_set_scaling_law_power": { - "type": "object", - "required": [ - "netuid", - "scaling_law_power" - ], - "properties": { - "netuid": { - "type": "integer", - "format": "uint16", - "minimum": 0.0 - }, - "scaling_law_power": { - "type": "integer", - "format": "uint16", - "minimum": 0.0 - } - }, - "additionalProperties": false - } - }, - "additionalProperties": false - }, { "type": "object", "required": [ @@ -1458,6 +1431,33 @@ } }, "additionalProperties": false + }, + { + "type": "object", + "required": [ + "sudo_set_subnet_metadata" + ], + "properties": { + "sudo_set_subnet_metadata": { + "type": "object", + "required": [ + "netuid", + "particle" + ], + "properties": { + "netuid": { + "type": "integer", + "format": "uint16", + "minimum": 0.0 + }, + "particle": { + "type": "string" + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false } ] }, @@ -1487,10 +1487,10 @@ "get_delegate": { "type": "object", "required": [ - "delegate_account" + "delegate" ], "properties": { - "delegate_account": { + "delegate": { "type": "string" } }, @@ -1508,10 +1508,10 @@ "get_delegated": { "type": "object", "required": [ - "delegatee_account" + "delegatee" ], "properties": { - "delegatee_account": { + "delegatee": { "type": "string" } }, @@ -1692,10 +1692,10 @@ "get_stake_info_for_coldkey": { "type": "object", "required": [ - "coldkey_account" + "coldkey" ], "properties": { - "coldkey_account": { + "coldkey": { "type": "string" } }, @@ -1713,10 +1713,10 @@ "get_stake_info_for_coldkeys": { "type": "object", "required": [ - "coldkey_accounts" + "coldkeys" ], "properties": { - "coldkey_accounts": { + "coldkeys": { "type": "array", "items": { "type": "string" @@ -1731,11 +1731,40 @@ { "type": "object", "required": [ - "get_network_registration_cost" + "get_total_stake_for_hotkey" ], "properties": { - "get_network_registration_cost": { + "get_total_stake_for_hotkey": { + "type": "object", + "required": [ + "address" + ], + "properties": { + "address": { + "type": "string" + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "get_total_stake_for_coldkey" + ], + "properties": { + "get_total_stake_for_coldkey": { "type": "object", + "required": [ + "address" + ], + "properties": { + "address": { + "type": "string" + } + }, "additionalProperties": false } }, @@ -1744,15 +1773,65 @@ { "type": "object", "required": [ - "get_weights" + "get_stake_for_coldkey_and_hotkey" ], "properties": { - "get_weights": { + "get_stake_for_coldkey_and_hotkey": { + "type": "object", + "required": [ + "coldkey", + "hotkey" + ], + "properties": { + "coldkey": { + "type": "string" + }, + "hotkey": { + "type": "string" + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "get_hotkey_owner" + ], + "properties": { + "get_hotkey_owner": { + "type": "object", + "required": [ + "hotkey" + ], + "properties": { + "hotkey": { + "type": "string" + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "get_uid_for_hotkey_on_subnet" + ], + "properties": { + "get_uid_for_hotkey_on_subnet": { "type": "object", "required": [ + "hotkey", "netuid" ], "properties": { + "hotkey": { + "type": "string" + }, "netuid": { "type": "integer", "format": "uint16", @@ -1767,21 +1846,569 @@ { "type": "object", "required": [ - "get_state" + "get_netuids_for_hotkey" ], "properties": { - "get_state": { + "get_netuids_for_hotkey": { + "type": "object", + "required": [ + "hotkey" + ], + "properties": { + "hotkey": { + "type": "string" + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "get_hotkey_exist" + ], + "properties": { + "get_hotkey_exist": { + "type": "object", + "required": [ + "hotkey" + ], + "properties": { + "hotkey": { + "type": "string" + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "get_stake" + ], + "properties": { + "get_stake": { + "type": "object", + "required": [ + "hotkey" + ], + "properties": { + "hotkey": { + "type": "string" + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "get_delegate_take" + ], + "properties": { + "get_delegate_take": { + "type": "object", + "required": [ + "hotkey" + ], + "properties": { + "hotkey": { + "type": "string" + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "get_subnet_exist" + ], + "properties": { + "get_subnet_exist": { "type": "object", + "required": [ + "netuid" + ], + "properties": { + "netuid": { + "type": "integer", + "format": "uint16", + "minimum": 0.0 + } + }, "additionalProperties": false } - }, - "additionalProperties": false + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "get_subnet_owner" + ], + "properties": { + "get_subnet_owner": { + "type": "object", + "required": [ + "netuid" + ], + "properties": { + "netuid": { + "type": "integer", + "format": "uint16", + "minimum": 0.0 + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "get_max_weight_limit" + ], + "properties": { + "get_max_weight_limit": { + "type": "object", + "required": [ + "netuid" + ], + "properties": { + "netuid": { + "type": "integer", + "format": "uint16", + "minimum": 0.0 + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "get_min_allowed_weights" + ], + "properties": { + "get_min_allowed_weights": { + "type": "object", + "required": [ + "netuid" + ], + "properties": { + "netuid": { + "type": "integer", + "format": "uint16", + "minimum": 0.0 + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "get_burn" + ], + "properties": { + "get_burn": { + "type": "object", + "required": [ + "netuid" + ], + "properties": { + "netuid": { + "type": "integer", + "format": "uint16", + "minimum": 0.0 + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "get_difficulty" + ], + "properties": { + "get_difficulty": { + "type": "object", + "required": [ + "netuid" + ], + "properties": { + "netuid": { + "type": "integer", + "format": "uint16", + "minimum": 0.0 + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "get_tempo" + ], + "properties": { + "get_tempo": { + "type": "object", + "required": [ + "netuid" + ], + "properties": { + "netuid": { + "type": "integer", + "format": "uint16", + "minimum": 0.0 + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "get_emission_value_by_subnet" + ], + "properties": { + "get_emission_value_by_subnet": { + "type": "object", + "required": [ + "netuid" + ], + "properties": { + "netuid": { + "type": "integer", + "format": "uint16", + "minimum": 0.0 + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "get_network_registration_cost" + ], + "properties": { + "get_network_registration_cost": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "get_total_networks" + ], + "properties": { + "get_total_networks": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "get_networks_added" + ], + "properties": { + "get_networks_added": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "get_all_subnet_netuids" + ], + "properties": { + "get_all_subnet_netuids": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "get_total_issuance" + ], + "properties": { + "get_total_issuance": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "get_total_stake" + ], + "properties": { + "get_total_stake": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "get_tx_rate_limit" + ], + "properties": { + "get_tx_rate_limit": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "get_axon_info" + ], + "properties": { + "get_axon_info": { + "type": "object", + "required": [ + "hotkey", + "netuid" + ], + "properties": { + "hotkey": { + "type": "string" + }, + "netuid": { + "type": "integer", + "format": "uint16", + "minimum": 0.0 + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "get_prometheus_info" + ], + "properties": { + "get_prometheus_info": { + "type": "object", + "required": [ + "hotkey", + "netuid" + ], + "properties": { + "hotkey": { + "type": "string" + }, + "netuid": { + "type": "integer", + "format": "uint16", + "minimum": 0.0 + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "get_weights" + ], + "properties": { + "get_weights": { + "type": "object", + "required": [ + "netuid" + ], + "properties": { + "netuid": { + "type": "integer", + "format": "uint16", + "minimum": 0.0 + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "get_weights_sparse" + ], + "properties": { + "get_weights_sparse": { + "type": "object", + "required": [ + "netuid" + ], + "properties": { + "netuid": { + "type": "integer", + "format": "uint16", + "minimum": 0.0 + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "get_state" + ], + "properties": { + "get_state": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false + } + ] + }, + "migrate": null, + "sudo": null, + "responses": { + "get_all_subnet_netuids": { + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "Array_of_uint16", + "type": "array", + "items": { + "type": "integer", + "format": "uint16", + "minimum": 0.0 + } + }, + "get_axon_info": { + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "Nullable_AxonInfo", + "anyOf": [ + { + "$ref": "#/definitions/AxonInfo" + }, + { + "type": "null" + } + ], + "definitions": { + "AxonInfo": { + "type": "object", + "required": [ + "block", + "ip", + "ip_type", + "placeholder1", + "placeholder2", + "port", + "protocol", + "version" + ], + "properties": { + "block": { + "type": "integer", + "format": "uint64", + "minimum": 0.0 + }, + "ip": { + "type": "integer", + "format": "uint128", + "minimum": 0.0 + }, + "ip_type": { + "type": "integer", + "format": "uint8", + "minimum": 0.0 + }, + "placeholder1": { + "type": "integer", + "format": "uint8", + "minimum": 0.0 + }, + "placeholder2": { + "type": "integer", + "format": "uint8", + "minimum": 0.0 + }, + "port": { + "type": "integer", + "format": "uint16", + "minimum": 0.0 + }, + "protocol": { + "type": "integer", + "format": "uint8", + "minimum": 0.0 + }, + "version": { + "type": "integer", + "format": "uint32", + "minimum": 0.0 + } + } + } } - ] - }, - "migrate": null, - "sudo": null, - "responses": { + }, + "get_burn": { + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "Nullable_uint64", + "type": [ + "integer", + "null" + ], + "format": "uint64", + "minimum": 0.0 + }, "get_delegate": { "$schema": "http://json-schema.org/draft-07/schema#", "title": "Nullable_DelegateInfo", @@ -1801,9 +2428,9 @@ "DelegateInfo": { "type": "object", "required": [ - "delegate_ss58", + "delegate", "nominators", - "owner_ss58", + "owner", "registrations", "return_per_1000", "take", @@ -1811,7 +2438,7 @@ "validator_permits" ], "properties": { - "delegate_ss58": { + "delegate": { "$ref": "#/definitions/Addr" }, "nominators": { @@ -1832,7 +2459,7 @@ "minItems": 2 } }, - "owner_ss58": { + "owner": { "$ref": "#/definitions/Addr" }, "registrations": { @@ -1871,6 +2498,16 @@ } } }, + "get_delegate_take": { + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "Nullable_uint16", + "type": [ + "integer", + "null" + ], + "format": "uint16", + "minimum": 0.0 + }, "get_delegated": { "$schema": "http://json-schema.org/draft-07/schema#", "title": "Array_of_Tuple_of_DelegateInfo_and_uint64", @@ -1898,9 +2535,9 @@ "DelegateInfo": { "type": "object", "required": [ - "delegate_ss58", + "delegate", "nominators", - "owner_ss58", + "owner", "registrations", "return_per_1000", "take", @@ -1908,7 +2545,7 @@ "validator_permits" ], "properties": { - "delegate_ss58": { + "delegate": { "$ref": "#/definitions/Addr" }, "nominators": { @@ -1929,7 +2566,7 @@ "minItems": 2 } }, - "owner_ss58": { + "owner": { "$ref": "#/definitions/Addr" }, "registrations": { @@ -1983,9 +2620,9 @@ "DelegateInfo": { "type": "object", "required": [ - "delegate_ss58", + "delegate", "nominators", - "owner_ss58", + "owner", "registrations", "return_per_1000", "take", @@ -1993,7 +2630,7 @@ "validator_permits" ], "properties": { - "delegate_ss58": { + "delegate": { "$ref": "#/definitions/Addr" }, "nominators": { @@ -2014,7 +2651,7 @@ "minItems": 2 } }, - "owner_ss58": { + "owner": { "$ref": "#/definitions/Addr" }, "registrations": { @@ -2053,6 +2690,69 @@ } } }, + "get_difficulty": { + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "Nullable_uint64", + "type": [ + "integer", + "null" + ], + "format": "uint64", + "minimum": 0.0 + }, + "get_emission_value_by_subnet": { + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "uint64", + "type": "integer", + "format": "uint64", + "minimum": 0.0 + }, + "get_hotkey_exist": { + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "Boolean", + "type": "boolean" + }, + "get_hotkey_owner": { + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "Nullable_String", + "type": [ + "string", + "null" + ] + }, + "get_max_weight_limit": { + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "Nullable_uint16", + "type": [ + "integer", + "null" + ], + "format": "uint16", + "minimum": 0.0 + }, + "get_min_allowed_weights": { + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "Nullable_uint16", + "type": [ + "integer", + "null" + ], + "format": "uint16", + "minimum": 0.0 + }, + "get_netuids_for_hotkey": { + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "Nullable_Array_of_uint16", + "type": [ + "array", + "null" + ], + "items": { + "type": "integer", + "format": "uint16", + "minimum": 0.0 + } + }, "get_network_registration_cost": { "$schema": "http://json-schema.org/draft-07/schema#", "title": "uint64", @@ -2060,6 +2760,16 @@ "format": "uint64", "minimum": 0.0 }, + "get_networks_added": { + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "Array_of_uint16", + "type": "array", + "items": { + "type": "integer", + "format": "uint16", + "minimum": 0.0 + } + }, "get_neuron": { "$schema": "http://json-schema.org/draft-07/schema#", "title": "Nullable_NeuronInfo", @@ -3044,6 +3754,87 @@ } } }, + "get_prometheus_info": { + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "Nullable_PrometheusInfo", + "anyOf": [ + { + "$ref": "#/definitions/PrometheusInfo" + }, + { + "type": "null" + } + ], + "definitions": { + "PrometheusInfo": { + "type": "object", + "required": [ + "block", + "ip", + "ip_type", + "port", + "version" + ], + "properties": { + "block": { + "type": "integer", + "format": "uint64", + "minimum": 0.0 + }, + "ip": { + "type": "integer", + "format": "uint128", + "minimum": 0.0 + }, + "ip_type": { + "type": "integer", + "format": "uint8", + "minimum": 0.0 + }, + "port": { + "type": "integer", + "format": "uint16", + "minimum": 0.0 + }, + "version": { + "type": "integer", + "format": "uint32", + "minimum": 0.0 + } + } + } + } + }, + "get_stake": { + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "Array_of_Tuple_of_String_and_uint64", + "type": "array", + "items": { + "type": "array", + "items": [ + { + "type": "string" + }, + { + "type": "integer", + "format": "uint64", + "minimum": 0.0 + } + ], + "maxItems": 2, + "minItems": 2 + } + }, + "get_stake_for_coldkey_and_hotkey": { + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "Nullable_uint64", + "type": [ + "integer", + "null" + ], + "format": "uint64", + "minimum": 0.0 + }, "get_stake_info_for_coldkey": { "$schema": "http://json-schema.org/draft-07/schema#", "title": "StakeInfo", @@ -3160,7 +3951,6 @@ "network_last_lock_cost", "network_last_registered", "network_lock_reduction_interval", - "network_min_allowed_uids", "network_min_lock_cost", "network_modality", "network_rate_limit", @@ -3178,7 +3968,6 @@ "registrations_this_interval", "rho", "root", - "scaling_law_power", "serving_rate_limit", "staked_hotkey_coldkey", "subnet_limit", @@ -4091,11 +4880,6 @@ "format": "uint64", "minimum": 0.0 }, - "network_min_allowed_uids": { - "type": "integer", - "format": "uint16", - "minimum": 0.0 - }, "network_min_lock_cost": { "type": "integer", "format": "uint64", @@ -4399,26 +5183,6 @@ "root": { "$ref": "#/definitions/Addr" }, - "scaling_law_power": { - "type": "array", - "items": { - "type": "array", - "items": [ - { - "type": "integer", - "format": "uint16", - "minimum": 0.0 - }, - { - "type": "integer", - "format": "uint16", - "minimum": 0.0 - } - ], - "maxItems": 2, - "minItems": 2 - } - }, "serving_rate_limit": { "type": "array", "items": { @@ -4936,6 +5700,11 @@ } } }, + "get_subnet_exist": { + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "Boolean", + "type": "boolean" + }, "get_subnet_hyperparams": { "$schema": "http://json-schema.org/draft-07/schema#", "title": "SubnetHyperparams", @@ -5066,13 +5835,12 @@ "max_allowed_uids", "max_allowed_validators", "max_weights_limit", + "metadata", "min_allowed_weights", "netuid", - "network_connect", "network_modality", "owner", "rho", - "scaling_law_power", "subnetwork_n", "tempo" ], @@ -5122,6 +5890,9 @@ "format": "uint16", "minimum": 0.0 }, + "metadata": { + "type": "string" + }, "min_allowed_weights": { "type": "integer", "format": "uint16", @@ -5132,19 +5903,6 @@ "format": "uint16", "minimum": 0.0 }, - "network_connect": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "integer", - "format": "uint16", - "minimum": 0.0 - }, - "maxItems": 2, - "minItems": 2 - } - }, "network_modality": { "type": "integer", "format": "uint16", @@ -5158,11 +5916,6 @@ "format": "uint16", "minimum": 0.0 }, - "scaling_law_power": { - "type": "integer", - "format": "uint16", - "minimum": 0.0 - }, "subnetwork_n": { "type": "integer", "format": "uint16", @@ -5182,6 +5935,14 @@ } } }, + "get_subnet_owner": { + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "Nullable_String", + "type": [ + "string", + "null" + ] + }, "get_subnets_info": { "$schema": "http://json-schema.org/draft-07/schema#", "title": "Array_of_SubnetInfo", @@ -5206,13 +5967,12 @@ "max_allowed_uids", "max_allowed_validators", "max_weights_limit", + "metadata", "min_allowed_weights", "netuid", - "network_connect", "network_modality", "owner", "rho", - "scaling_law_power", "subnetwork_n", "tempo" ], @@ -5262,6 +6022,9 @@ "format": "uint16", "minimum": 0.0 }, + "metadata": { + "type": "string" + }, "min_allowed_weights": { "type": "integer", "format": "uint16", @@ -5272,19 +6035,6 @@ "format": "uint16", "minimum": 0.0 }, - "network_connect": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "integer", - "format": "uint16", - "minimum": 0.0 - }, - "maxItems": 2, - "minItems": 2 - } - }, "network_modality": { "type": "integer", "format": "uint16", @@ -5298,11 +6048,6 @@ "format": "uint16", "minimum": 0.0 }, - "scaling_law_power": { - "type": "integer", - "format": "uint16", - "minimum": 0.0 - }, "subnetwork_n": { "type": "integer", "format": "uint16", @@ -5318,6 +6063,74 @@ } } }, + "get_tempo": { + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "Nullable_uint16", + "type": [ + "integer", + "null" + ], + "format": "uint16", + "minimum": 0.0 + }, + "get_total_issuance": { + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "uint64", + "type": "integer", + "format": "uint64", + "minimum": 0.0 + }, + "get_total_networks": { + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "uint16", + "type": "integer", + "format": "uint16", + "minimum": 0.0 + }, + "get_total_stake": { + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "uint64", + "type": "integer", + "format": "uint64", + "minimum": 0.0 + }, + "get_total_stake_for_coldkey": { + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "Nullable_uint64", + "type": [ + "integer", + "null" + ], + "format": "uint64", + "minimum": 0.0 + }, + "get_total_stake_for_hotkey": { + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "Nullable_uint64", + "type": [ + "integer", + "null" + ], + "format": "uint64", + "minimum": 0.0 + }, + "get_tx_rate_limit": { + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "uint64", + "type": "integer", + "format": "uint64", + "minimum": 0.0 + }, + "get_uid_for_hotkey_on_subnet": { + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "Nullable_uint16", + "type": [ + "integer", + "null" + ], + "format": "uint16", + "minimum": 0.0 + }, "get_weights": { "$schema": "http://json-schema.org/draft-07/schema#", "title": "Array_of_Array_of_uint16", @@ -5330,6 +6143,31 @@ "minimum": 0.0 } } + }, + "get_weights_sparse": { + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "Array_of_Array_of_Tuple_of_uint16_and_uint16", + "type": "array", + "items": { + "type": "array", + "items": { + "type": "array", + "items": [ + { + "type": "integer", + "format": "uint16", + "minimum": 0.0 + }, + { + "type": "integer", + "format": "uint16", + "minimum": 0.0 + } + ], + "maxItems": 2, + "minItems": 2 + } + } } } } diff --git a/schema/raw/execute.json b/schema/raw/execute.json index e72ed0e..a9599e1 100644 --- a/schema/raw/execute.json +++ b/schema/raw/execute.json @@ -2,6 +2,32 @@ "$schema": "http://json-schema.org/draft-07/schema#", "title": "ExecuteMsg", "oneOf": [ + { + "type": "object", + "required": [ + "activate" + ], + "properties": { + "activate": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "deactivate" + ], + "properties": { + "deactivate": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false + }, { "type": "object", "required": [ @@ -71,17 +97,11 @@ "become_delegate": { "type": "object", "required": [ - "hotkey", - "take" + "hotkey" ], "properties": { "hotkey": { "type": "string" - }, - "take": { - "type": "integer", - "format": "uint16", - "minimum": 0.0 } }, "additionalProperties": false @@ -98,15 +118,9 @@ "add_stake": { "type": "object", "required": [ - "amount_staked", "hotkey" ], "properties": { - "amount_staked": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 - }, "hotkey": { "type": "string" } @@ -125,11 +139,11 @@ "remove_stake": { "type": "object", "required": [ - "amount_unstaked", + "amount", "hotkey" ], "properties": { - "amount_unstaked": { + "amount": { "type": "integer", "format": "uint64", "minimum": 0.0 @@ -400,18 +414,11 @@ "sudo_register": { "type": "object", "required": [ - "balance", "coldkey", "hotkey", - "netuid", - "stake" + "netuid" ], "properties": { - "balance": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 - }, "coldkey": { "type": "string" }, @@ -422,11 +429,6 @@ "type": "integer", "format": "uint16", "minimum": 0.0 - }, - "stake": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 } }, "additionalProperties": false @@ -1002,35 +1004,6 @@ }, "additionalProperties": false }, - { - "type": "object", - "required": [ - "sudo_set_scaling_law_power" - ], - "properties": { - "sudo_set_scaling_law_power": { - "type": "object", - "required": [ - "netuid", - "scaling_law_power" - ], - "properties": { - "netuid": { - "type": "integer", - "format": "uint16", - "minimum": 0.0 - }, - "scaling_law_power": { - "type": "integer", - "format": "uint16", - "minimum": 0.0 - } - }, - "additionalProperties": false - } - }, - "additionalProperties": false - }, { "type": "object", "required": [ @@ -1448,6 +1421,33 @@ } }, "additionalProperties": false + }, + { + "type": "object", + "required": [ + "sudo_set_subnet_metadata" + ], + "properties": { + "sudo_set_subnet_metadata": { + "type": "object", + "required": [ + "netuid", + "particle" + ], + "properties": { + "netuid": { + "type": "integer", + "format": "uint16", + "minimum": 0.0 + }, + "particle": { + "type": "string" + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false } ] } diff --git a/schema/raw/query.json b/schema/raw/query.json index 58af758..d2bf796 100644 --- a/schema/raw/query.json +++ b/schema/raw/query.json @@ -24,10 +24,10 @@ "get_delegate": { "type": "object", "required": [ - "delegate_account" + "delegate" ], "properties": { - "delegate_account": { + "delegate": { "type": "string" } }, @@ -45,10 +45,10 @@ "get_delegated": { "type": "object", "required": [ - "delegatee_account" + "delegatee" ], "properties": { - "delegatee_account": { + "delegatee": { "type": "string" } }, @@ -229,10 +229,10 @@ "get_stake_info_for_coldkey": { "type": "object", "required": [ - "coldkey_account" + "coldkey" ], "properties": { - "coldkey_account": { + "coldkey": { "type": "string" } }, @@ -250,10 +250,10 @@ "get_stake_info_for_coldkeys": { "type": "object", "required": [ - "coldkey_accounts" + "coldkeys" ], "properties": { - "coldkey_accounts": { + "coldkeys": { "type": "array", "items": { "type": "string" @@ -265,6 +265,389 @@ }, "additionalProperties": false }, + { + "type": "object", + "required": [ + "get_total_stake_for_hotkey" + ], + "properties": { + "get_total_stake_for_hotkey": { + "type": "object", + "required": [ + "address" + ], + "properties": { + "address": { + "type": "string" + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "get_total_stake_for_coldkey" + ], + "properties": { + "get_total_stake_for_coldkey": { + "type": "object", + "required": [ + "address" + ], + "properties": { + "address": { + "type": "string" + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "get_stake_for_coldkey_and_hotkey" + ], + "properties": { + "get_stake_for_coldkey_and_hotkey": { + "type": "object", + "required": [ + "coldkey", + "hotkey" + ], + "properties": { + "coldkey": { + "type": "string" + }, + "hotkey": { + "type": "string" + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "get_hotkey_owner" + ], + "properties": { + "get_hotkey_owner": { + "type": "object", + "required": [ + "hotkey" + ], + "properties": { + "hotkey": { + "type": "string" + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "get_uid_for_hotkey_on_subnet" + ], + "properties": { + "get_uid_for_hotkey_on_subnet": { + "type": "object", + "required": [ + "hotkey", + "netuid" + ], + "properties": { + "hotkey": { + "type": "string" + }, + "netuid": { + "type": "integer", + "format": "uint16", + "minimum": 0.0 + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "get_netuids_for_hotkey" + ], + "properties": { + "get_netuids_for_hotkey": { + "type": "object", + "required": [ + "hotkey" + ], + "properties": { + "hotkey": { + "type": "string" + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "get_hotkey_exist" + ], + "properties": { + "get_hotkey_exist": { + "type": "object", + "required": [ + "hotkey" + ], + "properties": { + "hotkey": { + "type": "string" + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "get_stake" + ], + "properties": { + "get_stake": { + "type": "object", + "required": [ + "hotkey" + ], + "properties": { + "hotkey": { + "type": "string" + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "get_delegate_take" + ], + "properties": { + "get_delegate_take": { + "type": "object", + "required": [ + "hotkey" + ], + "properties": { + "hotkey": { + "type": "string" + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "get_subnet_exist" + ], + "properties": { + "get_subnet_exist": { + "type": "object", + "required": [ + "netuid" + ], + "properties": { + "netuid": { + "type": "integer", + "format": "uint16", + "minimum": 0.0 + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "get_subnet_owner" + ], + "properties": { + "get_subnet_owner": { + "type": "object", + "required": [ + "netuid" + ], + "properties": { + "netuid": { + "type": "integer", + "format": "uint16", + "minimum": 0.0 + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "get_max_weight_limit" + ], + "properties": { + "get_max_weight_limit": { + "type": "object", + "required": [ + "netuid" + ], + "properties": { + "netuid": { + "type": "integer", + "format": "uint16", + "minimum": 0.0 + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "get_min_allowed_weights" + ], + "properties": { + "get_min_allowed_weights": { + "type": "object", + "required": [ + "netuid" + ], + "properties": { + "netuid": { + "type": "integer", + "format": "uint16", + "minimum": 0.0 + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "get_burn" + ], + "properties": { + "get_burn": { + "type": "object", + "required": [ + "netuid" + ], + "properties": { + "netuid": { + "type": "integer", + "format": "uint16", + "minimum": 0.0 + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "get_difficulty" + ], + "properties": { + "get_difficulty": { + "type": "object", + "required": [ + "netuid" + ], + "properties": { + "netuid": { + "type": "integer", + "format": "uint16", + "minimum": 0.0 + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "get_tempo" + ], + "properties": { + "get_tempo": { + "type": "object", + "required": [ + "netuid" + ], + "properties": { + "netuid": { + "type": "integer", + "format": "uint16", + "minimum": 0.0 + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "get_emission_value_by_subnet" + ], + "properties": { + "get_emission_value_by_subnet": { + "type": "object", + "required": [ + "netuid" + ], + "properties": { + "netuid": { + "type": "integer", + "format": "uint16", + "minimum": 0.0 + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + }, { "type": "object", "required": [ @@ -278,6 +661,138 @@ }, "additionalProperties": false }, + { + "type": "object", + "required": [ + "get_total_networks" + ], + "properties": { + "get_total_networks": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "get_networks_added" + ], + "properties": { + "get_networks_added": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "get_all_subnet_netuids" + ], + "properties": { + "get_all_subnet_netuids": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "get_total_issuance" + ], + "properties": { + "get_total_issuance": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "get_total_stake" + ], + "properties": { + "get_total_stake": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "get_tx_rate_limit" + ], + "properties": { + "get_tx_rate_limit": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "get_axon_info" + ], + "properties": { + "get_axon_info": { + "type": "object", + "required": [ + "hotkey", + "netuid" + ], + "properties": { + "hotkey": { + "type": "string" + }, + "netuid": { + "type": "integer", + "format": "uint16", + "minimum": 0.0 + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "get_prometheus_info" + ], + "properties": { + "get_prometheus_info": { + "type": "object", + "required": [ + "hotkey", + "netuid" + ], + "properties": { + "hotkey": { + "type": "string" + }, + "netuid": { + "type": "integer", + "format": "uint16", + "minimum": 0.0 + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + }, { "type": "object", "required": [ @@ -301,6 +816,29 @@ }, "additionalProperties": false }, + { + "type": "object", + "required": [ + "get_weights_sparse" + ], + "properties": { + "get_weights_sparse": { + "type": "object", + "required": [ + "netuid" + ], + "properties": { + "netuid": { + "type": "integer", + "format": "uint16", + "minimum": 0.0 + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + }, { "type": "object", "required": [ diff --git a/schema/raw/response_to_get_all_subnet_netuids.json b/schema/raw/response_to_get_all_subnet_netuids.json new file mode 100644 index 0000000..004cd66 --- /dev/null +++ b/schema/raw/response_to_get_all_subnet_netuids.json @@ -0,0 +1,10 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "Array_of_uint16", + "type": "array", + "items": { + "type": "integer", + "format": "uint16", + "minimum": 0.0 + } +} diff --git a/schema/raw/response_to_get_axon_info.json b/schema/raw/response_to_get_axon_info.json new file mode 100644 index 0000000..50bef2e --- /dev/null +++ b/schema/raw/response_to_get_axon_info.json @@ -0,0 +1,69 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "Nullable_AxonInfo", + "anyOf": [ + { + "$ref": "#/definitions/AxonInfo" + }, + { + "type": "null" + } + ], + "definitions": { + "AxonInfo": { + "type": "object", + "required": [ + "block", + "ip", + "ip_type", + "placeholder1", + "placeholder2", + "port", + "protocol", + "version" + ], + "properties": { + "block": { + "type": "integer", + "format": "uint64", + "minimum": 0.0 + }, + "ip": { + "type": "integer", + "format": "uint128", + "minimum": 0.0 + }, + "ip_type": { + "type": "integer", + "format": "uint8", + "minimum": 0.0 + }, + "placeholder1": { + "type": "integer", + "format": "uint8", + "minimum": 0.0 + }, + "placeholder2": { + "type": "integer", + "format": "uint8", + "minimum": 0.0 + }, + "port": { + "type": "integer", + "format": "uint16", + "minimum": 0.0 + }, + "protocol": { + "type": "integer", + "format": "uint8", + "minimum": 0.0 + }, + "version": { + "type": "integer", + "format": "uint32", + "minimum": 0.0 + } + } + } + } +} diff --git a/schema/raw/response_to_get_burn.json b/schema/raw/response_to_get_burn.json new file mode 100644 index 0000000..5982445 --- /dev/null +++ b/schema/raw/response_to_get_burn.json @@ -0,0 +1,10 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "Nullable_uint64", + "type": [ + "integer", + "null" + ], + "format": "uint64", + "minimum": 0.0 +} diff --git a/schema/raw/response_to_get_delegate.json b/schema/raw/response_to_get_delegate.json index 1bd03e4..c6734f2 100644 --- a/schema/raw/response_to_get_delegate.json +++ b/schema/raw/response_to_get_delegate.json @@ -17,9 +17,9 @@ "DelegateInfo": { "type": "object", "required": [ - "delegate_ss58", + "delegate", "nominators", - "owner_ss58", + "owner", "registrations", "return_per_1000", "take", @@ -27,7 +27,7 @@ "validator_permits" ], "properties": { - "delegate_ss58": { + "delegate": { "$ref": "#/definitions/Addr" }, "nominators": { @@ -48,7 +48,7 @@ "minItems": 2 } }, - "owner_ss58": { + "owner": { "$ref": "#/definitions/Addr" }, "registrations": { diff --git a/schema/raw/response_to_get_delegate_take.json b/schema/raw/response_to_get_delegate_take.json new file mode 100644 index 0000000..d373c01 --- /dev/null +++ b/schema/raw/response_to_get_delegate_take.json @@ -0,0 +1,10 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "Nullable_uint16", + "type": [ + "integer", + "null" + ], + "format": "uint16", + "minimum": 0.0 +} diff --git a/schema/raw/response_to_get_delegated.json b/schema/raw/response_to_get_delegated.json index c515dd5..179f78e 100644 --- a/schema/raw/response_to_get_delegated.json +++ b/schema/raw/response_to_get_delegated.json @@ -25,9 +25,9 @@ "DelegateInfo": { "type": "object", "required": [ - "delegate_ss58", + "delegate", "nominators", - "owner_ss58", + "owner", "registrations", "return_per_1000", "take", @@ -35,7 +35,7 @@ "validator_permits" ], "properties": { - "delegate_ss58": { + "delegate": { "$ref": "#/definitions/Addr" }, "nominators": { @@ -56,7 +56,7 @@ "minItems": 2 } }, - "owner_ss58": { + "owner": { "$ref": "#/definitions/Addr" }, "registrations": { diff --git a/schema/raw/response_to_get_delegates.json b/schema/raw/response_to_get_delegates.json index a1cfbce..4ca2f31 100644 --- a/schema/raw/response_to_get_delegates.json +++ b/schema/raw/response_to_get_delegates.json @@ -13,9 +13,9 @@ "DelegateInfo": { "type": "object", "required": [ - "delegate_ss58", + "delegate", "nominators", - "owner_ss58", + "owner", "registrations", "return_per_1000", "take", @@ -23,7 +23,7 @@ "validator_permits" ], "properties": { - "delegate_ss58": { + "delegate": { "$ref": "#/definitions/Addr" }, "nominators": { @@ -44,7 +44,7 @@ "minItems": 2 } }, - "owner_ss58": { + "owner": { "$ref": "#/definitions/Addr" }, "registrations": { diff --git a/schema/raw/response_to_get_difficulty.json b/schema/raw/response_to_get_difficulty.json new file mode 100644 index 0000000..5982445 --- /dev/null +++ b/schema/raw/response_to_get_difficulty.json @@ -0,0 +1,10 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "Nullable_uint64", + "type": [ + "integer", + "null" + ], + "format": "uint64", + "minimum": 0.0 +} diff --git a/schema/raw/response_to_get_emission_value_by_subnet.json b/schema/raw/response_to_get_emission_value_by_subnet.json new file mode 100644 index 0000000..7b729a7 --- /dev/null +++ b/schema/raw/response_to_get_emission_value_by_subnet.json @@ -0,0 +1,7 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "uint64", + "type": "integer", + "format": "uint64", + "minimum": 0.0 +} diff --git a/schema/raw/response_to_get_hotkey_exist.json b/schema/raw/response_to_get_hotkey_exist.json new file mode 100644 index 0000000..a7fe2bf --- /dev/null +++ b/schema/raw/response_to_get_hotkey_exist.json @@ -0,0 +1,5 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "Boolean", + "type": "boolean" +} diff --git a/schema/raw/response_to_get_hotkey_owner.json b/schema/raw/response_to_get_hotkey_owner.json new file mode 100644 index 0000000..f4c601d --- /dev/null +++ b/schema/raw/response_to_get_hotkey_owner.json @@ -0,0 +1,8 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "Nullable_String", + "type": [ + "string", + "null" + ] +} diff --git a/schema/raw/response_to_get_max_weight_limit.json b/schema/raw/response_to_get_max_weight_limit.json new file mode 100644 index 0000000..d373c01 --- /dev/null +++ b/schema/raw/response_to_get_max_weight_limit.json @@ -0,0 +1,10 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "Nullable_uint16", + "type": [ + "integer", + "null" + ], + "format": "uint16", + "minimum": 0.0 +} diff --git a/schema/raw/response_to_get_min_allowed_weights.json b/schema/raw/response_to_get_min_allowed_weights.json new file mode 100644 index 0000000..d373c01 --- /dev/null +++ b/schema/raw/response_to_get_min_allowed_weights.json @@ -0,0 +1,10 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "Nullable_uint16", + "type": [ + "integer", + "null" + ], + "format": "uint16", + "minimum": 0.0 +} diff --git a/schema/raw/response_to_get_netuids_for_hotkey.json b/schema/raw/response_to_get_netuids_for_hotkey.json new file mode 100644 index 0000000..7cb6614 --- /dev/null +++ b/schema/raw/response_to_get_netuids_for_hotkey.json @@ -0,0 +1,13 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "Nullable_Array_of_uint16", + "type": [ + "array", + "null" + ], + "items": { + "type": "integer", + "format": "uint16", + "minimum": 0.0 + } +} diff --git a/schema/raw/response_to_get_networks_added.json b/schema/raw/response_to_get_networks_added.json new file mode 100644 index 0000000..004cd66 --- /dev/null +++ b/schema/raw/response_to_get_networks_added.json @@ -0,0 +1,10 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "Array_of_uint16", + "type": "array", + "items": { + "type": "integer", + "format": "uint16", + "minimum": 0.0 + } +} diff --git a/schema/raw/response_to_get_prometheus_info.json b/schema/raw/response_to_get_prometheus_info.json new file mode 100644 index 0000000..098dd81 --- /dev/null +++ b/schema/raw/response_to_get_prometheus_info.json @@ -0,0 +1,51 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "Nullable_PrometheusInfo", + "anyOf": [ + { + "$ref": "#/definitions/PrometheusInfo" + }, + { + "type": "null" + } + ], + "definitions": { + "PrometheusInfo": { + "type": "object", + "required": [ + "block", + "ip", + "ip_type", + "port", + "version" + ], + "properties": { + "block": { + "type": "integer", + "format": "uint64", + "minimum": 0.0 + }, + "ip": { + "type": "integer", + "format": "uint128", + "minimum": 0.0 + }, + "ip_type": { + "type": "integer", + "format": "uint8", + "minimum": 0.0 + }, + "port": { + "type": "integer", + "format": "uint16", + "minimum": 0.0 + }, + "version": { + "type": "integer", + "format": "uint32", + "minimum": 0.0 + } + } + } + } +} diff --git a/schema/raw/response_to_get_stake.json b/schema/raw/response_to_get_stake.json new file mode 100644 index 0000000..0e4f0d5 --- /dev/null +++ b/schema/raw/response_to_get_stake.json @@ -0,0 +1,20 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "Array_of_Tuple_of_String_and_uint64", + "type": "array", + "items": { + "type": "array", + "items": [ + { + "type": "string" + }, + { + "type": "integer", + "format": "uint64", + "minimum": 0.0 + } + ], + "maxItems": 2, + "minItems": 2 + } +} diff --git a/schema/raw/response_to_get_stake_for_coldkey_and_hotkey.json b/schema/raw/response_to_get_stake_for_coldkey_and_hotkey.json new file mode 100644 index 0000000..5982445 --- /dev/null +++ b/schema/raw/response_to_get_stake_for_coldkey_and_hotkey.json @@ -0,0 +1,10 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "Nullable_uint64", + "type": [ + "integer", + "null" + ], + "format": "uint64", + "minimum": 0.0 +} diff --git a/schema/raw/response_to_get_state.json b/schema/raw/response_to_get_state.json index ea024d1..0dca81c 100644 --- a/schema/raw/response_to_get_state.json +++ b/schema/raw/response_to_get_state.json @@ -48,7 +48,6 @@ "network_last_lock_cost", "network_last_registered", "network_lock_reduction_interval", - "network_min_allowed_uids", "network_min_lock_cost", "network_modality", "network_rate_limit", @@ -66,7 +65,6 @@ "registrations_this_interval", "rho", "root", - "scaling_law_power", "serving_rate_limit", "staked_hotkey_coldkey", "subnet_limit", @@ -979,11 +977,6 @@ "format": "uint64", "minimum": 0.0 }, - "network_min_allowed_uids": { - "type": "integer", - "format": "uint16", - "minimum": 0.0 - }, "network_min_lock_cost": { "type": "integer", "format": "uint64", @@ -1287,26 +1280,6 @@ "root": { "$ref": "#/definitions/Addr" }, - "scaling_law_power": { - "type": "array", - "items": { - "type": "array", - "items": [ - { - "type": "integer", - "format": "uint16", - "minimum": 0.0 - }, - { - "type": "integer", - "format": "uint16", - "minimum": 0.0 - } - ], - "maxItems": 2, - "minItems": 2 - } - }, "serving_rate_limit": { "type": "array", "items": { diff --git a/schema/raw/response_to_get_subnet_exist.json b/schema/raw/response_to_get_subnet_exist.json new file mode 100644 index 0000000..a7fe2bf --- /dev/null +++ b/schema/raw/response_to_get_subnet_exist.json @@ -0,0 +1,5 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "Boolean", + "type": "boolean" +} diff --git a/schema/raw/response_to_get_subnet_info.json b/schema/raw/response_to_get_subnet_info.json index 6b8d3db..0dcdcec 100644 --- a/schema/raw/response_to_get_subnet_info.json +++ b/schema/raw/response_to_get_subnet_info.json @@ -12,13 +12,12 @@ "max_allowed_uids", "max_allowed_validators", "max_weights_limit", + "metadata", "min_allowed_weights", "netuid", - "network_connect", "network_modality", "owner", "rho", - "scaling_law_power", "subnetwork_n", "tempo" ], @@ -68,6 +67,9 @@ "format": "uint16", "minimum": 0.0 }, + "metadata": { + "type": "string" + }, "min_allowed_weights": { "type": "integer", "format": "uint16", @@ -78,19 +80,6 @@ "format": "uint16", "minimum": 0.0 }, - "network_connect": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "integer", - "format": "uint16", - "minimum": 0.0 - }, - "maxItems": 2, - "minItems": 2 - } - }, "network_modality": { "type": "integer", "format": "uint16", @@ -104,11 +93,6 @@ "format": "uint16", "minimum": 0.0 }, - "scaling_law_power": { - "type": "integer", - "format": "uint16", - "minimum": 0.0 - }, "subnetwork_n": { "type": "integer", "format": "uint16", diff --git a/schema/raw/response_to_get_subnet_owner.json b/schema/raw/response_to_get_subnet_owner.json new file mode 100644 index 0000000..f4c601d --- /dev/null +++ b/schema/raw/response_to_get_subnet_owner.json @@ -0,0 +1,8 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "Nullable_String", + "type": [ + "string", + "null" + ] +} diff --git a/schema/raw/response_to_get_subnets_info.json b/schema/raw/response_to_get_subnets_info.json index 2322ef7..b906cad 100644 --- a/schema/raw/response_to_get_subnets_info.json +++ b/schema/raw/response_to_get_subnets_info.json @@ -22,13 +22,12 @@ "max_allowed_uids", "max_allowed_validators", "max_weights_limit", + "metadata", "min_allowed_weights", "netuid", - "network_connect", "network_modality", "owner", "rho", - "scaling_law_power", "subnetwork_n", "tempo" ], @@ -78,6 +77,9 @@ "format": "uint16", "minimum": 0.0 }, + "metadata": { + "type": "string" + }, "min_allowed_weights": { "type": "integer", "format": "uint16", @@ -88,19 +90,6 @@ "format": "uint16", "minimum": 0.0 }, - "network_connect": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "integer", - "format": "uint16", - "minimum": 0.0 - }, - "maxItems": 2, - "minItems": 2 - } - }, "network_modality": { "type": "integer", "format": "uint16", @@ -114,11 +103,6 @@ "format": "uint16", "minimum": 0.0 }, - "scaling_law_power": { - "type": "integer", - "format": "uint16", - "minimum": 0.0 - }, "subnetwork_n": { "type": "integer", "format": "uint16", diff --git a/schema/raw/response_to_get_tempo.json b/schema/raw/response_to_get_tempo.json new file mode 100644 index 0000000..d373c01 --- /dev/null +++ b/schema/raw/response_to_get_tempo.json @@ -0,0 +1,10 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "Nullable_uint16", + "type": [ + "integer", + "null" + ], + "format": "uint16", + "minimum": 0.0 +} diff --git a/schema/raw/response_to_get_total_issuance.json b/schema/raw/response_to_get_total_issuance.json new file mode 100644 index 0000000..7b729a7 --- /dev/null +++ b/schema/raw/response_to_get_total_issuance.json @@ -0,0 +1,7 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "uint64", + "type": "integer", + "format": "uint64", + "minimum": 0.0 +} diff --git a/schema/raw/response_to_get_total_networks.json b/schema/raw/response_to_get_total_networks.json new file mode 100644 index 0000000..05fca26 --- /dev/null +++ b/schema/raw/response_to_get_total_networks.json @@ -0,0 +1,7 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "uint16", + "type": "integer", + "format": "uint16", + "minimum": 0.0 +} diff --git a/schema/raw/response_to_get_total_stake.json b/schema/raw/response_to_get_total_stake.json new file mode 100644 index 0000000..7b729a7 --- /dev/null +++ b/schema/raw/response_to_get_total_stake.json @@ -0,0 +1,7 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "uint64", + "type": "integer", + "format": "uint64", + "minimum": 0.0 +} diff --git a/schema/raw/response_to_get_total_stake_for_coldkey.json b/schema/raw/response_to_get_total_stake_for_coldkey.json new file mode 100644 index 0000000..5982445 --- /dev/null +++ b/schema/raw/response_to_get_total_stake_for_coldkey.json @@ -0,0 +1,10 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "Nullable_uint64", + "type": [ + "integer", + "null" + ], + "format": "uint64", + "minimum": 0.0 +} diff --git a/schema/raw/response_to_get_total_stake_for_hotkey.json b/schema/raw/response_to_get_total_stake_for_hotkey.json new file mode 100644 index 0000000..5982445 --- /dev/null +++ b/schema/raw/response_to_get_total_stake_for_hotkey.json @@ -0,0 +1,10 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "Nullable_uint64", + "type": [ + "integer", + "null" + ], + "format": "uint64", + "minimum": 0.0 +} diff --git a/schema/raw/response_to_get_tx_rate_limit.json b/schema/raw/response_to_get_tx_rate_limit.json new file mode 100644 index 0000000..7b729a7 --- /dev/null +++ b/schema/raw/response_to_get_tx_rate_limit.json @@ -0,0 +1,7 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "uint64", + "type": "integer", + "format": "uint64", + "minimum": 0.0 +} diff --git a/schema/raw/response_to_get_uid_for_hotkey_on_subnet.json b/schema/raw/response_to_get_uid_for_hotkey_on_subnet.json new file mode 100644 index 0000000..d373c01 --- /dev/null +++ b/schema/raw/response_to_get_uid_for_hotkey_on_subnet.json @@ -0,0 +1,10 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "Nullable_uint16", + "type": [ + "integer", + "null" + ], + "format": "uint16", + "minimum": 0.0 +} diff --git a/schema/raw/response_to_get_weights_sparse.json b/schema/raw/response_to_get_weights_sparse.json new file mode 100644 index 0000000..9ef9df5 --- /dev/null +++ b/schema/raw/response_to_get_weights_sparse.json @@ -0,0 +1,25 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "Array_of_Array_of_Tuple_of_uint16_and_uint16", + "type": "array", + "items": { + "type": "array", + "items": { + "type": "array", + "items": [ + { + "type": "integer", + "format": "uint16", + "minimum": 0.0 + }, + { + "type": "integer", + "format": "uint16", + "minimum": 0.0 + } + ], + "maxItems": 2, + "minItems": 2 + } + } +}