Skip to content

Commit

Permalink
schema
Browse files Browse the repository at this point in the history
  • Loading branch information
pr0n00gler committed Apr 18, 2023
1 parent 7a70bc8 commit 2aa265a
Show file tree
Hide file tree
Showing 4 changed files with 100 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@
"properties": {
"update_config": {
"type": "object",
"required": [
"owner"
],
"properties": {
"description": {
"type": [
Expand All @@ -26,8 +23,17 @@
"null"
]
},
"name": {
"type": [
"string",
"null"
]
},
"owner": {
"type": "string"
"type": [
"string",
"null"
]
},
"vesting_contract_address": {
"type": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"type": "object",
"required": [
"description",
"name",
"owner",
"vesting_contract_address"
],
Expand All @@ -21,6 +22,9 @@
}
]
},
"name": {
"type": "string"
},
"owner": {
"$ref": "#/definitions/Addr"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"type": "object",
"required": [
"description",
"name",
"owner",
"vesting_contract_address"
],
Expand All @@ -17,6 +18,9 @@
"null"
]
},
"name": {
"type": "string"
},
"owner": {
"$ref": "#/definitions/Admin"
},
Expand Down
96 changes: 82 additions & 14 deletions contracts/dao/voting/investors-vesting-vault/schema/query_msg.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
{
"type": "object",
"required": [
"dao"
"get_config"
],
"properties": {
"dao": {
"get_config": {
"type": "object"
}
},
Expand All @@ -17,34 +17,60 @@
{
"type": "object",
"required": [
"description"
"voting_power_at_height"
],
"properties": {
"description": {
"type": "object"
"voting_power_at_height": {
"type": "object",
"required": [
"address"
],
"properties": {
"address": {
"type": "string"
},
"height": {
"type": [
"integer",
"null"
],
"format": "uint64",
"minimum": 0.0
}
}
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"get_config"
"total_power_at_height"
],
"properties": {
"get_config": {
"type": "object"
"total_power_at_height": {
"type": "object",
"properties": {
"height": {
"type": [
"integer",
"null"
],
"format": "uint64",
"minimum": 0.0
}
}
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"voting_power_at_height"
"bonding_status"
],
"properties": {
"voting_power_at_height": {
"bonding_status": {
"type": "object",
"required": [
"address"
Expand All @@ -69,19 +95,61 @@
{
"type": "object",
"required": [
"total_power_at_height"
"dao"
],
"properties": {
"total_power_at_height": {
"dao": {
"type": "object"
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "object"
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"description"
],
"properties": {
"description": {
"type": "object"
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"list_bonders"
],
"properties": {
"list_bonders": {
"type": "object",
"properties": {
"height": {
"limit": {
"type": [
"integer",
"null"
],
"format": "uint64",
"format": "uint32",
"minimum": 0.0
},
"start_after": {
"type": [
"string",
"null"
]
}
}
}
Expand Down

0 comments on commit 2aa265a

Please sign in to comment.