Skip to content

Commit

Permalink
Update schema.
Browse files Browse the repository at this point in the history
  • Loading branch information
piobab committed Jun 5, 2024
1 parent d3debdd commit 03b6f79
Show file tree
Hide file tree
Showing 71 changed files with 1,067 additions and 1,804 deletions.
56 changes: 56 additions & 0 deletions schemas/mars-credit-manager/mars-credit-manager.json
Original file line number Diff line number Diff line change
Expand Up @@ -2546,6 +2546,36 @@
}
},
"additionalProperties": false
},
{
"description": "Enumerate all vault bindings; start_after accepts account_id",
"type": "object",
"required": [
"vault_bindings"
],
"properties": {
"vault_bindings": {
"type": "object",
"properties": {
"limit": {
"type": [
"integer",
"null"
],
"format": "uint32",
"minimum": 0.0
},
"start_after": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
],
"definitions": {
Expand Down Expand Up @@ -3547,6 +3577,32 @@
}
}
},
"vault_bindings": {
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Array_of_VaultBinding",
"type": "array",
"items": {
"$ref": "#/definitions/VaultBinding"
},
"definitions": {
"VaultBinding": {
"type": "object",
"required": [
"account_id",
"vault_address"
],
"properties": {
"account_id": {
"type": "string"
},
"vault_address": {
"type": "string"
}
},
"additionalProperties": false
}
}
},
"vault_position_value": {
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "VaultPositionValue",
Expand Down
21 changes: 14 additions & 7 deletions schemas/mars-vault/mars-vault.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,11 @@
"PerformanceFeeConfig": {
"type": "object",
"required": [
"fee",
"fee_rate",
"withdrawal_interval"
],
"properties": {
"fee": {
"fee_rate": {
"description": "The percentage of the performance fee that will be charged on the profits",
"allOf": [
{
Expand Down Expand Up @@ -267,11 +267,11 @@
"PerformanceFeeConfig": {
"type": "object",
"required": [
"fee",
"fee_rate",
"withdrawal_interval"
],
"properties": {
"fee": {
"fee_rate": {
"description": "The percentage of the performance fee that will be charged on the profits",
"allOf": [
{
Expand Down Expand Up @@ -481,10 +481,17 @@
"ExtensionQueryMsg": {
"oneOf": [
{
"type": "string",
"enum": [
"type": "object",
"required": [
"vault_info"
]
],
"properties": {
"vault_info": {
"type": "object",
"additionalProperties": false
}
},
"additionalProperties": false
},
{
"type": "object",
Expand Down
Loading

0 comments on commit 03b6f79

Please sign in to comment.