Skip to content

Commit 360bf33

Browse files
committed
Update schema
1 parent e461ad9 commit 360bf33

File tree

1 file changed

+41
-12
lines changed

1 file changed

+41
-12
lines changed

contracts/vip/minter/schema/stargaze-vip-minter.json

Lines changed: 41 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,11 @@
6363
"update": {
6464
"type": "object",
6565
"required": [
66-
"token_id"
66+
"address"
6767
],
6868
"properties": {
69-
"token_id": {
70-
"type": "integer",
71-
"format": "uint64",
72-
"minimum": 0.0
69+
"address": {
70+
"type": "string"
7371
}
7472
},
7573
"additionalProperties": false
@@ -202,9 +200,7 @@
202200
],
203201
"properties": {
204202
"token_id": {
205-
"type": "integer",
206-
"format": "uint64",
207-
"minimum": 0.0
203+
"type": "string"
208204
}
209205
},
210206
"additionalProperties": false
@@ -263,10 +259,43 @@
263259
},
264260
"tier": {
265261
"$schema": "http://json-schema.org/draft-07/schema#",
266-
"title": "uint64",
267-
"type": "integer",
268-
"format": "uint64",
269-
"minimum": 0.0
262+
"title": "TierResponse",
263+
"type": "object",
264+
"properties": {
265+
"last_update_time": {
266+
"anyOf": [
267+
{
268+
"$ref": "#/definitions/Timestamp"
269+
},
270+
{
271+
"type": "null"
272+
}
273+
]
274+
},
275+
"tier": {
276+
"type": [
277+
"integer",
278+
"null"
279+
],
280+
"format": "uint64",
281+
"minimum": 0.0
282+
}
283+
},
284+
"additionalProperties": false,
285+
"definitions": {
286+
"Timestamp": {
287+
"description": "A point in time in nanosecond precision.\n\nThis type can represent times from 1970-01-01T00:00:00Z to 2554-07-21T23:34:33Z.\n\n## Examples\n\n``` # use cosmwasm_std::Timestamp; let ts = Timestamp::from_nanos(1_000_000_202); assert_eq!(ts.nanos(), 1_000_000_202); assert_eq!(ts.seconds(), 1); assert_eq!(ts.subsec_nanos(), 202);\n\nlet ts = ts.plus_seconds(2); assert_eq!(ts.nanos(), 3_000_000_202); assert_eq!(ts.seconds(), 3); assert_eq!(ts.subsec_nanos(), 202); ```",
288+
"allOf": [
289+
{
290+
"$ref": "#/definitions/Uint64"
291+
}
292+
]
293+
},
294+
"Uint64": {
295+
"description": "A thin wrapper around u64 that is using strings for JSON encoding/decoding, such that the full u64 range can be used for clients that convert JSON numbers to floats, like JavaScript and jq.\n\n# Examples\n\nUse `from` to create instances of this and `u64` to get the value out:\n\n``` # use cosmwasm_std::Uint64; let a = Uint64::from(42u64); assert_eq!(a.u64(), 42);\n\nlet b = Uint64::from(70u32); assert_eq!(b.u64(), 70); ```",
296+
"type": "string"
297+
}
298+
}
270299
},
271300
"tiers": {
272301
"$schema": "http://json-schema.org/draft-07/schema#",

0 commit comments

Comments
 (0)