Skip to content

Commit

Permalink
Update schema
Browse files Browse the repository at this point in the history
  • Loading branch information
josefleventon committed Feb 25, 2023
1 parent 3b54ae2 commit 415266a
Showing 1 changed file with 37 additions and 17 deletions.
54 changes: 37 additions & 17 deletions schema/cw-wager.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,45 @@
"set_winner": {
"type": "object",
"required": [
"wager_key",
"winner"
"current_prices",
"prev_prices",
"wager_key"
],
"properties": {
"current_prices": {
"type": "array",
"items": [
{
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
{
"type": "integer",
"format": "uint64",
"minimum": 0.0
}
],
"maxItems": 2,
"minItems": 2
},
"prev_prices": {
"type": "array",
"items": [
{
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
{
"type": "integer",
"format": "uint64",
"minimum": 0.0
}
],
"maxItems": 2,
"minItems": 2
},
"wager_key": {
"type": "array",
"items": [
Expand Down Expand Up @@ -142,21 +177,6 @@
],
"maxItems": 2,
"minItems": 2
},
"winner": {
"type": "array",
"items": [
{
"$ref": "#/definitions/Addr"
},
{
"type": "integer",
"format": "uint64",
"minimum": 0.0
}
],
"maxItems": 2,
"minItems": 2
}
},
"additionalProperties": false
Expand Down

0 comments on commit 415266a

Please sign in to comment.