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