You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: contracts/cw4-stake/schema/init_msg.json
+38-1Lines changed: 38 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,11 @@
21
21
},
22
22
"denom": {
23
23
"description": "denom of the token to stake",
24
-
"type": "string"
24
+
"allOf": [
25
+
{
26
+
"$ref": "#/definitions/Denom"
27
+
}
28
+
]
25
29
},
26
30
"min_bond": {
27
31
"$ref": "#/definitions/Uint128"
@@ -34,6 +38,39 @@
34
38
}
35
39
},
36
40
"definitions": {
41
+
"Binary": {
42
+
"description": "Binary is a wrapper around Vec<u8> to add base64 de/serialization with serde. It also adds some helper methods to help encode inline.\n\nThis is only needed as serde-json-{core,wasm} has a horrible encoding for Vec<u8>",
43
+
"type": "string"
44
+
},
45
+
"CanonicalAddr": {
46
+
"$ref": "#/definitions/Binary"
47
+
},
48
+
"Denom": {
49
+
"anyOf": [
50
+
{
51
+
"type": "object",
52
+
"required": [
53
+
"native"
54
+
],
55
+
"properties": {
56
+
"native": {
57
+
"type": "string"
58
+
}
59
+
}
60
+
},
61
+
{
62
+
"type": "object",
63
+
"required": [
64
+
"cw20"
65
+
],
66
+
"properties": {
67
+
"cw20": {
68
+
"$ref": "#/definitions/CanonicalAddr"
69
+
}
70
+
}
71
+
}
72
+
]
73
+
},
37
74
"Duration": {
38
75
"description": "Duration is a delta of time. You can add it to a BlockInfo or Expiration to move that further in the future. Note that an height-based Duration and a time-based Expiration cannot be combined",
0 commit comments