Skip to content

Commit

Permalink
Merge pull request #14 from cybercongress/schema
Browse files Browse the repository at this point in the history
Updated schema
  • Loading branch information
cyborgshead authored Jan 5, 2024
2 parents 4ecfef5 + 23faabc commit 40f0cf2
Show file tree
Hide file tree
Showing 35 changed files with 1,978 additions and 302 deletions.
1,154 changes: 996 additions & 158 deletions schema/cybernet.json

Large diffs are not rendered by default.

114 changes: 57 additions & 57 deletions schema/raw/execute.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down Expand Up @@ -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
Expand All @@ -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"
}
Expand All @@ -125,11 +139,11 @@
"remove_stake": {
"type": "object",
"required": [
"amount_unstaked",
"amount",
"hotkey"
],
"properties": {
"amount_unstaked": {
"amount": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
Expand Down Expand Up @@ -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"
},
Expand All @@ -422,11 +429,6 @@
"type": "integer",
"format": "uint16",
"minimum": 0.0
},
"stake": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
}
},
"additionalProperties": false
Expand Down Expand Up @@ -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": [
Expand Down Expand Up @@ -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
}
]
}
Loading

0 comments on commit 40f0cf2

Please sign in to comment.