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,386 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CW20 query response schemas.
|
|
3
|
+
* Generated from cw-plus v2.0.0 cw20-base cargo schema output.
|
|
4
|
+
*/
|
|
5
|
+
export declare const cw20ResponseSchemas: {
|
|
6
|
+
readonly all_accounts: {
|
|
7
|
+
readonly type: "object";
|
|
8
|
+
readonly required: readonly ["accounts"];
|
|
9
|
+
readonly properties: {
|
|
10
|
+
readonly accounts: {
|
|
11
|
+
readonly type: "array";
|
|
12
|
+
readonly items: {
|
|
13
|
+
readonly type: "string";
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
readonly all_allowances: {
|
|
19
|
+
readonly type: "object";
|
|
20
|
+
readonly required: readonly ["allowances"];
|
|
21
|
+
readonly properties: {
|
|
22
|
+
readonly allowances: {
|
|
23
|
+
readonly type: "array";
|
|
24
|
+
readonly items: {
|
|
25
|
+
readonly $ref: "#/definitions/AllowanceInfo";
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
readonly definitions: {
|
|
30
|
+
readonly AllowanceInfo: {
|
|
31
|
+
readonly type: "object";
|
|
32
|
+
readonly required: readonly ["allowance", "expires", "spender"];
|
|
33
|
+
readonly properties: {
|
|
34
|
+
readonly allowance: {
|
|
35
|
+
readonly $ref: "#/definitions/Uint128";
|
|
36
|
+
};
|
|
37
|
+
readonly expires: {
|
|
38
|
+
readonly $ref: "#/definitions/Expiration";
|
|
39
|
+
};
|
|
40
|
+
readonly spender: {
|
|
41
|
+
readonly type: "string";
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
readonly additionalProperties: false;
|
|
45
|
+
};
|
|
46
|
+
readonly Expiration: {
|
|
47
|
+
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)";
|
|
48
|
+
readonly oneOf: readonly [{
|
|
49
|
+
readonly description: "AtHeight will expire when `env.block.height` >= height";
|
|
50
|
+
readonly type: "object";
|
|
51
|
+
readonly required: readonly ["at_height"];
|
|
52
|
+
readonly properties: {
|
|
53
|
+
readonly at_height: {
|
|
54
|
+
readonly type: "integer";
|
|
55
|
+
readonly format: "uint64";
|
|
56
|
+
readonly minimum: 0;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
readonly additionalProperties: false;
|
|
60
|
+
}, {
|
|
61
|
+
readonly description: "AtTime will expire when `env.block.time` >= time";
|
|
62
|
+
readonly type: "object";
|
|
63
|
+
readonly required: readonly ["at_time"];
|
|
64
|
+
readonly properties: {
|
|
65
|
+
readonly at_time: {
|
|
66
|
+
readonly $ref: "#/definitions/Timestamp";
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
readonly additionalProperties: false;
|
|
70
|
+
}, {
|
|
71
|
+
readonly description: "Never will never expire. Used to express the empty variant";
|
|
72
|
+
readonly type: "object";
|
|
73
|
+
readonly required: readonly ["never"];
|
|
74
|
+
readonly properties: {
|
|
75
|
+
readonly never: {
|
|
76
|
+
readonly type: "object";
|
|
77
|
+
readonly additionalProperties: false;
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
readonly additionalProperties: false;
|
|
81
|
+
}];
|
|
82
|
+
};
|
|
83
|
+
readonly Timestamp: {
|
|
84
|
+
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); ```";
|
|
85
|
+
readonly allOf: readonly [{
|
|
86
|
+
readonly $ref: "#/definitions/Uint64";
|
|
87
|
+
}];
|
|
88
|
+
};
|
|
89
|
+
readonly Uint128: {
|
|
90
|
+
readonly description: "A thin wrapper around u128 that is using strings for JSON encoding/decoding, such that the full u128 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 `u128` to get the value out:\n\n``` # use cosmwasm_std::Uint128; let a = Uint128::from(123u128); assert_eq!(a.u128(), 123);\n\nlet b = Uint128::from(42u64); assert_eq!(b.u128(), 42);\n\nlet c = Uint128::from(70u32); assert_eq!(c.u128(), 70); ```";
|
|
91
|
+
readonly type: "string";
|
|
92
|
+
};
|
|
93
|
+
readonly Uint64: {
|
|
94
|
+
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); ```";
|
|
95
|
+
readonly type: "string";
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
readonly all_spender_allowances: {
|
|
100
|
+
readonly type: "object";
|
|
101
|
+
readonly required: readonly ["allowances"];
|
|
102
|
+
readonly properties: {
|
|
103
|
+
readonly allowances: {
|
|
104
|
+
readonly type: "array";
|
|
105
|
+
readonly items: {
|
|
106
|
+
readonly $ref: "#/definitions/SpenderAllowanceInfo";
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
readonly definitions: {
|
|
111
|
+
readonly Expiration: {
|
|
112
|
+
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)";
|
|
113
|
+
readonly oneOf: readonly [{
|
|
114
|
+
readonly description: "AtHeight will expire when `env.block.height` >= height";
|
|
115
|
+
readonly type: "object";
|
|
116
|
+
readonly required: readonly ["at_height"];
|
|
117
|
+
readonly properties: {
|
|
118
|
+
readonly at_height: {
|
|
119
|
+
readonly type: "integer";
|
|
120
|
+
readonly format: "uint64";
|
|
121
|
+
readonly minimum: 0;
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
readonly additionalProperties: false;
|
|
125
|
+
}, {
|
|
126
|
+
readonly description: "AtTime will expire when `env.block.time` >= time";
|
|
127
|
+
readonly type: "object";
|
|
128
|
+
readonly required: readonly ["at_time"];
|
|
129
|
+
readonly properties: {
|
|
130
|
+
readonly at_time: {
|
|
131
|
+
readonly $ref: "#/definitions/Timestamp";
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
readonly additionalProperties: false;
|
|
135
|
+
}, {
|
|
136
|
+
readonly description: "Never will never expire. Used to express the empty variant";
|
|
137
|
+
readonly type: "object";
|
|
138
|
+
readonly required: readonly ["never"];
|
|
139
|
+
readonly properties: {
|
|
140
|
+
readonly never: {
|
|
141
|
+
readonly type: "object";
|
|
142
|
+
readonly additionalProperties: false;
|
|
143
|
+
};
|
|
144
|
+
};
|
|
145
|
+
readonly additionalProperties: false;
|
|
146
|
+
}];
|
|
147
|
+
};
|
|
148
|
+
readonly SpenderAllowanceInfo: {
|
|
149
|
+
readonly type: "object";
|
|
150
|
+
readonly required: readonly ["allowance", "expires", "owner"];
|
|
151
|
+
readonly properties: {
|
|
152
|
+
readonly allowance: {
|
|
153
|
+
readonly $ref: "#/definitions/Uint128";
|
|
154
|
+
};
|
|
155
|
+
readonly expires: {
|
|
156
|
+
readonly $ref: "#/definitions/Expiration";
|
|
157
|
+
};
|
|
158
|
+
readonly owner: {
|
|
159
|
+
readonly type: "string";
|
|
160
|
+
};
|
|
161
|
+
};
|
|
162
|
+
readonly additionalProperties: false;
|
|
163
|
+
};
|
|
164
|
+
readonly Timestamp: {
|
|
165
|
+
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); ```";
|
|
166
|
+
readonly allOf: readonly [{
|
|
167
|
+
readonly $ref: "#/definitions/Uint64";
|
|
168
|
+
}];
|
|
169
|
+
};
|
|
170
|
+
readonly Uint128: {
|
|
171
|
+
readonly description: "A thin wrapper around u128 that is using strings for JSON encoding/decoding, such that the full u128 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 `u128` to get the value out:\n\n``` # use cosmwasm_std::Uint128; let a = Uint128::from(123u128); assert_eq!(a.u128(), 123);\n\nlet b = Uint128::from(42u64); assert_eq!(b.u128(), 42);\n\nlet c = Uint128::from(70u32); assert_eq!(c.u128(), 70); ```";
|
|
172
|
+
readonly type: "string";
|
|
173
|
+
};
|
|
174
|
+
readonly Uint64: {
|
|
175
|
+
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); ```";
|
|
176
|
+
readonly type: "string";
|
|
177
|
+
};
|
|
178
|
+
};
|
|
179
|
+
};
|
|
180
|
+
readonly allowance: {
|
|
181
|
+
readonly type: "object";
|
|
182
|
+
readonly required: readonly ["allowance", "expires"];
|
|
183
|
+
readonly properties: {
|
|
184
|
+
readonly allowance: {
|
|
185
|
+
readonly $ref: "#/definitions/Uint128";
|
|
186
|
+
};
|
|
187
|
+
readonly expires: {
|
|
188
|
+
readonly $ref: "#/definitions/Expiration";
|
|
189
|
+
};
|
|
190
|
+
};
|
|
191
|
+
readonly definitions: {
|
|
192
|
+
readonly Expiration: {
|
|
193
|
+
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)";
|
|
194
|
+
readonly oneOf: readonly [{
|
|
195
|
+
readonly description: "AtHeight will expire when `env.block.height` >= height";
|
|
196
|
+
readonly type: "object";
|
|
197
|
+
readonly required: readonly ["at_height"];
|
|
198
|
+
readonly properties: {
|
|
199
|
+
readonly at_height: {
|
|
200
|
+
readonly type: "integer";
|
|
201
|
+
readonly format: "uint64";
|
|
202
|
+
readonly minimum: 0;
|
|
203
|
+
};
|
|
204
|
+
};
|
|
205
|
+
readonly additionalProperties: false;
|
|
206
|
+
}, {
|
|
207
|
+
readonly description: "AtTime will expire when `env.block.time` >= time";
|
|
208
|
+
readonly type: "object";
|
|
209
|
+
readonly required: readonly ["at_time"];
|
|
210
|
+
readonly properties: {
|
|
211
|
+
readonly at_time: {
|
|
212
|
+
readonly $ref: "#/definitions/Timestamp";
|
|
213
|
+
};
|
|
214
|
+
};
|
|
215
|
+
readonly additionalProperties: false;
|
|
216
|
+
}, {
|
|
217
|
+
readonly description: "Never will never expire. Used to express the empty variant";
|
|
218
|
+
readonly type: "object";
|
|
219
|
+
readonly required: readonly ["never"];
|
|
220
|
+
readonly properties: {
|
|
221
|
+
readonly never: {
|
|
222
|
+
readonly type: "object";
|
|
223
|
+
readonly additionalProperties: false;
|
|
224
|
+
};
|
|
225
|
+
};
|
|
226
|
+
readonly additionalProperties: false;
|
|
227
|
+
}];
|
|
228
|
+
};
|
|
229
|
+
readonly Timestamp: {
|
|
230
|
+
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); ```";
|
|
231
|
+
readonly allOf: readonly [{
|
|
232
|
+
readonly $ref: "#/definitions/Uint64";
|
|
233
|
+
}];
|
|
234
|
+
};
|
|
235
|
+
readonly Uint128: {
|
|
236
|
+
readonly description: "A thin wrapper around u128 that is using strings for JSON encoding/decoding, such that the full u128 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 `u128` to get the value out:\n\n``` # use cosmwasm_std::Uint128; let a = Uint128::from(123u128); assert_eq!(a.u128(), 123);\n\nlet b = Uint128::from(42u64); assert_eq!(b.u128(), 42);\n\nlet c = Uint128::from(70u32); assert_eq!(c.u128(), 70); ```";
|
|
237
|
+
readonly type: "string";
|
|
238
|
+
};
|
|
239
|
+
readonly Uint64: {
|
|
240
|
+
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); ```";
|
|
241
|
+
readonly type: "string";
|
|
242
|
+
};
|
|
243
|
+
};
|
|
244
|
+
};
|
|
245
|
+
readonly balance: {
|
|
246
|
+
readonly type: "object";
|
|
247
|
+
readonly required: readonly ["balance"];
|
|
248
|
+
readonly properties: {
|
|
249
|
+
readonly balance: {
|
|
250
|
+
readonly $ref: "#/definitions/Uint128";
|
|
251
|
+
};
|
|
252
|
+
};
|
|
253
|
+
readonly additionalProperties: false;
|
|
254
|
+
readonly definitions: {
|
|
255
|
+
readonly Uint128: {
|
|
256
|
+
readonly description: "A thin wrapper around u128 that is using strings for JSON encoding/decoding, such that the full u128 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 `u128` to get the value out:\n\n``` # use cosmwasm_std::Uint128; let a = Uint128::from(123u128); assert_eq!(a.u128(), 123);\n\nlet b = Uint128::from(42u64); assert_eq!(b.u128(), 42);\n\nlet c = Uint128::from(70u32); assert_eq!(c.u128(), 70); ```";
|
|
257
|
+
readonly type: "string";
|
|
258
|
+
};
|
|
259
|
+
};
|
|
260
|
+
};
|
|
261
|
+
readonly download_logo: {
|
|
262
|
+
readonly description: "When we download an embedded logo, we get this response type. We expect a SPA to be able to accept this info and display it.";
|
|
263
|
+
readonly type: "object";
|
|
264
|
+
readonly required: readonly ["data", "mime_type"];
|
|
265
|
+
readonly properties: {
|
|
266
|
+
readonly data: {
|
|
267
|
+
readonly $ref: "#/definitions/Binary";
|
|
268
|
+
};
|
|
269
|
+
readonly mime_type: {
|
|
270
|
+
readonly type: "string";
|
|
271
|
+
};
|
|
272
|
+
};
|
|
273
|
+
readonly additionalProperties: false;
|
|
274
|
+
readonly definitions: {
|
|
275
|
+
readonly Binary: {
|
|
276
|
+
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>.";
|
|
277
|
+
readonly type: "string";
|
|
278
|
+
};
|
|
279
|
+
};
|
|
280
|
+
};
|
|
281
|
+
readonly marketing_info: {
|
|
282
|
+
readonly type: "object";
|
|
283
|
+
readonly properties: {
|
|
284
|
+
readonly description: {
|
|
285
|
+
readonly description: "A longer description of the token and it's utility. Designed for tooltips or such";
|
|
286
|
+
readonly type: readonly ["string", "null"];
|
|
287
|
+
};
|
|
288
|
+
readonly logo: {
|
|
289
|
+
readonly description: "A link to the logo, or a comment there is an on-chain logo stored";
|
|
290
|
+
readonly anyOf: readonly [{
|
|
291
|
+
readonly $ref: "#/definitions/LogoInfo";
|
|
292
|
+
}, {
|
|
293
|
+
readonly type: "null";
|
|
294
|
+
}];
|
|
295
|
+
};
|
|
296
|
+
readonly marketing: {
|
|
297
|
+
readonly description: "The address (if any) who can update this data structure";
|
|
298
|
+
readonly anyOf: readonly [{
|
|
299
|
+
readonly $ref: "#/definitions/Addr";
|
|
300
|
+
}, {
|
|
301
|
+
readonly type: "null";
|
|
302
|
+
}];
|
|
303
|
+
};
|
|
304
|
+
readonly project: {
|
|
305
|
+
readonly description: "A URL pointing to the project behind this token.";
|
|
306
|
+
readonly type: readonly ["string", "null"];
|
|
307
|
+
};
|
|
308
|
+
};
|
|
309
|
+
readonly definitions: {
|
|
310
|
+
readonly Addr: {
|
|
311
|
+
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.";
|
|
312
|
+
readonly type: "string";
|
|
313
|
+
};
|
|
314
|
+
readonly LogoInfo: {
|
|
315
|
+
readonly description: "This is used to display logo info, provide a link or inform there is one that can be downloaded from the blockchain itself";
|
|
316
|
+
readonly oneOf: readonly [{
|
|
317
|
+
readonly description: "A reference to an externally hosted logo. Must be a valid HTTP or HTTPS URL.";
|
|
318
|
+
readonly type: "object";
|
|
319
|
+
readonly required: readonly ["url"];
|
|
320
|
+
readonly properties: {
|
|
321
|
+
readonly url: {
|
|
322
|
+
readonly type: "string";
|
|
323
|
+
};
|
|
324
|
+
};
|
|
325
|
+
readonly additionalProperties: false;
|
|
326
|
+
}, {
|
|
327
|
+
readonly description: "There is an embedded logo on the chain, make another call to download it.";
|
|
328
|
+
readonly type: "string";
|
|
329
|
+
readonly enum: readonly ["embedded"];
|
|
330
|
+
}];
|
|
331
|
+
};
|
|
332
|
+
};
|
|
333
|
+
};
|
|
334
|
+
readonly minter: {
|
|
335
|
+
readonly type: "object";
|
|
336
|
+
readonly required: readonly ["minter"];
|
|
337
|
+
readonly properties: {
|
|
338
|
+
readonly cap: {
|
|
339
|
+
readonly description: "cap is a hard cap on total supply that can be achieved by minting. Note that this refers to total_supply. If None, there is unlimited cap.";
|
|
340
|
+
readonly anyOf: readonly [{
|
|
341
|
+
readonly $ref: "#/definitions/Uint128";
|
|
342
|
+
}, {
|
|
343
|
+
readonly type: "null";
|
|
344
|
+
}];
|
|
345
|
+
};
|
|
346
|
+
readonly minter: {
|
|
347
|
+
readonly type: "string";
|
|
348
|
+
};
|
|
349
|
+
};
|
|
350
|
+
readonly additionalProperties: false;
|
|
351
|
+
readonly definitions: {
|
|
352
|
+
readonly Uint128: {
|
|
353
|
+
readonly description: "A thin wrapper around u128 that is using strings for JSON encoding/decoding, such that the full u128 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 `u128` to get the value out:\n\n``` # use cosmwasm_std::Uint128; let a = Uint128::from(123u128); assert_eq!(a.u128(), 123);\n\nlet b = Uint128::from(42u64); assert_eq!(b.u128(), 42);\n\nlet c = Uint128::from(70u32); assert_eq!(c.u128(), 70); ```";
|
|
354
|
+
readonly type: "string";
|
|
355
|
+
};
|
|
356
|
+
};
|
|
357
|
+
};
|
|
358
|
+
readonly token_info: {
|
|
359
|
+
readonly type: "object";
|
|
360
|
+
readonly required: readonly ["decimals", "name", "symbol", "total_supply"];
|
|
361
|
+
readonly properties: {
|
|
362
|
+
readonly decimals: {
|
|
363
|
+
readonly type: "integer";
|
|
364
|
+
readonly format: "uint8";
|
|
365
|
+
readonly minimum: 0;
|
|
366
|
+
};
|
|
367
|
+
readonly name: {
|
|
368
|
+
readonly type: "string";
|
|
369
|
+
};
|
|
370
|
+
readonly symbol: {
|
|
371
|
+
readonly type: "string";
|
|
372
|
+
};
|
|
373
|
+
readonly total_supply: {
|
|
374
|
+
readonly $ref: "#/definitions/Uint128";
|
|
375
|
+
};
|
|
376
|
+
};
|
|
377
|
+
readonly additionalProperties: false;
|
|
378
|
+
readonly definitions: {
|
|
379
|
+
readonly Uint128: {
|
|
380
|
+
readonly description: "A thin wrapper around u128 that is using strings for JSON encoding/decoding, such that the full u128 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 `u128` to get the value out:\n\n``` # use cosmwasm_std::Uint128; let a = Uint128::from(123u128); assert_eq!(a.u128(), 123);\n\nlet b = Uint128::from(42u64); assert_eq!(b.u128(), 42);\n\nlet c = Uint128::from(70u32); assert_eq!(c.u128(), 70); ```";
|
|
381
|
+
readonly type: "string";
|
|
382
|
+
};
|
|
383
|
+
};
|
|
384
|
+
};
|
|
385
|
+
};
|
|
386
|
+
//# sourceMappingURL=responses.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["../../../src/schemas/cw20/responses.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwbtB,CAAA"}
|