schemos 0.0.1 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/dist/client.d.ts +8 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +2 -0
- package/dist/client.js.map +1 -0
- package/dist/client.test-d.d.ts +2 -0
- package/dist/client.test-d.d.ts.map +1 -0
- package/dist/client.test-d.js +50 -0
- package/dist/client.test-d.js.map +1 -0
- package/dist/contract.bench-d.d.ts +2 -0
- package/dist/contract.bench-d.d.ts.map +1 -0
- package/dist/contract.bench-d.js +67 -0
- package/dist/contract.bench-d.js.map +1 -0
- package/dist/contract.d.ts +27 -0
- package/dist/contract.d.ts.map +1 -0
- package/dist/contract.js +30 -0
- package/dist/contract.js.map +1 -0
- package/dist/contract.test-d.d.ts +2 -0
- package/dist/contract.test-d.d.ts.map +1 -0
- package/dist/contract.test-d.js +147 -0
- package/dist/contract.test-d.js.map +1 -0
- package/dist/contract.test.d.ts +2 -0
- package/dist/contract.test.d.ts.map +1 -0
- package/dist/contract.test.js +77 -0
- package/dist/contract.test.js.map +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/dist/schemas/cw20/execute.d.ts +367 -0
- package/dist/schemas/cw20/execute.d.ts.map +1 -0
- package/dist/schemas/cw20/execute.js +398 -0
- package/dist/schemas/cw20/execute.js.map +1 -0
- package/dist/schemas/cw20/index.d.ts +905 -0
- package/dist/schemas/cw20/index.d.ts.map +1 -0
- package/dist/schemas/cw20/index.js +10 -0
- package/dist/schemas/cw20/index.js.map +1 -0
- package/dist/schemas/cw20/query.d.ts +160 -0
- package/dist/schemas/cw20/query.d.ts.map +1 -0
- package/dist/schemas/cw20/query.js +170 -0
- package/dist/schemas/cw20/query.js.map +1 -0
- package/dist/schemas/cw20/responses.d.ts +386 -0
- package/dist/schemas/cw20/responses.d.ts.map +1 -0
- package/dist/schemas/cw20/responses.js +416 -0
- package/dist/schemas/cw20/responses.js.map +1 -0
- package/dist/schemas/cw721/execute.d.ts +543 -0
- package/dist/schemas/cw721/execute.d.ts.map +1 -0
- package/dist/schemas/cw721/execute.js +597 -0
- package/dist/schemas/cw721/execute.js.map +1 -0
- package/dist/schemas/cw721/index.d.ts +2507 -0
- package/dist/schemas/cw721/index.d.ts.map +1 -0
- package/dist/schemas/cw721/index.js +10 -0
- package/dist/schemas/cw721/index.js.map +1 -0
- package/dist/schemas/cw721/query.d.ts +487 -0
- package/dist/schemas/cw721/query.d.ts.map +1 -0
- package/dist/schemas/cw721/query.js +526 -0
- package/dist/schemas/cw721/query.js.map +1 -0
- package/dist/schemas/cw721/responses.d.ts +1485 -0
- package/dist/schemas/cw721/responses.d.ts.map +1 -0
- package/dist/schemas/cw721/responses.js +1675 -0
- package/dist/schemas/cw721/responses.js.map +1 -0
- package/dist/schemas/index.d.ts +3 -0
- package/dist/schemas/index.d.ts.map +1 -0
- package/dist/schemas/index.js +3 -0
- package/dist/schemas/index.js.map +1 -0
- package/dist/schemas/schemas.test-d.d.ts +2 -0
- package/dist/schemas/schemas.test-d.d.ts.map +1 -0
- package/dist/schemas/schemas.test-d.js +92 -0
- package/dist/schemas/schemas.test-d.js.map +1 -0
- package/dist/schemas/schemas.test.d.ts +2 -0
- package/dist/schemas/schemas.test.d.ts.map +1 -0
- package/dist/schemas/schemas.test.js +150 -0
- package/dist/schemas/schemas.test.js.map +1 -0
- package/dist/telescope.d.ts +140 -0
- package/dist/telescope.d.ts.map +1 -0
- package/dist/telescope.js +119 -0
- package/dist/telescope.js.map +1 -0
- package/dist/telescope.test.d.ts +2 -0
- package/dist/telescope.test.d.ts.map +1 -0
- package/dist/telescope.test.js +91 -0
- package/dist/telescope.test.js.map +1 -0
- package/dist/types.d.ts +9 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +2 -0
- package/dist/types.js.map +1 -0
- package/dist/types.test-d.d.ts +2 -0
- package/dist/types.test-d.d.ts.map +1 -0
- package/dist/types.test-d.js +28 -0
- package/dist/types.test-d.js.map +1 -0
- package/dist/wallet-compat.test-d.d.ts +13 -0
- package/dist/wallet-compat.test-d.d.ts.map +1 -0
- package/dist/wallet-compat.test-d.js +74 -0
- package/dist/wallet-compat.test-d.js.map +1 -0
- package/package.json +65 -7
|
@@ -0,0 +1,1675 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CW721 query response schemas.
|
|
3
|
+
* Generated from cw-nfts cw721-base cargo schema output.
|
|
4
|
+
*/
|
|
5
|
+
export const cw721ResponseSchemas = {
|
|
6
|
+
all_nft_info: {
|
|
7
|
+
type: 'object',
|
|
8
|
+
required: ['access', 'info'],
|
|
9
|
+
properties: {
|
|
10
|
+
access: {
|
|
11
|
+
description: 'Who can transfer the token',
|
|
12
|
+
allOf: [
|
|
13
|
+
{
|
|
14
|
+
$ref: '#/definitions/OwnerOfResponse',
|
|
15
|
+
},
|
|
16
|
+
],
|
|
17
|
+
},
|
|
18
|
+
info: {
|
|
19
|
+
description: 'Data on the token itself,',
|
|
20
|
+
allOf: [
|
|
21
|
+
{
|
|
22
|
+
$ref: '#/definitions/NftInfoResponse_for_Nullable_Empty',
|
|
23
|
+
},
|
|
24
|
+
],
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
additionalProperties: false,
|
|
28
|
+
definitions: {
|
|
29
|
+
Addr: {
|
|
30
|
+
description: "A human readable address.\n\nIn Cosmos, this is typically bech32 encoded. But for multi-chain smart contracts no assumptions should be made other than being UTF-8 encoded and of reasonable length.\n\nThis type represents a validated address. It can be created in the following ways 1. Use `Addr::unchecked(input)` 2. Use `let checked: Addr = deps.api.addr_validate(input)?` 3. Use `let checked: Addr = deps.api.addr_humanize(canonical_addr)?` 4. Deserialize from JSON. This must only be done from JSON that was validated before such as a contract's state. `Addr` must not be used in messages sent by the user because this would result in unvalidated instances.\n\nThis type is immutable. If you really need to mutate it (Really? Are you sure?), create a mutable copy using `let mut mutable = Addr::to_string()` and operate on that `String` instance.",
|
|
31
|
+
type: 'string',
|
|
32
|
+
},
|
|
33
|
+
Approval: {
|
|
34
|
+
type: 'object',
|
|
35
|
+
required: ['expires', 'spender'],
|
|
36
|
+
properties: {
|
|
37
|
+
expires: {
|
|
38
|
+
description: 'When the Approval expires (maybe Expiration::never)',
|
|
39
|
+
allOf: [
|
|
40
|
+
{
|
|
41
|
+
$ref: '#/definitions/Expiration',
|
|
42
|
+
},
|
|
43
|
+
],
|
|
44
|
+
},
|
|
45
|
+
spender: {
|
|
46
|
+
description: 'Account that can transfer/send the token',
|
|
47
|
+
allOf: [
|
|
48
|
+
{
|
|
49
|
+
$ref: '#/definitions/Addr',
|
|
50
|
+
},
|
|
51
|
+
],
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
additionalProperties: false,
|
|
55
|
+
},
|
|
56
|
+
Empty: {
|
|
57
|
+
description: "An empty struct that serves as a placeholder in different places, such as contracts that don't set a custom message.\n\nIt is designed to be expressible in correct JSON and JSON Schema but contains no meaningful data. Previously we used enums without cases, but those cannot represented as valid JSON Schema (https://github.com/CosmWasm/cosmwasm/issues/451)",
|
|
58
|
+
type: 'object',
|
|
59
|
+
additionalProperties: false,
|
|
60
|
+
},
|
|
61
|
+
Expiration: {
|
|
62
|
+
description: 'Expiration represents a point in time when some event happens. It can compare with a BlockInfo and will return is_expired() == true once the condition is hit (and for every block in the future)',
|
|
63
|
+
oneOf: [
|
|
64
|
+
{
|
|
65
|
+
description: 'AtHeight will expire when `env.block.height` >= height',
|
|
66
|
+
type: 'object',
|
|
67
|
+
required: ['at_height'],
|
|
68
|
+
properties: {
|
|
69
|
+
at_height: {
|
|
70
|
+
type: 'integer',
|
|
71
|
+
format: 'uint64',
|
|
72
|
+
minimum: 0,
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
additionalProperties: false,
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
description: 'AtTime will expire when `env.block.time` >= time',
|
|
79
|
+
type: 'object',
|
|
80
|
+
required: ['at_time'],
|
|
81
|
+
properties: {
|
|
82
|
+
at_time: {
|
|
83
|
+
$ref: '#/definitions/Timestamp',
|
|
84
|
+
},
|
|
85
|
+
},
|
|
86
|
+
additionalProperties: false,
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
description: 'Never will never expire. Used to express the empty variant',
|
|
90
|
+
type: 'object',
|
|
91
|
+
required: ['never'],
|
|
92
|
+
properties: {
|
|
93
|
+
never: {
|
|
94
|
+
type: 'object',
|
|
95
|
+
additionalProperties: false,
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
additionalProperties: false,
|
|
99
|
+
},
|
|
100
|
+
],
|
|
101
|
+
},
|
|
102
|
+
NftInfoResponse_for_Nullable_Empty: {
|
|
103
|
+
type: 'object',
|
|
104
|
+
properties: {
|
|
105
|
+
extension: {
|
|
106
|
+
description: 'You can add any custom metadata here when you extend cw721-base',
|
|
107
|
+
anyOf: [
|
|
108
|
+
{
|
|
109
|
+
$ref: '#/definitions/Empty',
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
type: 'null',
|
|
113
|
+
},
|
|
114
|
+
],
|
|
115
|
+
},
|
|
116
|
+
token_uri: {
|
|
117
|
+
description: 'Universal resource identifier for this NFT Should point to a JSON file that conforms to the ERC721 Metadata JSON Schema',
|
|
118
|
+
type: ['string', 'null'],
|
|
119
|
+
},
|
|
120
|
+
},
|
|
121
|
+
additionalProperties: false,
|
|
122
|
+
},
|
|
123
|
+
OwnerOfResponse: {
|
|
124
|
+
type: 'object',
|
|
125
|
+
required: ['approvals', 'owner'],
|
|
126
|
+
properties: {
|
|
127
|
+
approvals: {
|
|
128
|
+
description: 'If set this address is approved to transfer/send the token as well',
|
|
129
|
+
type: 'array',
|
|
130
|
+
items: {
|
|
131
|
+
$ref: '#/definitions/Approval',
|
|
132
|
+
},
|
|
133
|
+
},
|
|
134
|
+
owner: {
|
|
135
|
+
description: 'Owner of the token',
|
|
136
|
+
type: 'string',
|
|
137
|
+
},
|
|
138
|
+
},
|
|
139
|
+
additionalProperties: false,
|
|
140
|
+
},
|
|
141
|
+
Timestamp: {
|
|
142
|
+
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); ```',
|
|
143
|
+
allOf: [
|
|
144
|
+
{
|
|
145
|
+
$ref: '#/definitions/Uint64',
|
|
146
|
+
},
|
|
147
|
+
],
|
|
148
|
+
},
|
|
149
|
+
Uint64: {
|
|
150
|
+
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); ```',
|
|
151
|
+
type: 'string',
|
|
152
|
+
},
|
|
153
|
+
},
|
|
154
|
+
},
|
|
155
|
+
all_operators: {
|
|
156
|
+
type: 'object',
|
|
157
|
+
required: ['operators'],
|
|
158
|
+
properties: {
|
|
159
|
+
operators: {
|
|
160
|
+
type: 'array',
|
|
161
|
+
items: {
|
|
162
|
+
$ref: '#/definitions/Approval',
|
|
163
|
+
},
|
|
164
|
+
},
|
|
165
|
+
},
|
|
166
|
+
additionalProperties: false,
|
|
167
|
+
definitions: {
|
|
168
|
+
Addr: {
|
|
169
|
+
description: "A human readable address.\n\nIn Cosmos, this is typically bech32 encoded. But for multi-chain smart contracts no assumptions should be made other than being UTF-8 encoded and of reasonable length.\n\nThis type represents a validated address. It can be created in the following ways 1. Use `Addr::unchecked(input)` 2. Use `let checked: Addr = deps.api.addr_validate(input)?` 3. Use `let checked: Addr = deps.api.addr_humanize(canonical_addr)?` 4. Deserialize from JSON. This must only be done from JSON that was validated before such as a contract's state. `Addr` must not be used in messages sent by the user because this would result in unvalidated instances.\n\nThis type is immutable. If you really need to mutate it (Really? Are you sure?), create a mutable copy using `let mut mutable = Addr::to_string()` and operate on that `String` instance.",
|
|
170
|
+
type: 'string',
|
|
171
|
+
},
|
|
172
|
+
Approval: {
|
|
173
|
+
type: 'object',
|
|
174
|
+
required: ['expires', 'spender'],
|
|
175
|
+
properties: {
|
|
176
|
+
expires: {
|
|
177
|
+
description: 'When the Approval expires (maybe Expiration::never)',
|
|
178
|
+
allOf: [
|
|
179
|
+
{
|
|
180
|
+
$ref: '#/definitions/Expiration',
|
|
181
|
+
},
|
|
182
|
+
],
|
|
183
|
+
},
|
|
184
|
+
spender: {
|
|
185
|
+
description: 'Account that can transfer/send the token',
|
|
186
|
+
allOf: [
|
|
187
|
+
{
|
|
188
|
+
$ref: '#/definitions/Addr',
|
|
189
|
+
},
|
|
190
|
+
],
|
|
191
|
+
},
|
|
192
|
+
},
|
|
193
|
+
additionalProperties: false,
|
|
194
|
+
},
|
|
195
|
+
Expiration: {
|
|
196
|
+
description: 'Expiration represents a point in time when some event happens. It can compare with a BlockInfo and will return is_expired() == true once the condition is hit (and for every block in the future)',
|
|
197
|
+
oneOf: [
|
|
198
|
+
{
|
|
199
|
+
description: 'AtHeight will expire when `env.block.height` >= height',
|
|
200
|
+
type: 'object',
|
|
201
|
+
required: ['at_height'],
|
|
202
|
+
properties: {
|
|
203
|
+
at_height: {
|
|
204
|
+
type: 'integer',
|
|
205
|
+
format: 'uint64',
|
|
206
|
+
minimum: 0,
|
|
207
|
+
},
|
|
208
|
+
},
|
|
209
|
+
additionalProperties: false,
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
description: 'AtTime will expire when `env.block.time` >= time',
|
|
213
|
+
type: 'object',
|
|
214
|
+
required: ['at_time'],
|
|
215
|
+
properties: {
|
|
216
|
+
at_time: {
|
|
217
|
+
$ref: '#/definitions/Timestamp',
|
|
218
|
+
},
|
|
219
|
+
},
|
|
220
|
+
additionalProperties: false,
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
description: 'Never will never expire. Used to express the empty variant',
|
|
224
|
+
type: 'object',
|
|
225
|
+
required: ['never'],
|
|
226
|
+
properties: {
|
|
227
|
+
never: {
|
|
228
|
+
type: 'object',
|
|
229
|
+
additionalProperties: false,
|
|
230
|
+
},
|
|
231
|
+
},
|
|
232
|
+
additionalProperties: false,
|
|
233
|
+
},
|
|
234
|
+
],
|
|
235
|
+
},
|
|
236
|
+
Timestamp: {
|
|
237
|
+
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); ```',
|
|
238
|
+
allOf: [
|
|
239
|
+
{
|
|
240
|
+
$ref: '#/definitions/Uint64',
|
|
241
|
+
},
|
|
242
|
+
],
|
|
243
|
+
},
|
|
244
|
+
Uint64: {
|
|
245
|
+
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); ```',
|
|
246
|
+
type: 'string',
|
|
247
|
+
},
|
|
248
|
+
},
|
|
249
|
+
},
|
|
250
|
+
all_tokens: {
|
|
251
|
+
type: 'object',
|
|
252
|
+
required: ['tokens'],
|
|
253
|
+
properties: {
|
|
254
|
+
tokens: {
|
|
255
|
+
description: 'Contains all token_ids in lexicographical ordering If there are more than `limit`, use `start_after` in future queries to achieve pagination.',
|
|
256
|
+
type: 'array',
|
|
257
|
+
items: {
|
|
258
|
+
type: 'string',
|
|
259
|
+
},
|
|
260
|
+
},
|
|
261
|
+
},
|
|
262
|
+
additionalProperties: false,
|
|
263
|
+
},
|
|
264
|
+
approval: {
|
|
265
|
+
type: 'object',
|
|
266
|
+
required: ['approval'],
|
|
267
|
+
properties: {
|
|
268
|
+
approval: {
|
|
269
|
+
$ref: '#/definitions/Approval',
|
|
270
|
+
},
|
|
271
|
+
},
|
|
272
|
+
additionalProperties: false,
|
|
273
|
+
definitions: {
|
|
274
|
+
Addr: {
|
|
275
|
+
description: "A human readable address.\n\nIn Cosmos, this is typically bech32 encoded. But for multi-chain smart contracts no assumptions should be made other than being UTF-8 encoded and of reasonable length.\n\nThis type represents a validated address. It can be created in the following ways 1. Use `Addr::unchecked(input)` 2. Use `let checked: Addr = deps.api.addr_validate(input)?` 3. Use `let checked: Addr = deps.api.addr_humanize(canonical_addr)?` 4. Deserialize from JSON. This must only be done from JSON that was validated before such as a contract's state. `Addr` must not be used in messages sent by the user because this would result in unvalidated instances.\n\nThis type is immutable. If you really need to mutate it (Really? Are you sure?), create a mutable copy using `let mut mutable = Addr::to_string()` and operate on that `String` instance.",
|
|
276
|
+
type: 'string',
|
|
277
|
+
},
|
|
278
|
+
Approval: {
|
|
279
|
+
type: 'object',
|
|
280
|
+
required: ['expires', 'spender'],
|
|
281
|
+
properties: {
|
|
282
|
+
expires: {
|
|
283
|
+
description: 'When the Approval expires (maybe Expiration::never)',
|
|
284
|
+
allOf: [
|
|
285
|
+
{
|
|
286
|
+
$ref: '#/definitions/Expiration',
|
|
287
|
+
},
|
|
288
|
+
],
|
|
289
|
+
},
|
|
290
|
+
spender: {
|
|
291
|
+
description: 'Account that can transfer/send the token',
|
|
292
|
+
allOf: [
|
|
293
|
+
{
|
|
294
|
+
$ref: '#/definitions/Addr',
|
|
295
|
+
},
|
|
296
|
+
],
|
|
297
|
+
},
|
|
298
|
+
},
|
|
299
|
+
additionalProperties: false,
|
|
300
|
+
},
|
|
301
|
+
Expiration: {
|
|
302
|
+
description: 'Expiration represents a point in time when some event happens. It can compare with a BlockInfo and will return is_expired() == true once the condition is hit (and for every block in the future)',
|
|
303
|
+
oneOf: [
|
|
304
|
+
{
|
|
305
|
+
description: 'AtHeight will expire when `env.block.height` >= height',
|
|
306
|
+
type: 'object',
|
|
307
|
+
required: ['at_height'],
|
|
308
|
+
properties: {
|
|
309
|
+
at_height: {
|
|
310
|
+
type: 'integer',
|
|
311
|
+
format: 'uint64',
|
|
312
|
+
minimum: 0,
|
|
313
|
+
},
|
|
314
|
+
},
|
|
315
|
+
additionalProperties: false,
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
description: 'AtTime will expire when `env.block.time` >= time',
|
|
319
|
+
type: 'object',
|
|
320
|
+
required: ['at_time'],
|
|
321
|
+
properties: {
|
|
322
|
+
at_time: {
|
|
323
|
+
$ref: '#/definitions/Timestamp',
|
|
324
|
+
},
|
|
325
|
+
},
|
|
326
|
+
additionalProperties: false,
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
description: 'Never will never expire. Used to express the empty variant',
|
|
330
|
+
type: 'object',
|
|
331
|
+
required: ['never'],
|
|
332
|
+
properties: {
|
|
333
|
+
never: {
|
|
334
|
+
type: 'object',
|
|
335
|
+
additionalProperties: false,
|
|
336
|
+
},
|
|
337
|
+
},
|
|
338
|
+
additionalProperties: false,
|
|
339
|
+
},
|
|
340
|
+
],
|
|
341
|
+
},
|
|
342
|
+
Timestamp: {
|
|
343
|
+
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); ```',
|
|
344
|
+
allOf: [
|
|
345
|
+
{
|
|
346
|
+
$ref: '#/definitions/Uint64',
|
|
347
|
+
},
|
|
348
|
+
],
|
|
349
|
+
},
|
|
350
|
+
Uint64: {
|
|
351
|
+
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); ```',
|
|
352
|
+
type: 'string',
|
|
353
|
+
},
|
|
354
|
+
},
|
|
355
|
+
},
|
|
356
|
+
approvals: {
|
|
357
|
+
type: 'object',
|
|
358
|
+
required: ['approvals'],
|
|
359
|
+
properties: {
|
|
360
|
+
approvals: {
|
|
361
|
+
type: 'array',
|
|
362
|
+
items: {
|
|
363
|
+
$ref: '#/definitions/Approval',
|
|
364
|
+
},
|
|
365
|
+
},
|
|
366
|
+
},
|
|
367
|
+
additionalProperties: false,
|
|
368
|
+
definitions: {
|
|
369
|
+
Addr: {
|
|
370
|
+
description: "A human readable address.\n\nIn Cosmos, this is typically bech32 encoded. But for multi-chain smart contracts no assumptions should be made other than being UTF-8 encoded and of reasonable length.\n\nThis type represents a validated address. It can be created in the following ways 1. Use `Addr::unchecked(input)` 2. Use `let checked: Addr = deps.api.addr_validate(input)?` 3. Use `let checked: Addr = deps.api.addr_humanize(canonical_addr)?` 4. Deserialize from JSON. This must only be done from JSON that was validated before such as a contract's state. `Addr` must not be used in messages sent by the user because this would result in unvalidated instances.\n\nThis type is immutable. If you really need to mutate it (Really? Are you sure?), create a mutable copy using `let mut mutable = Addr::to_string()` and operate on that `String` instance.",
|
|
371
|
+
type: 'string',
|
|
372
|
+
},
|
|
373
|
+
Approval: {
|
|
374
|
+
type: 'object',
|
|
375
|
+
required: ['expires', 'spender'],
|
|
376
|
+
properties: {
|
|
377
|
+
expires: {
|
|
378
|
+
description: 'When the Approval expires (maybe Expiration::never)',
|
|
379
|
+
allOf: [
|
|
380
|
+
{
|
|
381
|
+
$ref: '#/definitions/Expiration',
|
|
382
|
+
},
|
|
383
|
+
],
|
|
384
|
+
},
|
|
385
|
+
spender: {
|
|
386
|
+
description: 'Account that can transfer/send the token',
|
|
387
|
+
allOf: [
|
|
388
|
+
{
|
|
389
|
+
$ref: '#/definitions/Addr',
|
|
390
|
+
},
|
|
391
|
+
],
|
|
392
|
+
},
|
|
393
|
+
},
|
|
394
|
+
additionalProperties: false,
|
|
395
|
+
},
|
|
396
|
+
Expiration: {
|
|
397
|
+
description: 'Expiration represents a point in time when some event happens. It can compare with a BlockInfo and will return is_expired() == true once the condition is hit (and for every block in the future)',
|
|
398
|
+
oneOf: [
|
|
399
|
+
{
|
|
400
|
+
description: 'AtHeight will expire when `env.block.height` >= height',
|
|
401
|
+
type: 'object',
|
|
402
|
+
required: ['at_height'],
|
|
403
|
+
properties: {
|
|
404
|
+
at_height: {
|
|
405
|
+
type: 'integer',
|
|
406
|
+
format: 'uint64',
|
|
407
|
+
minimum: 0,
|
|
408
|
+
},
|
|
409
|
+
},
|
|
410
|
+
additionalProperties: false,
|
|
411
|
+
},
|
|
412
|
+
{
|
|
413
|
+
description: 'AtTime will expire when `env.block.time` >= time',
|
|
414
|
+
type: 'object',
|
|
415
|
+
required: ['at_time'],
|
|
416
|
+
properties: {
|
|
417
|
+
at_time: {
|
|
418
|
+
$ref: '#/definitions/Timestamp',
|
|
419
|
+
},
|
|
420
|
+
},
|
|
421
|
+
additionalProperties: false,
|
|
422
|
+
},
|
|
423
|
+
{
|
|
424
|
+
description: 'Never will never expire. Used to express the empty variant',
|
|
425
|
+
type: 'object',
|
|
426
|
+
required: ['never'],
|
|
427
|
+
properties: {
|
|
428
|
+
never: {
|
|
429
|
+
type: 'object',
|
|
430
|
+
additionalProperties: false,
|
|
431
|
+
},
|
|
432
|
+
},
|
|
433
|
+
additionalProperties: false,
|
|
434
|
+
},
|
|
435
|
+
],
|
|
436
|
+
},
|
|
437
|
+
Timestamp: {
|
|
438
|
+
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); ```',
|
|
439
|
+
allOf: [
|
|
440
|
+
{
|
|
441
|
+
$ref: '#/definitions/Uint64',
|
|
442
|
+
},
|
|
443
|
+
],
|
|
444
|
+
},
|
|
445
|
+
Uint64: {
|
|
446
|
+
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); ```',
|
|
447
|
+
type: 'string',
|
|
448
|
+
},
|
|
449
|
+
},
|
|
450
|
+
},
|
|
451
|
+
contract_info: {
|
|
452
|
+
description: 'This is a wrapper around CollectionInfo that includes the extension.',
|
|
453
|
+
type: 'object',
|
|
454
|
+
required: ['name', 'symbol', 'updated_at'],
|
|
455
|
+
properties: {
|
|
456
|
+
extension: {
|
|
457
|
+
anyOf: [
|
|
458
|
+
{
|
|
459
|
+
$ref: '#/definitions/CollectionExtension_for_RoyaltyInfo',
|
|
460
|
+
},
|
|
461
|
+
{
|
|
462
|
+
type: 'null',
|
|
463
|
+
},
|
|
464
|
+
],
|
|
465
|
+
},
|
|
466
|
+
name: {
|
|
467
|
+
type: 'string',
|
|
468
|
+
},
|
|
469
|
+
symbol: {
|
|
470
|
+
type: 'string',
|
|
471
|
+
},
|
|
472
|
+
updated_at: {
|
|
473
|
+
$ref: '#/definitions/Timestamp',
|
|
474
|
+
},
|
|
475
|
+
},
|
|
476
|
+
additionalProperties: false,
|
|
477
|
+
definitions: {
|
|
478
|
+
Addr: {
|
|
479
|
+
description: "A human readable address.\n\nIn Cosmos, this is typically bech32 encoded. But for multi-chain smart contracts no assumptions should be made other than being UTF-8 encoded and of reasonable length.\n\nThis type represents a validated address. It can be created in the following ways 1. Use `Addr::unchecked(input)` 2. Use `let checked: Addr = deps.api.addr_validate(input)?` 3. Use `let checked: Addr = deps.api.addr_humanize(canonical_addr)?` 4. Deserialize from JSON. This must only be done from JSON that was validated before such as a contract's state. `Addr` must not be used in messages sent by the user because this would result in unvalidated instances.\n\nThis type is immutable. If you really need to mutate it (Really? Are you sure?), create a mutable copy using `let mut mutable = Addr::to_string()` and operate on that `String` instance.",
|
|
480
|
+
type: 'string',
|
|
481
|
+
},
|
|
482
|
+
CollectionExtension_for_RoyaltyInfo: {
|
|
483
|
+
type: 'object',
|
|
484
|
+
required: ['description', 'image'],
|
|
485
|
+
properties: {
|
|
486
|
+
banner_url: {
|
|
487
|
+
type: ['string', 'null'],
|
|
488
|
+
},
|
|
489
|
+
description: {
|
|
490
|
+
type: 'string',
|
|
491
|
+
},
|
|
492
|
+
explicit_content: {
|
|
493
|
+
type: ['boolean', 'null'],
|
|
494
|
+
},
|
|
495
|
+
external_link: {
|
|
496
|
+
type: ['string', 'null'],
|
|
497
|
+
},
|
|
498
|
+
image: {
|
|
499
|
+
type: 'string',
|
|
500
|
+
},
|
|
501
|
+
royalty_info: {
|
|
502
|
+
anyOf: [
|
|
503
|
+
{
|
|
504
|
+
$ref: '#/definitions/RoyaltyInfo',
|
|
505
|
+
},
|
|
506
|
+
{
|
|
507
|
+
type: 'null',
|
|
508
|
+
},
|
|
509
|
+
],
|
|
510
|
+
},
|
|
511
|
+
start_trading_time: {
|
|
512
|
+
anyOf: [
|
|
513
|
+
{
|
|
514
|
+
$ref: '#/definitions/Timestamp',
|
|
515
|
+
},
|
|
516
|
+
{
|
|
517
|
+
type: 'null',
|
|
518
|
+
},
|
|
519
|
+
],
|
|
520
|
+
},
|
|
521
|
+
},
|
|
522
|
+
additionalProperties: false,
|
|
523
|
+
},
|
|
524
|
+
Decimal: {
|
|
525
|
+
description: 'A fixed-point decimal value with 18 fractional digits, i.e. Decimal(1_000_000_000_000_000_000) == 1.0\n\nThe greatest possible value that can be represented is 340282366920938463463.374607431768211455 (which is (2^128 - 1) / 10^18)',
|
|
526
|
+
type: 'string',
|
|
527
|
+
},
|
|
528
|
+
RoyaltyInfo: {
|
|
529
|
+
type: 'object',
|
|
530
|
+
required: ['payment_address', 'share'],
|
|
531
|
+
properties: {
|
|
532
|
+
payment_address: {
|
|
533
|
+
$ref: '#/definitions/Addr',
|
|
534
|
+
},
|
|
535
|
+
share: {
|
|
536
|
+
$ref: '#/definitions/Decimal',
|
|
537
|
+
},
|
|
538
|
+
},
|
|
539
|
+
additionalProperties: false,
|
|
540
|
+
},
|
|
541
|
+
Timestamp: {
|
|
542
|
+
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); ```',
|
|
543
|
+
allOf: [
|
|
544
|
+
{
|
|
545
|
+
$ref: '#/definitions/Uint64',
|
|
546
|
+
},
|
|
547
|
+
],
|
|
548
|
+
},
|
|
549
|
+
Uint64: {
|
|
550
|
+
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); ```',
|
|
551
|
+
type: 'string',
|
|
552
|
+
},
|
|
553
|
+
},
|
|
554
|
+
},
|
|
555
|
+
extension: {
|
|
556
|
+
type: 'null',
|
|
557
|
+
},
|
|
558
|
+
get_additional_minters: {
|
|
559
|
+
type: 'object',
|
|
560
|
+
required: ['minters'],
|
|
561
|
+
properties: {
|
|
562
|
+
minters: {
|
|
563
|
+
type: 'array',
|
|
564
|
+
items: {
|
|
565
|
+
type: 'string',
|
|
566
|
+
},
|
|
567
|
+
},
|
|
568
|
+
},
|
|
569
|
+
additionalProperties: false,
|
|
570
|
+
},
|
|
571
|
+
get_all_info: {
|
|
572
|
+
description: 'This is a wrapper around CollectionInfo that includes the extension, contract info, and number of tokens (supply).',
|
|
573
|
+
type: 'object',
|
|
574
|
+
required: [
|
|
575
|
+
'collection_extension',
|
|
576
|
+
'collection_info',
|
|
577
|
+
'contract_info',
|
|
578
|
+
'num_tokens',
|
|
579
|
+
],
|
|
580
|
+
properties: {
|
|
581
|
+
collection_extension: {
|
|
582
|
+
type: 'array',
|
|
583
|
+
items: {
|
|
584
|
+
$ref: '#/definitions/Attribute',
|
|
585
|
+
},
|
|
586
|
+
},
|
|
587
|
+
collection_info: {
|
|
588
|
+
$ref: '#/definitions/CollectionInfo',
|
|
589
|
+
},
|
|
590
|
+
contract_info: {
|
|
591
|
+
$ref: '#/definitions/ContractInfoResponse',
|
|
592
|
+
},
|
|
593
|
+
num_tokens: {
|
|
594
|
+
type: 'integer',
|
|
595
|
+
format: 'uint64',
|
|
596
|
+
minimum: 0,
|
|
597
|
+
},
|
|
598
|
+
},
|
|
599
|
+
additionalProperties: false,
|
|
600
|
+
definitions: {
|
|
601
|
+
Addr: {
|
|
602
|
+
description: "A human readable address.\n\nIn Cosmos, this is typically bech32 encoded. But for multi-chain smart contracts no assumptions should be made other than being UTF-8 encoded and of reasonable length.\n\nThis type represents a validated address. It can be created in the following ways 1. Use `Addr::unchecked(input)` 2. Use `let checked: Addr = deps.api.addr_validate(input)?` 3. Use `let checked: Addr = deps.api.addr_humanize(canonical_addr)?` 4. Deserialize from JSON. This must only be done from JSON that was validated before such as a contract's state. `Addr` must not be used in messages sent by the user because this would result in unvalidated instances.\n\nThis type is immutable. If you really need to mutate it (Really? Are you sure?), create a mutable copy using `let mut mutable = Addr::to_string()` and operate on that `String` instance.",
|
|
603
|
+
type: 'string',
|
|
604
|
+
},
|
|
605
|
+
Attribute: {
|
|
606
|
+
type: 'object',
|
|
607
|
+
required: ['key', 'value'],
|
|
608
|
+
properties: {
|
|
609
|
+
key: {
|
|
610
|
+
type: 'string',
|
|
611
|
+
},
|
|
612
|
+
value: {
|
|
613
|
+
$ref: '#/definitions/Binary',
|
|
614
|
+
},
|
|
615
|
+
},
|
|
616
|
+
additionalProperties: false,
|
|
617
|
+
},
|
|
618
|
+
Binary: {
|
|
619
|
+
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>. See also <https://github.com/CosmWasm/cosmwasm/blob/main/docs/MESSAGE_TYPES.md>.',
|
|
620
|
+
type: 'string',
|
|
621
|
+
},
|
|
622
|
+
CollectionInfo: {
|
|
623
|
+
type: 'object',
|
|
624
|
+
required: ['name', 'symbol', 'updated_at'],
|
|
625
|
+
properties: {
|
|
626
|
+
name: {
|
|
627
|
+
type: 'string',
|
|
628
|
+
},
|
|
629
|
+
symbol: {
|
|
630
|
+
type: 'string',
|
|
631
|
+
},
|
|
632
|
+
updated_at: {
|
|
633
|
+
$ref: '#/definitions/Timestamp',
|
|
634
|
+
},
|
|
635
|
+
},
|
|
636
|
+
additionalProperties: false,
|
|
637
|
+
},
|
|
638
|
+
ContractInfoResponse: {
|
|
639
|
+
type: 'object',
|
|
640
|
+
required: ['code_id', 'creator', 'pinned'],
|
|
641
|
+
properties: {
|
|
642
|
+
admin: {
|
|
643
|
+
description: 'admin who can run migrations (if any)',
|
|
644
|
+
anyOf: [
|
|
645
|
+
{
|
|
646
|
+
$ref: '#/definitions/Addr',
|
|
647
|
+
},
|
|
648
|
+
{
|
|
649
|
+
type: 'null',
|
|
650
|
+
},
|
|
651
|
+
],
|
|
652
|
+
},
|
|
653
|
+
code_id: {
|
|
654
|
+
type: 'integer',
|
|
655
|
+
format: 'uint64',
|
|
656
|
+
minimum: 0,
|
|
657
|
+
},
|
|
658
|
+
creator: {
|
|
659
|
+
description: 'address that instantiated this contract',
|
|
660
|
+
allOf: [
|
|
661
|
+
{
|
|
662
|
+
$ref: '#/definitions/Addr',
|
|
663
|
+
},
|
|
664
|
+
],
|
|
665
|
+
},
|
|
666
|
+
ibc_port: {
|
|
667
|
+
description: 'set if this contract has bound an IBC port',
|
|
668
|
+
type: ['string', 'null'],
|
|
669
|
+
},
|
|
670
|
+
pinned: {
|
|
671
|
+
description: 'if set, the contract is pinned to the cache, and thus uses less gas when called',
|
|
672
|
+
type: 'boolean',
|
|
673
|
+
},
|
|
674
|
+
},
|
|
675
|
+
additionalProperties: false,
|
|
676
|
+
},
|
|
677
|
+
Timestamp: {
|
|
678
|
+
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); ```',
|
|
679
|
+
allOf: [
|
|
680
|
+
{
|
|
681
|
+
$ref: '#/definitions/Uint64',
|
|
682
|
+
},
|
|
683
|
+
],
|
|
684
|
+
},
|
|
685
|
+
Uint64: {
|
|
686
|
+
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); ```',
|
|
687
|
+
type: 'string',
|
|
688
|
+
},
|
|
689
|
+
},
|
|
690
|
+
},
|
|
691
|
+
get_collection_extension: {
|
|
692
|
+
type: 'null',
|
|
693
|
+
},
|
|
694
|
+
get_collection_extension_attributes: {
|
|
695
|
+
type: 'array',
|
|
696
|
+
items: {
|
|
697
|
+
$ref: '#/definitions/Attribute',
|
|
698
|
+
},
|
|
699
|
+
definitions: {
|
|
700
|
+
Attribute: {
|
|
701
|
+
type: 'object',
|
|
702
|
+
required: ['key', 'value'],
|
|
703
|
+
properties: {
|
|
704
|
+
key: {
|
|
705
|
+
type: 'string',
|
|
706
|
+
},
|
|
707
|
+
value: {
|
|
708
|
+
$ref: '#/definitions/Binary',
|
|
709
|
+
},
|
|
710
|
+
},
|
|
711
|
+
additionalProperties: false,
|
|
712
|
+
},
|
|
713
|
+
Binary: {
|
|
714
|
+
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>. See also <https://github.com/CosmWasm/cosmwasm/blob/main/docs/MESSAGE_TYPES.md>.',
|
|
715
|
+
type: 'string',
|
|
716
|
+
},
|
|
717
|
+
},
|
|
718
|
+
},
|
|
719
|
+
get_collection_info_and_extension: {
|
|
720
|
+
description: 'This is a wrapper around CollectionInfo that includes the extension.',
|
|
721
|
+
type: 'object',
|
|
722
|
+
required: ['name', 'symbol', 'updated_at'],
|
|
723
|
+
properties: {
|
|
724
|
+
extension: {
|
|
725
|
+
anyOf: [
|
|
726
|
+
{
|
|
727
|
+
$ref: '#/definitions/CollectionExtension_for_RoyaltyInfo',
|
|
728
|
+
},
|
|
729
|
+
{
|
|
730
|
+
type: 'null',
|
|
731
|
+
},
|
|
732
|
+
],
|
|
733
|
+
},
|
|
734
|
+
name: {
|
|
735
|
+
type: 'string',
|
|
736
|
+
},
|
|
737
|
+
symbol: {
|
|
738
|
+
type: 'string',
|
|
739
|
+
},
|
|
740
|
+
updated_at: {
|
|
741
|
+
$ref: '#/definitions/Timestamp',
|
|
742
|
+
},
|
|
743
|
+
},
|
|
744
|
+
additionalProperties: false,
|
|
745
|
+
definitions: {
|
|
746
|
+
Addr: {
|
|
747
|
+
description: "A human readable address.\n\nIn Cosmos, this is typically bech32 encoded. But for multi-chain smart contracts no assumptions should be made other than being UTF-8 encoded and of reasonable length.\n\nThis type represents a validated address. It can be created in the following ways 1. Use `Addr::unchecked(input)` 2. Use `let checked: Addr = deps.api.addr_validate(input)?` 3. Use `let checked: Addr = deps.api.addr_humanize(canonical_addr)?` 4. Deserialize from JSON. This must only be done from JSON that was validated before such as a contract's state. `Addr` must not be used in messages sent by the user because this would result in unvalidated instances.\n\nThis type is immutable. If you really need to mutate it (Really? Are you sure?), create a mutable copy using `let mut mutable = Addr::to_string()` and operate on that `String` instance.",
|
|
748
|
+
type: 'string',
|
|
749
|
+
},
|
|
750
|
+
CollectionExtension_for_RoyaltyInfo: {
|
|
751
|
+
type: 'object',
|
|
752
|
+
required: ['description', 'image'],
|
|
753
|
+
properties: {
|
|
754
|
+
banner_url: {
|
|
755
|
+
type: ['string', 'null'],
|
|
756
|
+
},
|
|
757
|
+
description: {
|
|
758
|
+
type: 'string',
|
|
759
|
+
},
|
|
760
|
+
explicit_content: {
|
|
761
|
+
type: ['boolean', 'null'],
|
|
762
|
+
},
|
|
763
|
+
external_link: {
|
|
764
|
+
type: ['string', 'null'],
|
|
765
|
+
},
|
|
766
|
+
image: {
|
|
767
|
+
type: 'string',
|
|
768
|
+
},
|
|
769
|
+
royalty_info: {
|
|
770
|
+
anyOf: [
|
|
771
|
+
{
|
|
772
|
+
$ref: '#/definitions/RoyaltyInfo',
|
|
773
|
+
},
|
|
774
|
+
{
|
|
775
|
+
type: 'null',
|
|
776
|
+
},
|
|
777
|
+
],
|
|
778
|
+
},
|
|
779
|
+
start_trading_time: {
|
|
780
|
+
anyOf: [
|
|
781
|
+
{
|
|
782
|
+
$ref: '#/definitions/Timestamp',
|
|
783
|
+
},
|
|
784
|
+
{
|
|
785
|
+
type: 'null',
|
|
786
|
+
},
|
|
787
|
+
],
|
|
788
|
+
},
|
|
789
|
+
},
|
|
790
|
+
additionalProperties: false,
|
|
791
|
+
},
|
|
792
|
+
Decimal: {
|
|
793
|
+
description: 'A fixed-point decimal value with 18 fractional digits, i.e. Decimal(1_000_000_000_000_000_000) == 1.0\n\nThe greatest possible value that can be represented is 340282366920938463463.374607431768211455 (which is (2^128 - 1) / 10^18)',
|
|
794
|
+
type: 'string',
|
|
795
|
+
},
|
|
796
|
+
RoyaltyInfo: {
|
|
797
|
+
type: 'object',
|
|
798
|
+
required: ['payment_address', 'share'],
|
|
799
|
+
properties: {
|
|
800
|
+
payment_address: {
|
|
801
|
+
$ref: '#/definitions/Addr',
|
|
802
|
+
},
|
|
803
|
+
share: {
|
|
804
|
+
$ref: '#/definitions/Decimal',
|
|
805
|
+
},
|
|
806
|
+
},
|
|
807
|
+
additionalProperties: false,
|
|
808
|
+
},
|
|
809
|
+
Timestamp: {
|
|
810
|
+
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); ```',
|
|
811
|
+
allOf: [
|
|
812
|
+
{
|
|
813
|
+
$ref: '#/definitions/Uint64',
|
|
814
|
+
},
|
|
815
|
+
],
|
|
816
|
+
},
|
|
817
|
+
Uint64: {
|
|
818
|
+
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); ```',
|
|
819
|
+
type: 'string',
|
|
820
|
+
},
|
|
821
|
+
},
|
|
822
|
+
},
|
|
823
|
+
get_config: {
|
|
824
|
+
description: 'This is a wrapper around CollectionInfo that includes the extension.',
|
|
825
|
+
type: 'object',
|
|
826
|
+
required: [
|
|
827
|
+
'collection_info',
|
|
828
|
+
'contract_info',
|
|
829
|
+
'creator_ownership',
|
|
830
|
+
'minter_ownership',
|
|
831
|
+
'num_tokens',
|
|
832
|
+
],
|
|
833
|
+
properties: {
|
|
834
|
+
collection_extension: {
|
|
835
|
+
anyOf: [
|
|
836
|
+
{
|
|
837
|
+
$ref: '#/definitions/CollectionExtension_for_RoyaltyInfo',
|
|
838
|
+
},
|
|
839
|
+
{
|
|
840
|
+
type: 'null',
|
|
841
|
+
},
|
|
842
|
+
],
|
|
843
|
+
},
|
|
844
|
+
collection_info: {
|
|
845
|
+
$ref: '#/definitions/CollectionInfo',
|
|
846
|
+
},
|
|
847
|
+
contract_info: {
|
|
848
|
+
$ref: '#/definitions/ContractInfoResponse',
|
|
849
|
+
},
|
|
850
|
+
creator_ownership: {
|
|
851
|
+
$ref: '#/definitions/Ownership_for_Addr',
|
|
852
|
+
},
|
|
853
|
+
minter_ownership: {
|
|
854
|
+
$ref: '#/definitions/Ownership_for_Addr',
|
|
855
|
+
},
|
|
856
|
+
num_tokens: {
|
|
857
|
+
type: 'integer',
|
|
858
|
+
format: 'uint64',
|
|
859
|
+
minimum: 0,
|
|
860
|
+
},
|
|
861
|
+
withdraw_address: {
|
|
862
|
+
type: ['string', 'null'],
|
|
863
|
+
},
|
|
864
|
+
},
|
|
865
|
+
additionalProperties: false,
|
|
866
|
+
definitions: {
|
|
867
|
+
Addr: {
|
|
868
|
+
description: "A human readable address.\n\nIn Cosmos, this is typically bech32 encoded. But for multi-chain smart contracts no assumptions should be made other than being UTF-8 encoded and of reasonable length.\n\nThis type represents a validated address. It can be created in the following ways 1. Use `Addr::unchecked(input)` 2. Use `let checked: Addr = deps.api.addr_validate(input)?` 3. Use `let checked: Addr = deps.api.addr_humanize(canonical_addr)?` 4. Deserialize from JSON. This must only be done from JSON that was validated before such as a contract's state. `Addr` must not be used in messages sent by the user because this would result in unvalidated instances.\n\nThis type is immutable. If you really need to mutate it (Really? Are you sure?), create a mutable copy using `let mut mutable = Addr::to_string()` and operate on that `String` instance.",
|
|
869
|
+
type: 'string',
|
|
870
|
+
},
|
|
871
|
+
CollectionExtension_for_RoyaltyInfo: {
|
|
872
|
+
type: 'object',
|
|
873
|
+
required: ['description', 'image'],
|
|
874
|
+
properties: {
|
|
875
|
+
banner_url: {
|
|
876
|
+
type: ['string', 'null'],
|
|
877
|
+
},
|
|
878
|
+
description: {
|
|
879
|
+
type: 'string',
|
|
880
|
+
},
|
|
881
|
+
explicit_content: {
|
|
882
|
+
type: ['boolean', 'null'],
|
|
883
|
+
},
|
|
884
|
+
external_link: {
|
|
885
|
+
type: ['string', 'null'],
|
|
886
|
+
},
|
|
887
|
+
image: {
|
|
888
|
+
type: 'string',
|
|
889
|
+
},
|
|
890
|
+
royalty_info: {
|
|
891
|
+
anyOf: [
|
|
892
|
+
{
|
|
893
|
+
$ref: '#/definitions/RoyaltyInfo',
|
|
894
|
+
},
|
|
895
|
+
{
|
|
896
|
+
type: 'null',
|
|
897
|
+
},
|
|
898
|
+
],
|
|
899
|
+
},
|
|
900
|
+
start_trading_time: {
|
|
901
|
+
anyOf: [
|
|
902
|
+
{
|
|
903
|
+
$ref: '#/definitions/Timestamp',
|
|
904
|
+
},
|
|
905
|
+
{
|
|
906
|
+
type: 'null',
|
|
907
|
+
},
|
|
908
|
+
],
|
|
909
|
+
},
|
|
910
|
+
},
|
|
911
|
+
additionalProperties: false,
|
|
912
|
+
},
|
|
913
|
+
CollectionInfo: {
|
|
914
|
+
type: 'object',
|
|
915
|
+
required: ['name', 'symbol', 'updated_at'],
|
|
916
|
+
properties: {
|
|
917
|
+
name: {
|
|
918
|
+
type: 'string',
|
|
919
|
+
},
|
|
920
|
+
symbol: {
|
|
921
|
+
type: 'string',
|
|
922
|
+
},
|
|
923
|
+
updated_at: {
|
|
924
|
+
$ref: '#/definitions/Timestamp',
|
|
925
|
+
},
|
|
926
|
+
},
|
|
927
|
+
additionalProperties: false,
|
|
928
|
+
},
|
|
929
|
+
ContractInfoResponse: {
|
|
930
|
+
type: 'object',
|
|
931
|
+
required: ['code_id', 'creator', 'pinned'],
|
|
932
|
+
properties: {
|
|
933
|
+
admin: {
|
|
934
|
+
description: 'admin who can run migrations (if any)',
|
|
935
|
+
anyOf: [
|
|
936
|
+
{
|
|
937
|
+
$ref: '#/definitions/Addr',
|
|
938
|
+
},
|
|
939
|
+
{
|
|
940
|
+
type: 'null',
|
|
941
|
+
},
|
|
942
|
+
],
|
|
943
|
+
},
|
|
944
|
+
code_id: {
|
|
945
|
+
type: 'integer',
|
|
946
|
+
format: 'uint64',
|
|
947
|
+
minimum: 0,
|
|
948
|
+
},
|
|
949
|
+
creator: {
|
|
950
|
+
description: 'address that instantiated this contract',
|
|
951
|
+
allOf: [
|
|
952
|
+
{
|
|
953
|
+
$ref: '#/definitions/Addr',
|
|
954
|
+
},
|
|
955
|
+
],
|
|
956
|
+
},
|
|
957
|
+
ibc_port: {
|
|
958
|
+
description: 'set if this contract has bound an IBC port',
|
|
959
|
+
type: ['string', 'null'],
|
|
960
|
+
},
|
|
961
|
+
pinned: {
|
|
962
|
+
description: 'if set, the contract is pinned to the cache, and thus uses less gas when called',
|
|
963
|
+
type: 'boolean',
|
|
964
|
+
},
|
|
965
|
+
},
|
|
966
|
+
additionalProperties: false,
|
|
967
|
+
},
|
|
968
|
+
Decimal: {
|
|
969
|
+
description: 'A fixed-point decimal value with 18 fractional digits, i.e. Decimal(1_000_000_000_000_000_000) == 1.0\n\nThe greatest possible value that can be represented is 340282366920938463463.374607431768211455 (which is (2^128 - 1) / 10^18)',
|
|
970
|
+
type: 'string',
|
|
971
|
+
},
|
|
972
|
+
Expiration: {
|
|
973
|
+
description: 'Expiration represents a point in time when some event happens. It can compare with a BlockInfo and will return is_expired() == true once the condition is hit (and for every block in the future)',
|
|
974
|
+
oneOf: [
|
|
975
|
+
{
|
|
976
|
+
description: 'AtHeight will expire when `env.block.height` >= height',
|
|
977
|
+
type: 'object',
|
|
978
|
+
required: ['at_height'],
|
|
979
|
+
properties: {
|
|
980
|
+
at_height: {
|
|
981
|
+
type: 'integer',
|
|
982
|
+
format: 'uint64',
|
|
983
|
+
minimum: 0,
|
|
984
|
+
},
|
|
985
|
+
},
|
|
986
|
+
additionalProperties: false,
|
|
987
|
+
},
|
|
988
|
+
{
|
|
989
|
+
description: 'AtTime will expire when `env.block.time` >= time',
|
|
990
|
+
type: 'object',
|
|
991
|
+
required: ['at_time'],
|
|
992
|
+
properties: {
|
|
993
|
+
at_time: {
|
|
994
|
+
$ref: '#/definitions/Timestamp',
|
|
995
|
+
},
|
|
996
|
+
},
|
|
997
|
+
additionalProperties: false,
|
|
998
|
+
},
|
|
999
|
+
{
|
|
1000
|
+
description: 'Never will never expire. Used to express the empty variant',
|
|
1001
|
+
type: 'object',
|
|
1002
|
+
required: ['never'],
|
|
1003
|
+
properties: {
|
|
1004
|
+
never: {
|
|
1005
|
+
type: 'object',
|
|
1006
|
+
additionalProperties: false,
|
|
1007
|
+
},
|
|
1008
|
+
},
|
|
1009
|
+
additionalProperties: false,
|
|
1010
|
+
},
|
|
1011
|
+
],
|
|
1012
|
+
},
|
|
1013
|
+
Ownership_for_Addr: {
|
|
1014
|
+
description: "The contract's ownership info",
|
|
1015
|
+
type: 'object',
|
|
1016
|
+
properties: {
|
|
1017
|
+
owner: {
|
|
1018
|
+
description: "The contract's current owner. `None` if the ownership has been renounced.",
|
|
1019
|
+
anyOf: [
|
|
1020
|
+
{
|
|
1021
|
+
$ref: '#/definitions/Addr',
|
|
1022
|
+
},
|
|
1023
|
+
{
|
|
1024
|
+
type: 'null',
|
|
1025
|
+
},
|
|
1026
|
+
],
|
|
1027
|
+
},
|
|
1028
|
+
pending_expiry: {
|
|
1029
|
+
description: "The deadline for the pending owner to accept the ownership. `None` if there isn't a pending ownership transfer, or if a transfer exists and it doesn't have a deadline.",
|
|
1030
|
+
anyOf: [
|
|
1031
|
+
{
|
|
1032
|
+
$ref: '#/definitions/Expiration',
|
|
1033
|
+
},
|
|
1034
|
+
{
|
|
1035
|
+
type: 'null',
|
|
1036
|
+
},
|
|
1037
|
+
],
|
|
1038
|
+
},
|
|
1039
|
+
pending_owner: {
|
|
1040
|
+
description: "The account who has been proposed to take over the ownership. `None` if there isn't a pending ownership transfer.",
|
|
1041
|
+
anyOf: [
|
|
1042
|
+
{
|
|
1043
|
+
$ref: '#/definitions/Addr',
|
|
1044
|
+
},
|
|
1045
|
+
{
|
|
1046
|
+
type: 'null',
|
|
1047
|
+
},
|
|
1048
|
+
],
|
|
1049
|
+
},
|
|
1050
|
+
},
|
|
1051
|
+
additionalProperties: false,
|
|
1052
|
+
},
|
|
1053
|
+
RoyaltyInfo: {
|
|
1054
|
+
type: 'object',
|
|
1055
|
+
required: ['payment_address', 'share'],
|
|
1056
|
+
properties: {
|
|
1057
|
+
payment_address: {
|
|
1058
|
+
$ref: '#/definitions/Addr',
|
|
1059
|
+
},
|
|
1060
|
+
share: {
|
|
1061
|
+
$ref: '#/definitions/Decimal',
|
|
1062
|
+
},
|
|
1063
|
+
},
|
|
1064
|
+
additionalProperties: false,
|
|
1065
|
+
},
|
|
1066
|
+
Timestamp: {
|
|
1067
|
+
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); ```',
|
|
1068
|
+
allOf: [
|
|
1069
|
+
{
|
|
1070
|
+
$ref: '#/definitions/Uint64',
|
|
1071
|
+
},
|
|
1072
|
+
],
|
|
1073
|
+
},
|
|
1074
|
+
Uint64: {
|
|
1075
|
+
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); ```',
|
|
1076
|
+
type: 'string',
|
|
1077
|
+
},
|
|
1078
|
+
},
|
|
1079
|
+
},
|
|
1080
|
+
get_creator_ownership: {
|
|
1081
|
+
description: "The contract's ownership info",
|
|
1082
|
+
type: 'object',
|
|
1083
|
+
properties: {
|
|
1084
|
+
owner: {
|
|
1085
|
+
description: "The contract's current owner. `None` if the ownership has been renounced.",
|
|
1086
|
+
anyOf: [
|
|
1087
|
+
{
|
|
1088
|
+
$ref: '#/definitions/Addr',
|
|
1089
|
+
},
|
|
1090
|
+
{
|
|
1091
|
+
type: 'null',
|
|
1092
|
+
},
|
|
1093
|
+
],
|
|
1094
|
+
},
|
|
1095
|
+
pending_expiry: {
|
|
1096
|
+
description: "The deadline for the pending owner to accept the ownership. `None` if there isn't a pending ownership transfer, or if a transfer exists and it doesn't have a deadline.",
|
|
1097
|
+
anyOf: [
|
|
1098
|
+
{
|
|
1099
|
+
$ref: '#/definitions/Expiration',
|
|
1100
|
+
},
|
|
1101
|
+
{
|
|
1102
|
+
type: 'null',
|
|
1103
|
+
},
|
|
1104
|
+
],
|
|
1105
|
+
},
|
|
1106
|
+
pending_owner: {
|
|
1107
|
+
description: "The account who has been proposed to take over the ownership. `None` if there isn't a pending ownership transfer.",
|
|
1108
|
+
anyOf: [
|
|
1109
|
+
{
|
|
1110
|
+
$ref: '#/definitions/Addr',
|
|
1111
|
+
},
|
|
1112
|
+
{
|
|
1113
|
+
type: 'null',
|
|
1114
|
+
},
|
|
1115
|
+
],
|
|
1116
|
+
},
|
|
1117
|
+
},
|
|
1118
|
+
additionalProperties: false,
|
|
1119
|
+
definitions: {
|
|
1120
|
+
Addr: {
|
|
1121
|
+
description: "A human readable address.\n\nIn Cosmos, this is typically bech32 encoded. But for multi-chain smart contracts no assumptions should be made other than being UTF-8 encoded and of reasonable length.\n\nThis type represents a validated address. It can be created in the following ways 1. Use `Addr::unchecked(input)` 2. Use `let checked: Addr = deps.api.addr_validate(input)?` 3. Use `let checked: Addr = deps.api.addr_humanize(canonical_addr)?` 4. Deserialize from JSON. This must only be done from JSON that was validated before such as a contract's state. `Addr` must not be used in messages sent by the user because this would result in unvalidated instances.\n\nThis type is immutable. If you really need to mutate it (Really? Are you sure?), create a mutable copy using `let mut mutable = Addr::to_string()` and operate on that `String` instance.",
|
|
1122
|
+
type: 'string',
|
|
1123
|
+
},
|
|
1124
|
+
Expiration: {
|
|
1125
|
+
description: 'Expiration represents a point in time when some event happens. It can compare with a BlockInfo and will return is_expired() == true once the condition is hit (and for every block in the future)',
|
|
1126
|
+
oneOf: [
|
|
1127
|
+
{
|
|
1128
|
+
description: 'AtHeight will expire when `env.block.height` >= height',
|
|
1129
|
+
type: 'object',
|
|
1130
|
+
required: ['at_height'],
|
|
1131
|
+
properties: {
|
|
1132
|
+
at_height: {
|
|
1133
|
+
type: 'integer',
|
|
1134
|
+
format: 'uint64',
|
|
1135
|
+
minimum: 0,
|
|
1136
|
+
},
|
|
1137
|
+
},
|
|
1138
|
+
additionalProperties: false,
|
|
1139
|
+
},
|
|
1140
|
+
{
|
|
1141
|
+
description: 'AtTime will expire when `env.block.time` >= time',
|
|
1142
|
+
type: 'object',
|
|
1143
|
+
required: ['at_time'],
|
|
1144
|
+
properties: {
|
|
1145
|
+
at_time: {
|
|
1146
|
+
$ref: '#/definitions/Timestamp',
|
|
1147
|
+
},
|
|
1148
|
+
},
|
|
1149
|
+
additionalProperties: false,
|
|
1150
|
+
},
|
|
1151
|
+
{
|
|
1152
|
+
description: 'Never will never expire. Used to express the empty variant',
|
|
1153
|
+
type: 'object',
|
|
1154
|
+
required: ['never'],
|
|
1155
|
+
properties: {
|
|
1156
|
+
never: {
|
|
1157
|
+
type: 'object',
|
|
1158
|
+
additionalProperties: false,
|
|
1159
|
+
},
|
|
1160
|
+
},
|
|
1161
|
+
additionalProperties: false,
|
|
1162
|
+
},
|
|
1163
|
+
],
|
|
1164
|
+
},
|
|
1165
|
+
Timestamp: {
|
|
1166
|
+
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); ```',
|
|
1167
|
+
allOf: [
|
|
1168
|
+
{
|
|
1169
|
+
$ref: '#/definitions/Uint64',
|
|
1170
|
+
},
|
|
1171
|
+
],
|
|
1172
|
+
},
|
|
1173
|
+
Uint64: {
|
|
1174
|
+
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); ```',
|
|
1175
|
+
type: 'string',
|
|
1176
|
+
},
|
|
1177
|
+
},
|
|
1178
|
+
},
|
|
1179
|
+
get_minter_ownership: {
|
|
1180
|
+
description: "The contract's ownership info",
|
|
1181
|
+
type: 'object',
|
|
1182
|
+
properties: {
|
|
1183
|
+
owner: {
|
|
1184
|
+
description: "The contract's current owner. `None` if the ownership has been renounced.",
|
|
1185
|
+
anyOf: [
|
|
1186
|
+
{
|
|
1187
|
+
$ref: '#/definitions/Addr',
|
|
1188
|
+
},
|
|
1189
|
+
{
|
|
1190
|
+
type: 'null',
|
|
1191
|
+
},
|
|
1192
|
+
],
|
|
1193
|
+
},
|
|
1194
|
+
pending_expiry: {
|
|
1195
|
+
description: "The deadline for the pending owner to accept the ownership. `None` if there isn't a pending ownership transfer, or if a transfer exists and it doesn't have a deadline.",
|
|
1196
|
+
anyOf: [
|
|
1197
|
+
{
|
|
1198
|
+
$ref: '#/definitions/Expiration',
|
|
1199
|
+
},
|
|
1200
|
+
{
|
|
1201
|
+
type: 'null',
|
|
1202
|
+
},
|
|
1203
|
+
],
|
|
1204
|
+
},
|
|
1205
|
+
pending_owner: {
|
|
1206
|
+
description: "The account who has been proposed to take over the ownership. `None` if there isn't a pending ownership transfer.",
|
|
1207
|
+
anyOf: [
|
|
1208
|
+
{
|
|
1209
|
+
$ref: '#/definitions/Addr',
|
|
1210
|
+
},
|
|
1211
|
+
{
|
|
1212
|
+
type: 'null',
|
|
1213
|
+
},
|
|
1214
|
+
],
|
|
1215
|
+
},
|
|
1216
|
+
},
|
|
1217
|
+
additionalProperties: false,
|
|
1218
|
+
definitions: {
|
|
1219
|
+
Addr: {
|
|
1220
|
+
description: "A human readable address.\n\nIn Cosmos, this is typically bech32 encoded. But for multi-chain smart contracts no assumptions should be made other than being UTF-8 encoded and of reasonable length.\n\nThis type represents a validated address. It can be created in the following ways 1. Use `Addr::unchecked(input)` 2. Use `let checked: Addr = deps.api.addr_validate(input)?` 3. Use `let checked: Addr = deps.api.addr_humanize(canonical_addr)?` 4. Deserialize from JSON. This must only be done from JSON that was validated before such as a contract's state. `Addr` must not be used in messages sent by the user because this would result in unvalidated instances.\n\nThis type is immutable. If you really need to mutate it (Really? Are you sure?), create a mutable copy using `let mut mutable = Addr::to_string()` and operate on that `String` instance.",
|
|
1221
|
+
type: 'string',
|
|
1222
|
+
},
|
|
1223
|
+
Expiration: {
|
|
1224
|
+
description: 'Expiration represents a point in time when some event happens. It can compare with a BlockInfo and will return is_expired() == true once the condition is hit (and for every block in the future)',
|
|
1225
|
+
oneOf: [
|
|
1226
|
+
{
|
|
1227
|
+
description: 'AtHeight will expire when `env.block.height` >= height',
|
|
1228
|
+
type: 'object',
|
|
1229
|
+
required: ['at_height'],
|
|
1230
|
+
properties: {
|
|
1231
|
+
at_height: {
|
|
1232
|
+
type: 'integer',
|
|
1233
|
+
format: 'uint64',
|
|
1234
|
+
minimum: 0,
|
|
1235
|
+
},
|
|
1236
|
+
},
|
|
1237
|
+
additionalProperties: false,
|
|
1238
|
+
},
|
|
1239
|
+
{
|
|
1240
|
+
description: 'AtTime will expire when `env.block.time` >= time',
|
|
1241
|
+
type: 'object',
|
|
1242
|
+
required: ['at_time'],
|
|
1243
|
+
properties: {
|
|
1244
|
+
at_time: {
|
|
1245
|
+
$ref: '#/definitions/Timestamp',
|
|
1246
|
+
},
|
|
1247
|
+
},
|
|
1248
|
+
additionalProperties: false,
|
|
1249
|
+
},
|
|
1250
|
+
{
|
|
1251
|
+
description: 'Never will never expire. Used to express the empty variant',
|
|
1252
|
+
type: 'object',
|
|
1253
|
+
required: ['never'],
|
|
1254
|
+
properties: {
|
|
1255
|
+
never: {
|
|
1256
|
+
type: 'object',
|
|
1257
|
+
additionalProperties: false,
|
|
1258
|
+
},
|
|
1259
|
+
},
|
|
1260
|
+
additionalProperties: false,
|
|
1261
|
+
},
|
|
1262
|
+
],
|
|
1263
|
+
},
|
|
1264
|
+
Timestamp: {
|
|
1265
|
+
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); ```',
|
|
1266
|
+
allOf: [
|
|
1267
|
+
{
|
|
1268
|
+
$ref: '#/definitions/Uint64',
|
|
1269
|
+
},
|
|
1270
|
+
],
|
|
1271
|
+
},
|
|
1272
|
+
Uint64: {
|
|
1273
|
+
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); ```',
|
|
1274
|
+
type: 'string',
|
|
1275
|
+
},
|
|
1276
|
+
},
|
|
1277
|
+
},
|
|
1278
|
+
get_nft_by_extension: {
|
|
1279
|
+
anyOf: [
|
|
1280
|
+
{
|
|
1281
|
+
$ref: '#/definitions/NftInfoResponse_for_Nullable_Empty',
|
|
1282
|
+
},
|
|
1283
|
+
{
|
|
1284
|
+
type: 'null',
|
|
1285
|
+
},
|
|
1286
|
+
],
|
|
1287
|
+
definitions: {
|
|
1288
|
+
Empty: {
|
|
1289
|
+
description: "An empty struct that serves as a placeholder in different places, such as contracts that don't set a custom message.\n\nIt is designed to be expressible in correct JSON and JSON Schema but contains no meaningful data. Previously we used enums without cases, but those cannot represented as valid JSON Schema (https://github.com/CosmWasm/cosmwasm/issues/451)",
|
|
1290
|
+
type: 'object',
|
|
1291
|
+
additionalProperties: false,
|
|
1292
|
+
},
|
|
1293
|
+
NftInfoResponse_for_Nullable_Empty: {
|
|
1294
|
+
type: 'object',
|
|
1295
|
+
properties: {
|
|
1296
|
+
extension: {
|
|
1297
|
+
description: 'You can add any custom metadata here when you extend cw721-base',
|
|
1298
|
+
anyOf: [
|
|
1299
|
+
{
|
|
1300
|
+
$ref: '#/definitions/Empty',
|
|
1301
|
+
},
|
|
1302
|
+
{
|
|
1303
|
+
type: 'null',
|
|
1304
|
+
},
|
|
1305
|
+
],
|
|
1306
|
+
},
|
|
1307
|
+
token_uri: {
|
|
1308
|
+
description: 'Universal resource identifier for this NFT Should point to a JSON file that conforms to the ERC721 Metadata JSON Schema',
|
|
1309
|
+
type: ['string', 'null'],
|
|
1310
|
+
},
|
|
1311
|
+
},
|
|
1312
|
+
additionalProperties: false,
|
|
1313
|
+
},
|
|
1314
|
+
},
|
|
1315
|
+
},
|
|
1316
|
+
get_withdraw_address: {
|
|
1317
|
+
type: ['string', 'null'],
|
|
1318
|
+
},
|
|
1319
|
+
minter: {
|
|
1320
|
+
description: 'Deprecated: use Cw721QueryMsg::GetMinterOwnership instead! Shows who can mint these tokens.',
|
|
1321
|
+
type: 'object',
|
|
1322
|
+
properties: {
|
|
1323
|
+
minter: {
|
|
1324
|
+
type: ['string', 'null'],
|
|
1325
|
+
},
|
|
1326
|
+
},
|
|
1327
|
+
additionalProperties: false,
|
|
1328
|
+
},
|
|
1329
|
+
nft_info: {
|
|
1330
|
+
type: 'object',
|
|
1331
|
+
properties: {
|
|
1332
|
+
extension: {
|
|
1333
|
+
description: 'You can add any custom metadata here when you extend cw721-base',
|
|
1334
|
+
anyOf: [
|
|
1335
|
+
{
|
|
1336
|
+
$ref: '#/definitions/Empty',
|
|
1337
|
+
},
|
|
1338
|
+
{
|
|
1339
|
+
type: 'null',
|
|
1340
|
+
},
|
|
1341
|
+
],
|
|
1342
|
+
},
|
|
1343
|
+
token_uri: {
|
|
1344
|
+
description: 'Universal resource identifier for this NFT Should point to a JSON file that conforms to the ERC721 Metadata JSON Schema',
|
|
1345
|
+
type: ['string', 'null'],
|
|
1346
|
+
},
|
|
1347
|
+
},
|
|
1348
|
+
additionalProperties: false,
|
|
1349
|
+
definitions: {
|
|
1350
|
+
Empty: {
|
|
1351
|
+
description: "An empty struct that serves as a placeholder in different places, such as contracts that don't set a custom message.\n\nIt is designed to be expressible in correct JSON and JSON Schema but contains no meaningful data. Previously we used enums without cases, but those cannot represented as valid JSON Schema (https://github.com/CosmWasm/cosmwasm/issues/451)",
|
|
1352
|
+
type: 'object',
|
|
1353
|
+
additionalProperties: false,
|
|
1354
|
+
},
|
|
1355
|
+
},
|
|
1356
|
+
},
|
|
1357
|
+
num_tokens: {
|
|
1358
|
+
type: 'object',
|
|
1359
|
+
required: ['count'],
|
|
1360
|
+
properties: {
|
|
1361
|
+
count: {
|
|
1362
|
+
type: 'integer',
|
|
1363
|
+
format: 'uint64',
|
|
1364
|
+
minimum: 0,
|
|
1365
|
+
},
|
|
1366
|
+
},
|
|
1367
|
+
additionalProperties: false,
|
|
1368
|
+
},
|
|
1369
|
+
operator: {
|
|
1370
|
+
type: 'object',
|
|
1371
|
+
required: ['approval'],
|
|
1372
|
+
properties: {
|
|
1373
|
+
approval: {
|
|
1374
|
+
$ref: '#/definitions/Approval',
|
|
1375
|
+
},
|
|
1376
|
+
},
|
|
1377
|
+
additionalProperties: false,
|
|
1378
|
+
definitions: {
|
|
1379
|
+
Addr: {
|
|
1380
|
+
description: "A human readable address.\n\nIn Cosmos, this is typically bech32 encoded. But for multi-chain smart contracts no assumptions should be made other than being UTF-8 encoded and of reasonable length.\n\nThis type represents a validated address. It can be created in the following ways 1. Use `Addr::unchecked(input)` 2. Use `let checked: Addr = deps.api.addr_validate(input)?` 3. Use `let checked: Addr = deps.api.addr_humanize(canonical_addr)?` 4. Deserialize from JSON. This must only be done from JSON that was validated before such as a contract's state. `Addr` must not be used in messages sent by the user because this would result in unvalidated instances.\n\nThis type is immutable. If you really need to mutate it (Really? Are you sure?), create a mutable copy using `let mut mutable = Addr::to_string()` and operate on that `String` instance.",
|
|
1381
|
+
type: 'string',
|
|
1382
|
+
},
|
|
1383
|
+
Approval: {
|
|
1384
|
+
type: 'object',
|
|
1385
|
+
required: ['expires', 'spender'],
|
|
1386
|
+
properties: {
|
|
1387
|
+
expires: {
|
|
1388
|
+
description: 'When the Approval expires (maybe Expiration::never)',
|
|
1389
|
+
allOf: [
|
|
1390
|
+
{
|
|
1391
|
+
$ref: '#/definitions/Expiration',
|
|
1392
|
+
},
|
|
1393
|
+
],
|
|
1394
|
+
},
|
|
1395
|
+
spender: {
|
|
1396
|
+
description: 'Account that can transfer/send the token',
|
|
1397
|
+
allOf: [
|
|
1398
|
+
{
|
|
1399
|
+
$ref: '#/definitions/Addr',
|
|
1400
|
+
},
|
|
1401
|
+
],
|
|
1402
|
+
},
|
|
1403
|
+
},
|
|
1404
|
+
additionalProperties: false,
|
|
1405
|
+
},
|
|
1406
|
+
Expiration: {
|
|
1407
|
+
description: 'Expiration represents a point in time when some event happens. It can compare with a BlockInfo and will return is_expired() == true once the condition is hit (and for every block in the future)',
|
|
1408
|
+
oneOf: [
|
|
1409
|
+
{
|
|
1410
|
+
description: 'AtHeight will expire when `env.block.height` >= height',
|
|
1411
|
+
type: 'object',
|
|
1412
|
+
required: ['at_height'],
|
|
1413
|
+
properties: {
|
|
1414
|
+
at_height: {
|
|
1415
|
+
type: 'integer',
|
|
1416
|
+
format: 'uint64',
|
|
1417
|
+
minimum: 0,
|
|
1418
|
+
},
|
|
1419
|
+
},
|
|
1420
|
+
additionalProperties: false,
|
|
1421
|
+
},
|
|
1422
|
+
{
|
|
1423
|
+
description: 'AtTime will expire when `env.block.time` >= time',
|
|
1424
|
+
type: 'object',
|
|
1425
|
+
required: ['at_time'],
|
|
1426
|
+
properties: {
|
|
1427
|
+
at_time: {
|
|
1428
|
+
$ref: '#/definitions/Timestamp',
|
|
1429
|
+
},
|
|
1430
|
+
},
|
|
1431
|
+
additionalProperties: false,
|
|
1432
|
+
},
|
|
1433
|
+
{
|
|
1434
|
+
description: 'Never will never expire. Used to express the empty variant',
|
|
1435
|
+
type: 'object',
|
|
1436
|
+
required: ['never'],
|
|
1437
|
+
properties: {
|
|
1438
|
+
never: {
|
|
1439
|
+
type: 'object',
|
|
1440
|
+
additionalProperties: false,
|
|
1441
|
+
},
|
|
1442
|
+
},
|
|
1443
|
+
additionalProperties: false,
|
|
1444
|
+
},
|
|
1445
|
+
],
|
|
1446
|
+
},
|
|
1447
|
+
Timestamp: {
|
|
1448
|
+
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); ```',
|
|
1449
|
+
allOf: [
|
|
1450
|
+
{
|
|
1451
|
+
$ref: '#/definitions/Uint64',
|
|
1452
|
+
},
|
|
1453
|
+
],
|
|
1454
|
+
},
|
|
1455
|
+
Uint64: {
|
|
1456
|
+
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); ```',
|
|
1457
|
+
type: 'string',
|
|
1458
|
+
},
|
|
1459
|
+
},
|
|
1460
|
+
},
|
|
1461
|
+
owner_of: {
|
|
1462
|
+
type: 'object',
|
|
1463
|
+
required: ['approvals', 'owner'],
|
|
1464
|
+
properties: {
|
|
1465
|
+
approvals: {
|
|
1466
|
+
description: 'If set this address is approved to transfer/send the token as well',
|
|
1467
|
+
type: 'array',
|
|
1468
|
+
items: {
|
|
1469
|
+
$ref: '#/definitions/Approval',
|
|
1470
|
+
},
|
|
1471
|
+
},
|
|
1472
|
+
owner: {
|
|
1473
|
+
description: 'Owner of the token',
|
|
1474
|
+
type: 'string',
|
|
1475
|
+
},
|
|
1476
|
+
},
|
|
1477
|
+
additionalProperties: false,
|
|
1478
|
+
definitions: {
|
|
1479
|
+
Addr: {
|
|
1480
|
+
description: "A human readable address.\n\nIn Cosmos, this is typically bech32 encoded. But for multi-chain smart contracts no assumptions should be made other than being UTF-8 encoded and of reasonable length.\n\nThis type represents a validated address. It can be created in the following ways 1. Use `Addr::unchecked(input)` 2. Use `let checked: Addr = deps.api.addr_validate(input)?` 3. Use `let checked: Addr = deps.api.addr_humanize(canonical_addr)?` 4. Deserialize from JSON. This must only be done from JSON that was validated before such as a contract's state. `Addr` must not be used in messages sent by the user because this would result in unvalidated instances.\n\nThis type is immutable. If you really need to mutate it (Really? Are you sure?), create a mutable copy using `let mut mutable = Addr::to_string()` and operate on that `String` instance.",
|
|
1481
|
+
type: 'string',
|
|
1482
|
+
},
|
|
1483
|
+
Approval: {
|
|
1484
|
+
type: 'object',
|
|
1485
|
+
required: ['expires', 'spender'],
|
|
1486
|
+
properties: {
|
|
1487
|
+
expires: {
|
|
1488
|
+
description: 'When the Approval expires (maybe Expiration::never)',
|
|
1489
|
+
allOf: [
|
|
1490
|
+
{
|
|
1491
|
+
$ref: '#/definitions/Expiration',
|
|
1492
|
+
},
|
|
1493
|
+
],
|
|
1494
|
+
},
|
|
1495
|
+
spender: {
|
|
1496
|
+
description: 'Account that can transfer/send the token',
|
|
1497
|
+
allOf: [
|
|
1498
|
+
{
|
|
1499
|
+
$ref: '#/definitions/Addr',
|
|
1500
|
+
},
|
|
1501
|
+
],
|
|
1502
|
+
},
|
|
1503
|
+
},
|
|
1504
|
+
additionalProperties: false,
|
|
1505
|
+
},
|
|
1506
|
+
Expiration: {
|
|
1507
|
+
description: 'Expiration represents a point in time when some event happens. It can compare with a BlockInfo and will return is_expired() == true once the condition is hit (and for every block in the future)',
|
|
1508
|
+
oneOf: [
|
|
1509
|
+
{
|
|
1510
|
+
description: 'AtHeight will expire when `env.block.height` >= height',
|
|
1511
|
+
type: 'object',
|
|
1512
|
+
required: ['at_height'],
|
|
1513
|
+
properties: {
|
|
1514
|
+
at_height: {
|
|
1515
|
+
type: 'integer',
|
|
1516
|
+
format: 'uint64',
|
|
1517
|
+
minimum: 0,
|
|
1518
|
+
},
|
|
1519
|
+
},
|
|
1520
|
+
additionalProperties: false,
|
|
1521
|
+
},
|
|
1522
|
+
{
|
|
1523
|
+
description: 'AtTime will expire when `env.block.time` >= time',
|
|
1524
|
+
type: 'object',
|
|
1525
|
+
required: ['at_time'],
|
|
1526
|
+
properties: {
|
|
1527
|
+
at_time: {
|
|
1528
|
+
$ref: '#/definitions/Timestamp',
|
|
1529
|
+
},
|
|
1530
|
+
},
|
|
1531
|
+
additionalProperties: false,
|
|
1532
|
+
},
|
|
1533
|
+
{
|
|
1534
|
+
description: 'Never will never expire. Used to express the empty variant',
|
|
1535
|
+
type: 'object',
|
|
1536
|
+
required: ['never'],
|
|
1537
|
+
properties: {
|
|
1538
|
+
never: {
|
|
1539
|
+
type: 'object',
|
|
1540
|
+
additionalProperties: false,
|
|
1541
|
+
},
|
|
1542
|
+
},
|
|
1543
|
+
additionalProperties: false,
|
|
1544
|
+
},
|
|
1545
|
+
],
|
|
1546
|
+
},
|
|
1547
|
+
Timestamp: {
|
|
1548
|
+
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); ```',
|
|
1549
|
+
allOf: [
|
|
1550
|
+
{
|
|
1551
|
+
$ref: '#/definitions/Uint64',
|
|
1552
|
+
},
|
|
1553
|
+
],
|
|
1554
|
+
},
|
|
1555
|
+
Uint64: {
|
|
1556
|
+
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); ```',
|
|
1557
|
+
type: 'string',
|
|
1558
|
+
},
|
|
1559
|
+
},
|
|
1560
|
+
},
|
|
1561
|
+
ownership: {
|
|
1562
|
+
description: "The contract's ownership info",
|
|
1563
|
+
type: 'object',
|
|
1564
|
+
properties: {
|
|
1565
|
+
owner: {
|
|
1566
|
+
description: "The contract's current owner. `None` if the ownership has been renounced.",
|
|
1567
|
+
anyOf: [
|
|
1568
|
+
{
|
|
1569
|
+
$ref: '#/definitions/Addr',
|
|
1570
|
+
},
|
|
1571
|
+
{
|
|
1572
|
+
type: 'null',
|
|
1573
|
+
},
|
|
1574
|
+
],
|
|
1575
|
+
},
|
|
1576
|
+
pending_expiry: {
|
|
1577
|
+
description: "The deadline for the pending owner to accept the ownership. `None` if there isn't a pending ownership transfer, or if a transfer exists and it doesn't have a deadline.",
|
|
1578
|
+
anyOf: [
|
|
1579
|
+
{
|
|
1580
|
+
$ref: '#/definitions/Expiration',
|
|
1581
|
+
},
|
|
1582
|
+
{
|
|
1583
|
+
type: 'null',
|
|
1584
|
+
},
|
|
1585
|
+
],
|
|
1586
|
+
},
|
|
1587
|
+
pending_owner: {
|
|
1588
|
+
description: "The account who has been proposed to take over the ownership. `None` if there isn't a pending ownership transfer.",
|
|
1589
|
+
anyOf: [
|
|
1590
|
+
{
|
|
1591
|
+
$ref: '#/definitions/Addr',
|
|
1592
|
+
},
|
|
1593
|
+
{
|
|
1594
|
+
type: 'null',
|
|
1595
|
+
},
|
|
1596
|
+
],
|
|
1597
|
+
},
|
|
1598
|
+
},
|
|
1599
|
+
additionalProperties: false,
|
|
1600
|
+
definitions: {
|
|
1601
|
+
Addr: {
|
|
1602
|
+
description: "A human readable address.\n\nIn Cosmos, this is typically bech32 encoded. But for multi-chain smart contracts no assumptions should be made other than being UTF-8 encoded and of reasonable length.\n\nThis type represents a validated address. It can be created in the following ways 1. Use `Addr::unchecked(input)` 2. Use `let checked: Addr = deps.api.addr_validate(input)?` 3. Use `let checked: Addr = deps.api.addr_humanize(canonical_addr)?` 4. Deserialize from JSON. This must only be done from JSON that was validated before such as a contract's state. `Addr` must not be used in messages sent by the user because this would result in unvalidated instances.\n\nThis type is immutable. If you really need to mutate it (Really? Are you sure?), create a mutable copy using `let mut mutable = Addr::to_string()` and operate on that `String` instance.",
|
|
1603
|
+
type: 'string',
|
|
1604
|
+
},
|
|
1605
|
+
Expiration: {
|
|
1606
|
+
description: 'Expiration represents a point in time when some event happens. It can compare with a BlockInfo and will return is_expired() == true once the condition is hit (and for every block in the future)',
|
|
1607
|
+
oneOf: [
|
|
1608
|
+
{
|
|
1609
|
+
description: 'AtHeight will expire when `env.block.height` >= height',
|
|
1610
|
+
type: 'object',
|
|
1611
|
+
required: ['at_height'],
|
|
1612
|
+
properties: {
|
|
1613
|
+
at_height: {
|
|
1614
|
+
type: 'integer',
|
|
1615
|
+
format: 'uint64',
|
|
1616
|
+
minimum: 0,
|
|
1617
|
+
},
|
|
1618
|
+
},
|
|
1619
|
+
additionalProperties: false,
|
|
1620
|
+
},
|
|
1621
|
+
{
|
|
1622
|
+
description: 'AtTime will expire when `env.block.time` >= time',
|
|
1623
|
+
type: 'object',
|
|
1624
|
+
required: ['at_time'],
|
|
1625
|
+
properties: {
|
|
1626
|
+
at_time: {
|
|
1627
|
+
$ref: '#/definitions/Timestamp',
|
|
1628
|
+
},
|
|
1629
|
+
},
|
|
1630
|
+
additionalProperties: false,
|
|
1631
|
+
},
|
|
1632
|
+
{
|
|
1633
|
+
description: 'Never will never expire. Used to express the empty variant',
|
|
1634
|
+
type: 'object',
|
|
1635
|
+
required: ['never'],
|
|
1636
|
+
properties: {
|
|
1637
|
+
never: {
|
|
1638
|
+
type: 'object',
|
|
1639
|
+
additionalProperties: false,
|
|
1640
|
+
},
|
|
1641
|
+
},
|
|
1642
|
+
additionalProperties: false,
|
|
1643
|
+
},
|
|
1644
|
+
],
|
|
1645
|
+
},
|
|
1646
|
+
Timestamp: {
|
|
1647
|
+
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); ```',
|
|
1648
|
+
allOf: [
|
|
1649
|
+
{
|
|
1650
|
+
$ref: '#/definitions/Uint64',
|
|
1651
|
+
},
|
|
1652
|
+
],
|
|
1653
|
+
},
|
|
1654
|
+
Uint64: {
|
|
1655
|
+
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); ```',
|
|
1656
|
+
type: 'string',
|
|
1657
|
+
},
|
|
1658
|
+
},
|
|
1659
|
+
},
|
|
1660
|
+
tokens: {
|
|
1661
|
+
type: 'object',
|
|
1662
|
+
required: ['tokens'],
|
|
1663
|
+
properties: {
|
|
1664
|
+
tokens: {
|
|
1665
|
+
description: 'Contains all token_ids in lexicographical ordering If there are more than `limit`, use `start_after` in future queries to achieve pagination.',
|
|
1666
|
+
type: 'array',
|
|
1667
|
+
items: {
|
|
1668
|
+
type: 'string',
|
|
1669
|
+
},
|
|
1670
|
+
},
|
|
1671
|
+
},
|
|
1672
|
+
additionalProperties: false,
|
|
1673
|
+
},
|
|
1674
|
+
};
|
|
1675
|
+
//# sourceMappingURL=responses.js.map
|