coreum-js 2.5.5 → 2.5.8

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.
Files changed (88) hide show
  1. package/README.md +1 -0
  2. package/dist/main/client/index.js +4 -4
  3. package/dist/main/coreum/asset/nft/v1/nft.d.ts +1 -1
  4. package/dist/main/coreum/asset/nft/v1/nft.js +2 -2
  5. package/dist/main/coreum/asset/nft/v1/query.d.ts +2 -2
  6. package/dist/main/coreum/asset/nft/v1/tx.d.ts +1 -1
  7. package/dist/main/coreum/asset/nft/v1/tx.js +2 -2
  8. package/dist/main/coreum/index.d.ts +18 -18
  9. package/dist/main/coreum/index.js +17 -17
  10. package/dist/main/coreum/nft/v1beta1/genesis.d.ts +6 -6
  11. package/dist/main/coreum/nft/v1beta1/nft.d.ts +1 -1
  12. package/dist/main/coreum/nft/v1beta1/nft.js +2 -2
  13. package/dist/main/coreum/nft/v1beta1/query.d.ts +8 -8
  14. package/dist/main/cosmos/base/query/v1beta1/pagination.js +29 -11
  15. package/dist/main/{coreum/google → google}/api/annotations.js +1 -1
  16. package/dist/main/google/api/http.js +329 -0
  17. package/dist/main/google/protobuf/any.js +122 -0
  18. package/dist/main/types/core.d.ts +2 -0
  19. package/dist/main/types/core.js +1 -1
  20. package/dist/main/wasm/v1/authz.d.ts +570 -0
  21. package/dist/main/wasm/v1/authz.js +603 -0
  22. package/dist/main/wasm/v1/extensions/wasm.d.ts +17 -0
  23. package/dist/main/wasm/v1/extensions/wasm.js +48 -0
  24. package/dist/main/wasm/v1/genesis.d.ts +1059 -0
  25. package/dist/main/wasm/v1/genesis.js +427 -0
  26. package/dist/main/wasm/v1/ibc.d.ts +102 -0
  27. package/dist/main/wasm/v1/ibc.js +250 -0
  28. package/dist/main/wasm/v1/index.d.ts +308 -0
  29. package/dist/main/wasm/v1/index.js +87 -0
  30. package/dist/main/wasm/v1/pagination.d.ts +128 -0
  31. package/dist/main/wasm/v1/pagination.js +228 -0
  32. package/dist/main/wasm/v1/proposal.d.ts +1023 -0
  33. package/dist/main/wasm/v1/proposal.js +1638 -0
  34. package/dist/main/wasm/v1/query.d.ts +1443 -0
  35. package/dist/main/wasm/v1/query.js +1699 -0
  36. package/dist/main/wasm/v1/tx.d.ts +1167 -0
  37. package/dist/main/wasm/v1/tx.js +2088 -0
  38. package/dist/main/wasm/v1/types.d.ts +417 -0
  39. package/dist/main/wasm/v1/types.js +856 -0
  40. package/dist/module/client/index.js +4 -4
  41. package/dist/module/coreum/asset/nft/v1/nft.d.ts +1 -1
  42. package/dist/module/coreum/asset/nft/v1/nft.js +2 -2
  43. package/dist/module/coreum/asset/nft/v1/query.d.ts +2 -2
  44. package/dist/module/coreum/asset/nft/v1/tx.d.ts +1 -1
  45. package/dist/module/coreum/asset/nft/v1/tx.js +2 -2
  46. package/dist/module/coreum/index.d.ts +18 -18
  47. package/dist/module/coreum/index.js +17 -17
  48. package/dist/module/coreum/nft/v1beta1/genesis.d.ts +6 -6
  49. package/dist/module/coreum/nft/v1beta1/nft.d.ts +1 -1
  50. package/dist/module/coreum/nft/v1beta1/nft.js +2 -2
  51. package/dist/module/coreum/nft/v1beta1/query.d.ts +8 -8
  52. package/dist/module/cosmos/base/query/v1beta1/pagination.js +29 -11
  53. package/dist/module/{coreum/google → google}/api/annotations.js +1 -1
  54. package/dist/module/google/api/http.js +320 -0
  55. package/dist/module/google/protobuf/any.js +115 -0
  56. package/dist/module/types/core.d.ts +2 -0
  57. package/dist/module/types/core.js +1 -1
  58. package/dist/module/wasm/v1/authz.d.ts +570 -0
  59. package/dist/module/wasm/v1/authz.js +589 -0
  60. package/dist/module/wasm/v1/extensions/wasm.d.ts +17 -0
  61. package/dist/module/wasm/v1/extensions/wasm.js +44 -0
  62. package/dist/module/wasm/v1/genesis.d.ts +1059 -0
  63. package/dist/module/wasm/v1/genesis.js +417 -0
  64. package/dist/module/wasm/v1/ibc.d.ts +102 -0
  65. package/dist/module/wasm/v1/ibc.js +241 -0
  66. package/dist/module/wasm/v1/index.d.ts +308 -0
  67. package/dist/module/wasm/v1/index.js +84 -0
  68. package/dist/module/wasm/v1/pagination.d.ts +128 -0
  69. package/dist/module/wasm/v1/pagination.js +220 -0
  70. package/dist/module/wasm/v1/proposal.d.ts +1023 -0
  71. package/dist/module/wasm/v1/proposal.js +1619 -0
  72. package/dist/module/wasm/v1/query.d.ts +1443 -0
  73. package/dist/module/wasm/v1/query.js +1675 -0
  74. package/dist/module/wasm/v1/tx.d.ts +1167 -0
  75. package/dist/module/wasm/v1/tx.js +2063 -0
  76. package/dist/module/wasm/v1/types.d.ts +417 -0
  77. package/dist/module/wasm/v1/types.js +838 -0
  78. package/package.json +2 -1
  79. package/dist/main/coreum/google/api/http.js +0 -329
  80. package/dist/main/coreum/google/protobuf/any.js +0 -122
  81. package/dist/module/coreum/google/api/http.js +0 -320
  82. package/dist/module/coreum/google/protobuf/any.js +0 -115
  83. /package/dist/main/{coreum/google → google}/api/annotations.d.ts +0 -0
  84. /package/dist/main/{coreum/google → google}/api/http.d.ts +0 -0
  85. /package/dist/main/{coreum/google → google}/protobuf/any.d.ts +0 -0
  86. /package/dist/module/{coreum/google → google}/api/annotations.d.ts +0 -0
  87. /package/dist/module/{coreum/google → google}/api/http.d.ts +0 -0
  88. /package/dist/module/{coreum/google → google}/protobuf/any.d.ts +0 -0
@@ -0,0 +1,1443 @@
1
+ import _m0 from "protobufjs/minimal";
2
+ import { PageRequest, PageResponse } from "./pagination";
3
+ import { AccessConfig, ContractCodeHistoryEntry, ContractInfo, Model, Params } from "./types";
4
+ export declare const protobufPackage = "cosmwasm.wasm.v1";
5
+ /**
6
+ * QueryContractInfoRequest is the request type for the Query/ContractInfo RPC
7
+ * method
8
+ */
9
+ export interface QueryContractInfoRequest {
10
+ /** address is the address of the contract to query */
11
+ address: string;
12
+ }
13
+ /**
14
+ * QueryContractInfoResponse is the response type for the Query/ContractInfo RPC
15
+ * method
16
+ */
17
+ export interface QueryContractInfoResponse {
18
+ /** address is the address of the contract */
19
+ address: string;
20
+ contractInfo: ContractInfo | undefined;
21
+ }
22
+ /**
23
+ * QueryContractHistoryRequest is the request type for the Query/ContractHistory
24
+ * RPC method
25
+ */
26
+ export interface QueryContractHistoryRequest {
27
+ /** address is the address of the contract to query */
28
+ address: string;
29
+ /** pagination defines an optional pagination for the request. */
30
+ pagination: PageRequest | undefined;
31
+ }
32
+ /**
33
+ * QueryContractHistoryResponse is the response type for the
34
+ * Query/ContractHistory RPC method
35
+ */
36
+ export interface QueryContractHistoryResponse {
37
+ entries: ContractCodeHistoryEntry[];
38
+ /** pagination defines the pagination in the response. */
39
+ pagination: PageResponse | undefined;
40
+ }
41
+ /**
42
+ * QueryContractsByCodeRequest is the request type for the Query/ContractsByCode
43
+ * RPC method
44
+ */
45
+ export interface QueryContractsByCodeRequest {
46
+ /** grpc-gateway_out does not support Go style CodID */
47
+ codeId: number;
48
+ /** pagination defines an optional pagination for the request. */
49
+ pagination: PageRequest | undefined;
50
+ }
51
+ /**
52
+ * QueryContractsByCodeResponse is the response type for the
53
+ * Query/ContractsByCode RPC method
54
+ */
55
+ export interface QueryContractsByCodeResponse {
56
+ /** contracts are a set of contract addresses */
57
+ contracts: string[];
58
+ /** pagination defines the pagination in the response. */
59
+ pagination: PageResponse | undefined;
60
+ }
61
+ /**
62
+ * QueryAllContractStateRequest is the request type for the
63
+ * Query/AllContractState RPC method
64
+ */
65
+ export interface QueryAllContractStateRequest {
66
+ /** address is the address of the contract */
67
+ address: string;
68
+ /** pagination defines an optional pagination for the request. */
69
+ pagination: PageRequest | undefined;
70
+ }
71
+ /**
72
+ * QueryAllContractStateResponse is the response type for the
73
+ * Query/AllContractState RPC method
74
+ */
75
+ export interface QueryAllContractStateResponse {
76
+ models: Model[];
77
+ /** pagination defines the pagination in the response. */
78
+ pagination: PageResponse | undefined;
79
+ }
80
+ /**
81
+ * QueryRawContractStateRequest is the request type for the
82
+ * Query/RawContractState RPC method
83
+ */
84
+ export interface QueryRawContractStateRequest {
85
+ /** address is the address of the contract */
86
+ address: string;
87
+ queryData: Uint8Array;
88
+ }
89
+ /**
90
+ * QueryRawContractStateResponse is the response type for the
91
+ * Query/RawContractState RPC method
92
+ */
93
+ export interface QueryRawContractStateResponse {
94
+ /** Data contains the raw store data */
95
+ data: Uint8Array;
96
+ }
97
+ /**
98
+ * QuerySmartContractStateRequest is the request type for the
99
+ * Query/SmartContractState RPC method
100
+ */
101
+ export interface QuerySmartContractStateRequest {
102
+ /** address is the address of the contract */
103
+ address: string;
104
+ /** QueryData contains the query data passed to the contract */
105
+ queryData: Uint8Array;
106
+ }
107
+ /**
108
+ * QuerySmartContractStateResponse is the response type for the
109
+ * Query/SmartContractState RPC method
110
+ */
111
+ export interface QuerySmartContractStateResponse {
112
+ /** Data contains the json data returned from the smart contract */
113
+ data: Uint8Array;
114
+ }
115
+ /** QueryCodeRequest is the request type for the Query/Code RPC method */
116
+ export interface QueryCodeRequest {
117
+ /** grpc-gateway_out does not support Go style CodID */
118
+ codeId: number;
119
+ }
120
+ /** CodeInfoResponse contains code meta data from CodeInfo */
121
+ export interface CodeInfoResponse {
122
+ /** id for legacy support */
123
+ codeId: number;
124
+ creator: string;
125
+ dataHash: Uint8Array;
126
+ instantiatePermission: AccessConfig | undefined;
127
+ }
128
+ /** QueryCodeResponse is the response type for the Query/Code RPC method */
129
+ export interface QueryCodeResponse {
130
+ codeInfo: CodeInfoResponse | undefined;
131
+ data: Uint8Array;
132
+ }
133
+ /** QueryCodesRequest is the request type for the Query/Codes RPC method */
134
+ export interface QueryCodesRequest {
135
+ /** pagination defines an optional pagination for the request. */
136
+ pagination: PageRequest | undefined;
137
+ }
138
+ /** QueryCodesResponse is the response type for the Query/Codes RPC method */
139
+ export interface QueryCodesResponse {
140
+ codeInfos: CodeInfoResponse[];
141
+ /** pagination defines the pagination in the response. */
142
+ pagination: PageResponse | undefined;
143
+ }
144
+ /**
145
+ * QueryPinnedCodesRequest is the request type for the Query/PinnedCodes
146
+ * RPC method
147
+ */
148
+ export interface QueryPinnedCodesRequest {
149
+ /** pagination defines an optional pagination for the request. */
150
+ pagination: PageRequest | undefined;
151
+ }
152
+ /**
153
+ * QueryPinnedCodesResponse is the response type for the
154
+ * Query/PinnedCodes RPC method
155
+ */
156
+ export interface QueryPinnedCodesResponse {
157
+ codeIds: number[];
158
+ /** pagination defines the pagination in the response. */
159
+ pagination: PageResponse | undefined;
160
+ }
161
+ /** QueryParamsRequest is the request type for the Query/Params RPC method. */
162
+ export interface QueryParamsRequest {
163
+ }
164
+ /** QueryParamsResponse is the response type for the Query/Params RPC method. */
165
+ export interface QueryParamsResponse {
166
+ /** params defines the parameters of the module. */
167
+ params: Params | undefined;
168
+ }
169
+ /**
170
+ * QueryContractsByCreatorRequest is the request type for the
171
+ * Query/ContractsByCreator RPC method.
172
+ */
173
+ export interface QueryContractsByCreatorRequest {
174
+ /** CreatorAddress is the address of contract creator */
175
+ creatorAddress: string;
176
+ /** Pagination defines an optional pagination for the request. */
177
+ pagination: PageRequest | undefined;
178
+ }
179
+ /**
180
+ * QueryContractsByCreatorResponse is the response type for the
181
+ * Query/ContractsByCreator RPC method.
182
+ */
183
+ export interface QueryContractsByCreatorResponse {
184
+ /** ContractAddresses result set */
185
+ contractAddresses: string[];
186
+ /** Pagination defines the pagination in the response. */
187
+ pagination: PageResponse | undefined;
188
+ }
189
+ export declare const QueryContractInfoRequest: {
190
+ encode(message: QueryContractInfoRequest, writer?: _m0.Writer): _m0.Writer;
191
+ decode(input: _m0.Reader | Uint8Array, length?: number): QueryContractInfoRequest;
192
+ fromJSON(object: any): QueryContractInfoRequest;
193
+ toJSON(message: QueryContractInfoRequest): unknown;
194
+ create<I extends {
195
+ address?: string;
196
+ } & {
197
+ address?: string;
198
+ } & { [K in Exclude<keyof I, "address">]: never; }>(base?: I): QueryContractInfoRequest;
199
+ fromPartial<I_1 extends {
200
+ address?: string;
201
+ } & {
202
+ address?: string;
203
+ } & { [K_1 in Exclude<keyof I_1, "address">]: never; }>(object: I_1): QueryContractInfoRequest;
204
+ };
205
+ export declare const QueryContractInfoResponse: {
206
+ encode(message: QueryContractInfoResponse, writer?: _m0.Writer): _m0.Writer;
207
+ decode(input: _m0.Reader | Uint8Array, length?: number): QueryContractInfoResponse;
208
+ fromJSON(object: any): QueryContractInfoResponse;
209
+ toJSON(message: QueryContractInfoResponse): unknown;
210
+ create<I extends {
211
+ address?: string;
212
+ contractInfo?: {
213
+ codeId?: number;
214
+ creator?: string;
215
+ admin?: string;
216
+ label?: string;
217
+ created?: {
218
+ blockHeight?: number;
219
+ txIndex?: number;
220
+ };
221
+ ibcPortId?: string;
222
+ extension?: {
223
+ typeUrl?: string;
224
+ value?: Uint8Array;
225
+ };
226
+ };
227
+ } & {
228
+ address?: string;
229
+ contractInfo?: {
230
+ codeId?: number;
231
+ creator?: string;
232
+ admin?: string;
233
+ label?: string;
234
+ created?: {
235
+ blockHeight?: number;
236
+ txIndex?: number;
237
+ };
238
+ ibcPortId?: string;
239
+ extension?: {
240
+ typeUrl?: string;
241
+ value?: Uint8Array;
242
+ };
243
+ } & {
244
+ codeId?: number;
245
+ creator?: string;
246
+ admin?: string;
247
+ label?: string;
248
+ created?: {
249
+ blockHeight?: number;
250
+ txIndex?: number;
251
+ } & {
252
+ blockHeight?: number;
253
+ txIndex?: number;
254
+ } & { [K in Exclude<keyof I["contractInfo"]["created"], keyof import("./types").AbsoluteTxPosition>]: never; };
255
+ ibcPortId?: string;
256
+ extension?: {
257
+ typeUrl?: string;
258
+ value?: Uint8Array;
259
+ } & {
260
+ typeUrl?: string;
261
+ value?: Uint8Array;
262
+ } & { [K_1 in Exclude<keyof I["contractInfo"]["extension"], keyof import("../../google/protobuf/any").Any>]: never; };
263
+ } & { [K_2 in Exclude<keyof I["contractInfo"], keyof ContractInfo>]: never; };
264
+ } & { [K_3 in Exclude<keyof I, keyof QueryContractInfoResponse>]: never; }>(base?: I): QueryContractInfoResponse;
265
+ fromPartial<I_1 extends {
266
+ address?: string;
267
+ contractInfo?: {
268
+ codeId?: number;
269
+ creator?: string;
270
+ admin?: string;
271
+ label?: string;
272
+ created?: {
273
+ blockHeight?: number;
274
+ txIndex?: number;
275
+ };
276
+ ibcPortId?: string;
277
+ extension?: {
278
+ typeUrl?: string;
279
+ value?: Uint8Array;
280
+ };
281
+ };
282
+ } & {
283
+ address?: string;
284
+ contractInfo?: {
285
+ codeId?: number;
286
+ creator?: string;
287
+ admin?: string;
288
+ label?: string;
289
+ created?: {
290
+ blockHeight?: number;
291
+ txIndex?: number;
292
+ };
293
+ ibcPortId?: string;
294
+ extension?: {
295
+ typeUrl?: string;
296
+ value?: Uint8Array;
297
+ };
298
+ } & {
299
+ codeId?: number;
300
+ creator?: string;
301
+ admin?: string;
302
+ label?: string;
303
+ created?: {
304
+ blockHeight?: number;
305
+ txIndex?: number;
306
+ } & {
307
+ blockHeight?: number;
308
+ txIndex?: number;
309
+ } & { [K_4 in Exclude<keyof I_1["contractInfo"]["created"], keyof import("./types").AbsoluteTxPosition>]: never; };
310
+ ibcPortId?: string;
311
+ extension?: {
312
+ typeUrl?: string;
313
+ value?: Uint8Array;
314
+ } & {
315
+ typeUrl?: string;
316
+ value?: Uint8Array;
317
+ } & { [K_5 in Exclude<keyof I_1["contractInfo"]["extension"], keyof import("../../google/protobuf/any").Any>]: never; };
318
+ } & { [K_6 in Exclude<keyof I_1["contractInfo"], keyof ContractInfo>]: never; };
319
+ } & { [K_7 in Exclude<keyof I_1, keyof QueryContractInfoResponse>]: never; }>(object: I_1): QueryContractInfoResponse;
320
+ };
321
+ export declare const QueryContractHistoryRequest: {
322
+ encode(message: QueryContractHistoryRequest, writer?: _m0.Writer): _m0.Writer;
323
+ decode(input: _m0.Reader | Uint8Array, length?: number): QueryContractHistoryRequest;
324
+ fromJSON(object: any): QueryContractHistoryRequest;
325
+ toJSON(message: QueryContractHistoryRequest): unknown;
326
+ create<I extends {
327
+ address?: string;
328
+ pagination?: {
329
+ key?: Uint8Array;
330
+ offset?: number;
331
+ limit?: number;
332
+ countTotal?: boolean;
333
+ reverse?: boolean;
334
+ };
335
+ } & {
336
+ address?: string;
337
+ pagination?: {
338
+ key?: Uint8Array;
339
+ offset?: number;
340
+ limit?: number;
341
+ countTotal?: boolean;
342
+ reverse?: boolean;
343
+ } & {
344
+ key?: Uint8Array;
345
+ offset?: number;
346
+ limit?: number;
347
+ countTotal?: boolean;
348
+ reverse?: boolean;
349
+ } & { [K in Exclude<keyof I["pagination"], keyof PageRequest>]: never; };
350
+ } & { [K_1 in Exclude<keyof I, keyof QueryContractHistoryRequest>]: never; }>(base?: I): QueryContractHistoryRequest;
351
+ fromPartial<I_1 extends {
352
+ address?: string;
353
+ pagination?: {
354
+ key?: Uint8Array;
355
+ offset?: number;
356
+ limit?: number;
357
+ countTotal?: boolean;
358
+ reverse?: boolean;
359
+ };
360
+ } & {
361
+ address?: string;
362
+ pagination?: {
363
+ key?: Uint8Array;
364
+ offset?: number;
365
+ limit?: number;
366
+ countTotal?: boolean;
367
+ reverse?: boolean;
368
+ } & {
369
+ key?: Uint8Array;
370
+ offset?: number;
371
+ limit?: number;
372
+ countTotal?: boolean;
373
+ reverse?: boolean;
374
+ } & { [K_2 in Exclude<keyof I_1["pagination"], keyof PageRequest>]: never; };
375
+ } & { [K_3 in Exclude<keyof I_1, keyof QueryContractHistoryRequest>]: never; }>(object: I_1): QueryContractHistoryRequest;
376
+ };
377
+ export declare const QueryContractHistoryResponse: {
378
+ encode(message: QueryContractHistoryResponse, writer?: _m0.Writer): _m0.Writer;
379
+ decode(input: _m0.Reader | Uint8Array, length?: number): QueryContractHistoryResponse;
380
+ fromJSON(object: any): QueryContractHistoryResponse;
381
+ toJSON(message: QueryContractHistoryResponse): unknown;
382
+ create<I extends {
383
+ entries?: {
384
+ operation?: import("./types").ContractCodeHistoryOperationType;
385
+ codeId?: number;
386
+ updated?: {
387
+ blockHeight?: number;
388
+ txIndex?: number;
389
+ };
390
+ msg?: Uint8Array;
391
+ }[];
392
+ pagination?: {
393
+ nextKey?: Uint8Array;
394
+ total?: number;
395
+ };
396
+ } & {
397
+ entries?: {
398
+ operation?: import("./types").ContractCodeHistoryOperationType;
399
+ codeId?: number;
400
+ updated?: {
401
+ blockHeight?: number;
402
+ txIndex?: number;
403
+ };
404
+ msg?: Uint8Array;
405
+ }[] & ({
406
+ operation?: import("./types").ContractCodeHistoryOperationType;
407
+ codeId?: number;
408
+ updated?: {
409
+ blockHeight?: number;
410
+ txIndex?: number;
411
+ };
412
+ msg?: Uint8Array;
413
+ } & {
414
+ operation?: import("./types").ContractCodeHistoryOperationType;
415
+ codeId?: number;
416
+ updated?: {
417
+ blockHeight?: number;
418
+ txIndex?: number;
419
+ } & {
420
+ blockHeight?: number;
421
+ txIndex?: number;
422
+ } & { [K in Exclude<keyof I["entries"][number]["updated"], keyof import("./types").AbsoluteTxPosition>]: never; };
423
+ msg?: Uint8Array;
424
+ } & { [K_1 in Exclude<keyof I["entries"][number], keyof ContractCodeHistoryEntry>]: never; })[] & { [K_2 in Exclude<keyof I["entries"], keyof {
425
+ operation?: import("./types").ContractCodeHistoryOperationType;
426
+ codeId?: number;
427
+ updated?: {
428
+ blockHeight?: number;
429
+ txIndex?: number;
430
+ };
431
+ msg?: Uint8Array;
432
+ }[]>]: never; };
433
+ pagination?: {
434
+ nextKey?: Uint8Array;
435
+ total?: number;
436
+ } & {
437
+ nextKey?: Uint8Array;
438
+ total?: number;
439
+ } & { [K_3 in Exclude<keyof I["pagination"], keyof PageResponse>]: never; };
440
+ } & { [K_4 in Exclude<keyof I, keyof QueryContractHistoryResponse>]: never; }>(base?: I): QueryContractHistoryResponse;
441
+ fromPartial<I_1 extends {
442
+ entries?: {
443
+ operation?: import("./types").ContractCodeHistoryOperationType;
444
+ codeId?: number;
445
+ updated?: {
446
+ blockHeight?: number;
447
+ txIndex?: number;
448
+ };
449
+ msg?: Uint8Array;
450
+ }[];
451
+ pagination?: {
452
+ nextKey?: Uint8Array;
453
+ total?: number;
454
+ };
455
+ } & {
456
+ entries?: {
457
+ operation?: import("./types").ContractCodeHistoryOperationType;
458
+ codeId?: number;
459
+ updated?: {
460
+ blockHeight?: number;
461
+ txIndex?: number;
462
+ };
463
+ msg?: Uint8Array;
464
+ }[] & ({
465
+ operation?: import("./types").ContractCodeHistoryOperationType;
466
+ codeId?: number;
467
+ updated?: {
468
+ blockHeight?: number;
469
+ txIndex?: number;
470
+ };
471
+ msg?: Uint8Array;
472
+ } & {
473
+ operation?: import("./types").ContractCodeHistoryOperationType;
474
+ codeId?: number;
475
+ updated?: {
476
+ blockHeight?: number;
477
+ txIndex?: number;
478
+ } & {
479
+ blockHeight?: number;
480
+ txIndex?: number;
481
+ } & { [K_5 in Exclude<keyof I_1["entries"][number]["updated"], keyof import("./types").AbsoluteTxPosition>]: never; };
482
+ msg?: Uint8Array;
483
+ } & { [K_6 in Exclude<keyof I_1["entries"][number], keyof ContractCodeHistoryEntry>]: never; })[] & { [K_7 in Exclude<keyof I_1["entries"], keyof {
484
+ operation?: import("./types").ContractCodeHistoryOperationType;
485
+ codeId?: number;
486
+ updated?: {
487
+ blockHeight?: number;
488
+ txIndex?: number;
489
+ };
490
+ msg?: Uint8Array;
491
+ }[]>]: never; };
492
+ pagination?: {
493
+ nextKey?: Uint8Array;
494
+ total?: number;
495
+ } & {
496
+ nextKey?: Uint8Array;
497
+ total?: number;
498
+ } & { [K_8 in Exclude<keyof I_1["pagination"], keyof PageResponse>]: never; };
499
+ } & { [K_9 in Exclude<keyof I_1, keyof QueryContractHistoryResponse>]: never; }>(object: I_1): QueryContractHistoryResponse;
500
+ };
501
+ export declare const QueryContractsByCodeRequest: {
502
+ encode(message: QueryContractsByCodeRequest, writer?: _m0.Writer): _m0.Writer;
503
+ decode(input: _m0.Reader | Uint8Array, length?: number): QueryContractsByCodeRequest;
504
+ fromJSON(object: any): QueryContractsByCodeRequest;
505
+ toJSON(message: QueryContractsByCodeRequest): unknown;
506
+ create<I extends {
507
+ codeId?: number;
508
+ pagination?: {
509
+ key?: Uint8Array;
510
+ offset?: number;
511
+ limit?: number;
512
+ countTotal?: boolean;
513
+ reverse?: boolean;
514
+ };
515
+ } & {
516
+ codeId?: number;
517
+ pagination?: {
518
+ key?: Uint8Array;
519
+ offset?: number;
520
+ limit?: number;
521
+ countTotal?: boolean;
522
+ reverse?: boolean;
523
+ } & {
524
+ key?: Uint8Array;
525
+ offset?: number;
526
+ limit?: number;
527
+ countTotal?: boolean;
528
+ reverse?: boolean;
529
+ } & { [K in Exclude<keyof I["pagination"], keyof PageRequest>]: never; };
530
+ } & { [K_1 in Exclude<keyof I, keyof QueryContractsByCodeRequest>]: never; }>(base?: I): QueryContractsByCodeRequest;
531
+ fromPartial<I_1 extends {
532
+ codeId?: number;
533
+ pagination?: {
534
+ key?: Uint8Array;
535
+ offset?: number;
536
+ limit?: number;
537
+ countTotal?: boolean;
538
+ reverse?: boolean;
539
+ };
540
+ } & {
541
+ codeId?: number;
542
+ pagination?: {
543
+ key?: Uint8Array;
544
+ offset?: number;
545
+ limit?: number;
546
+ countTotal?: boolean;
547
+ reverse?: boolean;
548
+ } & {
549
+ key?: Uint8Array;
550
+ offset?: number;
551
+ limit?: number;
552
+ countTotal?: boolean;
553
+ reverse?: boolean;
554
+ } & { [K_2 in Exclude<keyof I_1["pagination"], keyof PageRequest>]: never; };
555
+ } & { [K_3 in Exclude<keyof I_1, keyof QueryContractsByCodeRequest>]: never; }>(object: I_1): QueryContractsByCodeRequest;
556
+ };
557
+ export declare const QueryContractsByCodeResponse: {
558
+ encode(message: QueryContractsByCodeResponse, writer?: _m0.Writer): _m0.Writer;
559
+ decode(input: _m0.Reader | Uint8Array, length?: number): QueryContractsByCodeResponse;
560
+ fromJSON(object: any): QueryContractsByCodeResponse;
561
+ toJSON(message: QueryContractsByCodeResponse): unknown;
562
+ create<I extends {
563
+ contracts?: string[];
564
+ pagination?: {
565
+ nextKey?: Uint8Array;
566
+ total?: number;
567
+ };
568
+ } & {
569
+ contracts?: string[] & string[] & { [K in Exclude<keyof I["contracts"], keyof string[]>]: never; };
570
+ pagination?: {
571
+ nextKey?: Uint8Array;
572
+ total?: number;
573
+ } & {
574
+ nextKey?: Uint8Array;
575
+ total?: number;
576
+ } & { [K_1 in Exclude<keyof I["pagination"], keyof PageResponse>]: never; };
577
+ } & { [K_2 in Exclude<keyof I, keyof QueryContractsByCodeResponse>]: never; }>(base?: I): QueryContractsByCodeResponse;
578
+ fromPartial<I_1 extends {
579
+ contracts?: string[];
580
+ pagination?: {
581
+ nextKey?: Uint8Array;
582
+ total?: number;
583
+ };
584
+ } & {
585
+ contracts?: string[] & string[] & { [K_3 in Exclude<keyof I_1["contracts"], keyof string[]>]: never; };
586
+ pagination?: {
587
+ nextKey?: Uint8Array;
588
+ total?: number;
589
+ } & {
590
+ nextKey?: Uint8Array;
591
+ total?: number;
592
+ } & { [K_4 in Exclude<keyof I_1["pagination"], keyof PageResponse>]: never; };
593
+ } & { [K_5 in Exclude<keyof I_1, keyof QueryContractsByCodeResponse>]: never; }>(object: I_1): QueryContractsByCodeResponse;
594
+ };
595
+ export declare const QueryAllContractStateRequest: {
596
+ encode(message: QueryAllContractStateRequest, writer?: _m0.Writer): _m0.Writer;
597
+ decode(input: _m0.Reader | Uint8Array, length?: number): QueryAllContractStateRequest;
598
+ fromJSON(object: any): QueryAllContractStateRequest;
599
+ toJSON(message: QueryAllContractStateRequest): unknown;
600
+ create<I extends {
601
+ address?: string;
602
+ pagination?: {
603
+ key?: Uint8Array;
604
+ offset?: number;
605
+ limit?: number;
606
+ countTotal?: boolean;
607
+ reverse?: boolean;
608
+ };
609
+ } & {
610
+ address?: string;
611
+ pagination?: {
612
+ key?: Uint8Array;
613
+ offset?: number;
614
+ limit?: number;
615
+ countTotal?: boolean;
616
+ reverse?: boolean;
617
+ } & {
618
+ key?: Uint8Array;
619
+ offset?: number;
620
+ limit?: number;
621
+ countTotal?: boolean;
622
+ reverse?: boolean;
623
+ } & { [K in Exclude<keyof I["pagination"], keyof PageRequest>]: never; };
624
+ } & { [K_1 in Exclude<keyof I, keyof QueryAllContractStateRequest>]: never; }>(base?: I): QueryAllContractStateRequest;
625
+ fromPartial<I_1 extends {
626
+ address?: string;
627
+ pagination?: {
628
+ key?: Uint8Array;
629
+ offset?: number;
630
+ limit?: number;
631
+ countTotal?: boolean;
632
+ reverse?: boolean;
633
+ };
634
+ } & {
635
+ address?: string;
636
+ pagination?: {
637
+ key?: Uint8Array;
638
+ offset?: number;
639
+ limit?: number;
640
+ countTotal?: boolean;
641
+ reverse?: boolean;
642
+ } & {
643
+ key?: Uint8Array;
644
+ offset?: number;
645
+ limit?: number;
646
+ countTotal?: boolean;
647
+ reverse?: boolean;
648
+ } & { [K_2 in Exclude<keyof I_1["pagination"], keyof PageRequest>]: never; };
649
+ } & { [K_3 in Exclude<keyof I_1, keyof QueryAllContractStateRequest>]: never; }>(object: I_1): QueryAllContractStateRequest;
650
+ };
651
+ export declare const QueryAllContractStateResponse: {
652
+ encode(message: QueryAllContractStateResponse, writer?: _m0.Writer): _m0.Writer;
653
+ decode(input: _m0.Reader | Uint8Array, length?: number): QueryAllContractStateResponse;
654
+ fromJSON(object: any): QueryAllContractStateResponse;
655
+ toJSON(message: QueryAllContractStateResponse): unknown;
656
+ create<I extends {
657
+ models?: {
658
+ key?: Uint8Array;
659
+ value?: Uint8Array;
660
+ }[];
661
+ pagination?: {
662
+ nextKey?: Uint8Array;
663
+ total?: number;
664
+ };
665
+ } & {
666
+ models?: {
667
+ key?: Uint8Array;
668
+ value?: Uint8Array;
669
+ }[] & ({
670
+ key?: Uint8Array;
671
+ value?: Uint8Array;
672
+ } & {
673
+ key?: Uint8Array;
674
+ value?: Uint8Array;
675
+ } & { [K in Exclude<keyof I["models"][number], keyof Model>]: never; })[] & { [K_1 in Exclude<keyof I["models"], keyof {
676
+ key?: Uint8Array;
677
+ value?: Uint8Array;
678
+ }[]>]: never; };
679
+ pagination?: {
680
+ nextKey?: Uint8Array;
681
+ total?: number;
682
+ } & {
683
+ nextKey?: Uint8Array;
684
+ total?: number;
685
+ } & { [K_2 in Exclude<keyof I["pagination"], keyof PageResponse>]: never; };
686
+ } & { [K_3 in Exclude<keyof I, keyof QueryAllContractStateResponse>]: never; }>(base?: I): QueryAllContractStateResponse;
687
+ fromPartial<I_1 extends {
688
+ models?: {
689
+ key?: Uint8Array;
690
+ value?: Uint8Array;
691
+ }[];
692
+ pagination?: {
693
+ nextKey?: Uint8Array;
694
+ total?: number;
695
+ };
696
+ } & {
697
+ models?: {
698
+ key?: Uint8Array;
699
+ value?: Uint8Array;
700
+ }[] & ({
701
+ key?: Uint8Array;
702
+ value?: Uint8Array;
703
+ } & {
704
+ key?: Uint8Array;
705
+ value?: Uint8Array;
706
+ } & { [K_4 in Exclude<keyof I_1["models"][number], keyof Model>]: never; })[] & { [K_5 in Exclude<keyof I_1["models"], keyof {
707
+ key?: Uint8Array;
708
+ value?: Uint8Array;
709
+ }[]>]: never; };
710
+ pagination?: {
711
+ nextKey?: Uint8Array;
712
+ total?: number;
713
+ } & {
714
+ nextKey?: Uint8Array;
715
+ total?: number;
716
+ } & { [K_6 in Exclude<keyof I_1["pagination"], keyof PageResponse>]: never; };
717
+ } & { [K_7 in Exclude<keyof I_1, keyof QueryAllContractStateResponse>]: never; }>(object: I_1): QueryAllContractStateResponse;
718
+ };
719
+ export declare const QueryRawContractStateRequest: {
720
+ encode(message: QueryRawContractStateRequest, writer?: _m0.Writer): _m0.Writer;
721
+ decode(input: _m0.Reader | Uint8Array, length?: number): QueryRawContractStateRequest;
722
+ fromJSON(object: any): QueryRawContractStateRequest;
723
+ toJSON(message: QueryRawContractStateRequest): unknown;
724
+ create<I extends {
725
+ address?: string;
726
+ queryData?: Uint8Array;
727
+ } & {
728
+ address?: string;
729
+ queryData?: Uint8Array;
730
+ } & { [K in Exclude<keyof I, keyof QueryRawContractStateRequest>]: never; }>(base?: I): QueryRawContractStateRequest;
731
+ fromPartial<I_1 extends {
732
+ address?: string;
733
+ queryData?: Uint8Array;
734
+ } & {
735
+ address?: string;
736
+ queryData?: Uint8Array;
737
+ } & { [K_1 in Exclude<keyof I_1, keyof QueryRawContractStateRequest>]: never; }>(object: I_1): QueryRawContractStateRequest;
738
+ };
739
+ export declare const QueryRawContractStateResponse: {
740
+ encode(message: QueryRawContractStateResponse, writer?: _m0.Writer): _m0.Writer;
741
+ decode(input: _m0.Reader | Uint8Array, length?: number): QueryRawContractStateResponse;
742
+ fromJSON(object: any): QueryRawContractStateResponse;
743
+ toJSON(message: QueryRawContractStateResponse): unknown;
744
+ create<I extends {
745
+ data?: Uint8Array;
746
+ } & {
747
+ data?: Uint8Array;
748
+ } & { [K in Exclude<keyof I, "data">]: never; }>(base?: I): QueryRawContractStateResponse;
749
+ fromPartial<I_1 extends {
750
+ data?: Uint8Array;
751
+ } & {
752
+ data?: Uint8Array;
753
+ } & { [K_1 in Exclude<keyof I_1, "data">]: never; }>(object: I_1): QueryRawContractStateResponse;
754
+ };
755
+ export declare const QuerySmartContractStateRequest: {
756
+ encode(message: QuerySmartContractStateRequest, writer?: _m0.Writer): _m0.Writer;
757
+ decode(input: _m0.Reader | Uint8Array, length?: number): QuerySmartContractStateRequest;
758
+ fromJSON(object: any): QuerySmartContractStateRequest;
759
+ toJSON(message: QuerySmartContractStateRequest): unknown;
760
+ create<I extends {
761
+ address?: string;
762
+ queryData?: Uint8Array;
763
+ } & {
764
+ address?: string;
765
+ queryData?: Uint8Array;
766
+ } & { [K in Exclude<keyof I, keyof QuerySmartContractStateRequest>]: never; }>(base?: I): QuerySmartContractStateRequest;
767
+ fromPartial<I_1 extends {
768
+ address?: string;
769
+ queryData?: Uint8Array;
770
+ } & {
771
+ address?: string;
772
+ queryData?: Uint8Array;
773
+ } & { [K_1 in Exclude<keyof I_1, keyof QuerySmartContractStateRequest>]: never; }>(object: I_1): QuerySmartContractStateRequest;
774
+ };
775
+ export declare const QuerySmartContractStateResponse: {
776
+ encode(message: QuerySmartContractStateResponse, writer?: _m0.Writer): _m0.Writer;
777
+ decode(input: _m0.Reader | Uint8Array, length?: number): QuerySmartContractStateResponse;
778
+ fromJSON(object: any): QuerySmartContractStateResponse;
779
+ toJSON(message: QuerySmartContractStateResponse): unknown;
780
+ create<I extends {
781
+ data?: Uint8Array;
782
+ } & {
783
+ data?: Uint8Array;
784
+ } & { [K in Exclude<keyof I, "data">]: never; }>(base?: I): QuerySmartContractStateResponse;
785
+ fromPartial<I_1 extends {
786
+ data?: Uint8Array;
787
+ } & {
788
+ data?: Uint8Array;
789
+ } & { [K_1 in Exclude<keyof I_1, "data">]: never; }>(object: I_1): QuerySmartContractStateResponse;
790
+ };
791
+ export declare const QueryCodeRequest: {
792
+ encode(message: QueryCodeRequest, writer?: _m0.Writer): _m0.Writer;
793
+ decode(input: _m0.Reader | Uint8Array, length?: number): QueryCodeRequest;
794
+ fromJSON(object: any): QueryCodeRequest;
795
+ toJSON(message: QueryCodeRequest): unknown;
796
+ create<I extends {
797
+ codeId?: number;
798
+ } & {
799
+ codeId?: number;
800
+ } & { [K in Exclude<keyof I, "codeId">]: never; }>(base?: I): QueryCodeRequest;
801
+ fromPartial<I_1 extends {
802
+ codeId?: number;
803
+ } & {
804
+ codeId?: number;
805
+ } & { [K_1 in Exclude<keyof I_1, "codeId">]: never; }>(object: I_1): QueryCodeRequest;
806
+ };
807
+ export declare const CodeInfoResponse: {
808
+ encode(message: CodeInfoResponse, writer?: _m0.Writer): _m0.Writer;
809
+ decode(input: _m0.Reader | Uint8Array, length?: number): CodeInfoResponse;
810
+ fromJSON(object: any): CodeInfoResponse;
811
+ toJSON(message: CodeInfoResponse): unknown;
812
+ create<I extends {
813
+ codeId?: number;
814
+ creator?: string;
815
+ dataHash?: Uint8Array;
816
+ instantiatePermission?: {
817
+ permission?: import("./types").AccessType;
818
+ address?: string;
819
+ addresses?: string[];
820
+ };
821
+ } & {
822
+ codeId?: number;
823
+ creator?: string;
824
+ dataHash?: Uint8Array;
825
+ instantiatePermission?: {
826
+ permission?: import("./types").AccessType;
827
+ address?: string;
828
+ addresses?: string[];
829
+ } & {
830
+ permission?: import("./types").AccessType;
831
+ address?: string;
832
+ addresses?: string[] & string[] & { [K in Exclude<keyof I["instantiatePermission"]["addresses"], keyof string[]>]: never; };
833
+ } & { [K_1 in Exclude<keyof I["instantiatePermission"], keyof AccessConfig>]: never; };
834
+ } & { [K_2 in Exclude<keyof I, keyof CodeInfoResponse>]: never; }>(base?: I): CodeInfoResponse;
835
+ fromPartial<I_1 extends {
836
+ codeId?: number;
837
+ creator?: string;
838
+ dataHash?: Uint8Array;
839
+ instantiatePermission?: {
840
+ permission?: import("./types").AccessType;
841
+ address?: string;
842
+ addresses?: string[];
843
+ };
844
+ } & {
845
+ codeId?: number;
846
+ creator?: string;
847
+ dataHash?: Uint8Array;
848
+ instantiatePermission?: {
849
+ permission?: import("./types").AccessType;
850
+ address?: string;
851
+ addresses?: string[];
852
+ } & {
853
+ permission?: import("./types").AccessType;
854
+ address?: string;
855
+ addresses?: string[] & string[] & { [K_3 in Exclude<keyof I_1["instantiatePermission"]["addresses"], keyof string[]>]: never; };
856
+ } & { [K_4 in Exclude<keyof I_1["instantiatePermission"], keyof AccessConfig>]: never; };
857
+ } & { [K_5 in Exclude<keyof I_1, keyof CodeInfoResponse>]: never; }>(object: I_1): CodeInfoResponse;
858
+ };
859
+ export declare const QueryCodeResponse: {
860
+ encode(message: QueryCodeResponse, writer?: _m0.Writer): _m0.Writer;
861
+ decode(input: _m0.Reader | Uint8Array, length?: number): QueryCodeResponse;
862
+ fromJSON(object: any): QueryCodeResponse;
863
+ toJSON(message: QueryCodeResponse): unknown;
864
+ create<I extends {
865
+ codeInfo?: {
866
+ codeId?: number;
867
+ creator?: string;
868
+ dataHash?: Uint8Array;
869
+ instantiatePermission?: {
870
+ permission?: import("./types").AccessType;
871
+ address?: string;
872
+ addresses?: string[];
873
+ };
874
+ };
875
+ data?: Uint8Array;
876
+ } & {
877
+ codeInfo?: {
878
+ codeId?: number;
879
+ creator?: string;
880
+ dataHash?: Uint8Array;
881
+ instantiatePermission?: {
882
+ permission?: import("./types").AccessType;
883
+ address?: string;
884
+ addresses?: string[];
885
+ };
886
+ } & {
887
+ codeId?: number;
888
+ creator?: string;
889
+ dataHash?: Uint8Array;
890
+ instantiatePermission?: {
891
+ permission?: import("./types").AccessType;
892
+ address?: string;
893
+ addresses?: string[];
894
+ } & {
895
+ permission?: import("./types").AccessType;
896
+ address?: string;
897
+ addresses?: string[] & string[] & { [K in Exclude<keyof I["codeInfo"]["instantiatePermission"]["addresses"], keyof string[]>]: never; };
898
+ } & { [K_1 in Exclude<keyof I["codeInfo"]["instantiatePermission"], keyof AccessConfig>]: never; };
899
+ } & { [K_2 in Exclude<keyof I["codeInfo"], keyof CodeInfoResponse>]: never; };
900
+ data?: Uint8Array;
901
+ } & { [K_3 in Exclude<keyof I, keyof QueryCodeResponse>]: never; }>(base?: I): QueryCodeResponse;
902
+ fromPartial<I_1 extends {
903
+ codeInfo?: {
904
+ codeId?: number;
905
+ creator?: string;
906
+ dataHash?: Uint8Array;
907
+ instantiatePermission?: {
908
+ permission?: import("./types").AccessType;
909
+ address?: string;
910
+ addresses?: string[];
911
+ };
912
+ };
913
+ data?: Uint8Array;
914
+ } & {
915
+ codeInfo?: {
916
+ codeId?: number;
917
+ creator?: string;
918
+ dataHash?: Uint8Array;
919
+ instantiatePermission?: {
920
+ permission?: import("./types").AccessType;
921
+ address?: string;
922
+ addresses?: string[];
923
+ };
924
+ } & {
925
+ codeId?: number;
926
+ creator?: string;
927
+ dataHash?: Uint8Array;
928
+ instantiatePermission?: {
929
+ permission?: import("./types").AccessType;
930
+ address?: string;
931
+ addresses?: string[];
932
+ } & {
933
+ permission?: import("./types").AccessType;
934
+ address?: string;
935
+ addresses?: string[] & string[] & { [K_4 in Exclude<keyof I_1["codeInfo"]["instantiatePermission"]["addresses"], keyof string[]>]: never; };
936
+ } & { [K_5 in Exclude<keyof I_1["codeInfo"]["instantiatePermission"], keyof AccessConfig>]: never; };
937
+ } & { [K_6 in Exclude<keyof I_1["codeInfo"], keyof CodeInfoResponse>]: never; };
938
+ data?: Uint8Array;
939
+ } & { [K_7 in Exclude<keyof I_1, keyof QueryCodeResponse>]: never; }>(object: I_1): QueryCodeResponse;
940
+ };
941
+ export declare const QueryCodesRequest: {
942
+ encode(message: QueryCodesRequest, writer?: _m0.Writer): _m0.Writer;
943
+ decode(input: _m0.Reader | Uint8Array, length?: number): QueryCodesRequest;
944
+ fromJSON(object: any): QueryCodesRequest;
945
+ toJSON(message: QueryCodesRequest): unknown;
946
+ create<I extends {
947
+ pagination?: {
948
+ key?: Uint8Array;
949
+ offset?: number;
950
+ limit?: number;
951
+ countTotal?: boolean;
952
+ reverse?: boolean;
953
+ };
954
+ } & {
955
+ pagination?: {
956
+ key?: Uint8Array;
957
+ offset?: number;
958
+ limit?: number;
959
+ countTotal?: boolean;
960
+ reverse?: boolean;
961
+ } & {
962
+ key?: Uint8Array;
963
+ offset?: number;
964
+ limit?: number;
965
+ countTotal?: boolean;
966
+ reverse?: boolean;
967
+ } & { [K in Exclude<keyof I["pagination"], keyof PageRequest>]: never; };
968
+ } & { [K_1 in Exclude<keyof I, "pagination">]: never; }>(base?: I): QueryCodesRequest;
969
+ fromPartial<I_1 extends {
970
+ pagination?: {
971
+ key?: Uint8Array;
972
+ offset?: number;
973
+ limit?: number;
974
+ countTotal?: boolean;
975
+ reverse?: boolean;
976
+ };
977
+ } & {
978
+ pagination?: {
979
+ key?: Uint8Array;
980
+ offset?: number;
981
+ limit?: number;
982
+ countTotal?: boolean;
983
+ reverse?: boolean;
984
+ } & {
985
+ key?: Uint8Array;
986
+ offset?: number;
987
+ limit?: number;
988
+ countTotal?: boolean;
989
+ reverse?: boolean;
990
+ } & { [K_2 in Exclude<keyof I_1["pagination"], keyof PageRequest>]: never; };
991
+ } & { [K_3 in Exclude<keyof I_1, "pagination">]: never; }>(object: I_1): QueryCodesRequest;
992
+ };
993
+ export declare const QueryCodesResponse: {
994
+ encode(message: QueryCodesResponse, writer?: _m0.Writer): _m0.Writer;
995
+ decode(input: _m0.Reader | Uint8Array, length?: number): QueryCodesResponse;
996
+ fromJSON(object: any): QueryCodesResponse;
997
+ toJSON(message: QueryCodesResponse): unknown;
998
+ create<I extends {
999
+ codeInfos?: {
1000
+ codeId?: number;
1001
+ creator?: string;
1002
+ dataHash?: Uint8Array;
1003
+ instantiatePermission?: {
1004
+ permission?: import("./types").AccessType;
1005
+ address?: string;
1006
+ addresses?: string[];
1007
+ };
1008
+ }[];
1009
+ pagination?: {
1010
+ nextKey?: Uint8Array;
1011
+ total?: number;
1012
+ };
1013
+ } & {
1014
+ codeInfos?: {
1015
+ codeId?: number;
1016
+ creator?: string;
1017
+ dataHash?: Uint8Array;
1018
+ instantiatePermission?: {
1019
+ permission?: import("./types").AccessType;
1020
+ address?: string;
1021
+ addresses?: string[];
1022
+ };
1023
+ }[] & ({
1024
+ codeId?: number;
1025
+ creator?: string;
1026
+ dataHash?: Uint8Array;
1027
+ instantiatePermission?: {
1028
+ permission?: import("./types").AccessType;
1029
+ address?: string;
1030
+ addresses?: string[];
1031
+ };
1032
+ } & {
1033
+ codeId?: number;
1034
+ creator?: string;
1035
+ dataHash?: Uint8Array;
1036
+ instantiatePermission?: {
1037
+ permission?: import("./types").AccessType;
1038
+ address?: string;
1039
+ addresses?: string[];
1040
+ } & {
1041
+ permission?: import("./types").AccessType;
1042
+ address?: string;
1043
+ addresses?: string[] & string[] & { [K in Exclude<keyof I["codeInfos"][number]["instantiatePermission"]["addresses"], keyof string[]>]: never; };
1044
+ } & { [K_1 in Exclude<keyof I["codeInfos"][number]["instantiatePermission"], keyof AccessConfig>]: never; };
1045
+ } & { [K_2 in Exclude<keyof I["codeInfos"][number], keyof CodeInfoResponse>]: never; })[] & { [K_3 in Exclude<keyof I["codeInfos"], keyof {
1046
+ codeId?: number;
1047
+ creator?: string;
1048
+ dataHash?: Uint8Array;
1049
+ instantiatePermission?: {
1050
+ permission?: import("./types").AccessType;
1051
+ address?: string;
1052
+ addresses?: string[];
1053
+ };
1054
+ }[]>]: never; };
1055
+ pagination?: {
1056
+ nextKey?: Uint8Array;
1057
+ total?: number;
1058
+ } & {
1059
+ nextKey?: Uint8Array;
1060
+ total?: number;
1061
+ } & { [K_4 in Exclude<keyof I["pagination"], keyof PageResponse>]: never; };
1062
+ } & { [K_5 in Exclude<keyof I, keyof QueryCodesResponse>]: never; }>(base?: I): QueryCodesResponse;
1063
+ fromPartial<I_1 extends {
1064
+ codeInfos?: {
1065
+ codeId?: number;
1066
+ creator?: string;
1067
+ dataHash?: Uint8Array;
1068
+ instantiatePermission?: {
1069
+ permission?: import("./types").AccessType;
1070
+ address?: string;
1071
+ addresses?: string[];
1072
+ };
1073
+ }[];
1074
+ pagination?: {
1075
+ nextKey?: Uint8Array;
1076
+ total?: number;
1077
+ };
1078
+ } & {
1079
+ codeInfos?: {
1080
+ codeId?: number;
1081
+ creator?: string;
1082
+ dataHash?: Uint8Array;
1083
+ instantiatePermission?: {
1084
+ permission?: import("./types").AccessType;
1085
+ address?: string;
1086
+ addresses?: string[];
1087
+ };
1088
+ }[] & ({
1089
+ codeId?: number;
1090
+ creator?: string;
1091
+ dataHash?: Uint8Array;
1092
+ instantiatePermission?: {
1093
+ permission?: import("./types").AccessType;
1094
+ address?: string;
1095
+ addresses?: string[];
1096
+ };
1097
+ } & {
1098
+ codeId?: number;
1099
+ creator?: string;
1100
+ dataHash?: Uint8Array;
1101
+ instantiatePermission?: {
1102
+ permission?: import("./types").AccessType;
1103
+ address?: string;
1104
+ addresses?: string[];
1105
+ } & {
1106
+ permission?: import("./types").AccessType;
1107
+ address?: string;
1108
+ addresses?: string[] & string[] & { [K_6 in Exclude<keyof I_1["codeInfos"][number]["instantiatePermission"]["addresses"], keyof string[]>]: never; };
1109
+ } & { [K_7 in Exclude<keyof I_1["codeInfos"][number]["instantiatePermission"], keyof AccessConfig>]: never; };
1110
+ } & { [K_8 in Exclude<keyof I_1["codeInfos"][number], keyof CodeInfoResponse>]: never; })[] & { [K_9 in Exclude<keyof I_1["codeInfos"], keyof {
1111
+ codeId?: number;
1112
+ creator?: string;
1113
+ dataHash?: Uint8Array;
1114
+ instantiatePermission?: {
1115
+ permission?: import("./types").AccessType;
1116
+ address?: string;
1117
+ addresses?: string[];
1118
+ };
1119
+ }[]>]: never; };
1120
+ pagination?: {
1121
+ nextKey?: Uint8Array;
1122
+ total?: number;
1123
+ } & {
1124
+ nextKey?: Uint8Array;
1125
+ total?: number;
1126
+ } & { [K_10 in Exclude<keyof I_1["pagination"], keyof PageResponse>]: never; };
1127
+ } & { [K_11 in Exclude<keyof I_1, keyof QueryCodesResponse>]: never; }>(object: I_1): QueryCodesResponse;
1128
+ };
1129
+ export declare const QueryPinnedCodesRequest: {
1130
+ encode(message: QueryPinnedCodesRequest, writer?: _m0.Writer): _m0.Writer;
1131
+ decode(input: _m0.Reader | Uint8Array, length?: number): QueryPinnedCodesRequest;
1132
+ fromJSON(object: any): QueryPinnedCodesRequest;
1133
+ toJSON(message: QueryPinnedCodesRequest): unknown;
1134
+ create<I extends {
1135
+ pagination?: {
1136
+ key?: Uint8Array;
1137
+ offset?: number;
1138
+ limit?: number;
1139
+ countTotal?: boolean;
1140
+ reverse?: boolean;
1141
+ };
1142
+ } & {
1143
+ pagination?: {
1144
+ key?: Uint8Array;
1145
+ offset?: number;
1146
+ limit?: number;
1147
+ countTotal?: boolean;
1148
+ reverse?: boolean;
1149
+ } & {
1150
+ key?: Uint8Array;
1151
+ offset?: number;
1152
+ limit?: number;
1153
+ countTotal?: boolean;
1154
+ reverse?: boolean;
1155
+ } & { [K in Exclude<keyof I["pagination"], keyof PageRequest>]: never; };
1156
+ } & { [K_1 in Exclude<keyof I, "pagination">]: never; }>(base?: I): QueryPinnedCodesRequest;
1157
+ fromPartial<I_1 extends {
1158
+ pagination?: {
1159
+ key?: Uint8Array;
1160
+ offset?: number;
1161
+ limit?: number;
1162
+ countTotal?: boolean;
1163
+ reverse?: boolean;
1164
+ };
1165
+ } & {
1166
+ pagination?: {
1167
+ key?: Uint8Array;
1168
+ offset?: number;
1169
+ limit?: number;
1170
+ countTotal?: boolean;
1171
+ reverse?: boolean;
1172
+ } & {
1173
+ key?: Uint8Array;
1174
+ offset?: number;
1175
+ limit?: number;
1176
+ countTotal?: boolean;
1177
+ reverse?: boolean;
1178
+ } & { [K_2 in Exclude<keyof I_1["pagination"], keyof PageRequest>]: never; };
1179
+ } & { [K_3 in Exclude<keyof I_1, "pagination">]: never; }>(object: I_1): QueryPinnedCodesRequest;
1180
+ };
1181
+ export declare const QueryPinnedCodesResponse: {
1182
+ encode(message: QueryPinnedCodesResponse, writer?: _m0.Writer): _m0.Writer;
1183
+ decode(input: _m0.Reader | Uint8Array, length?: number): QueryPinnedCodesResponse;
1184
+ fromJSON(object: any): QueryPinnedCodesResponse;
1185
+ toJSON(message: QueryPinnedCodesResponse): unknown;
1186
+ create<I extends {
1187
+ codeIds?: number[];
1188
+ pagination?: {
1189
+ nextKey?: Uint8Array;
1190
+ total?: number;
1191
+ };
1192
+ } & {
1193
+ codeIds?: number[] & number[] & { [K in Exclude<keyof I["codeIds"], keyof number[]>]: never; };
1194
+ pagination?: {
1195
+ nextKey?: Uint8Array;
1196
+ total?: number;
1197
+ } & {
1198
+ nextKey?: Uint8Array;
1199
+ total?: number;
1200
+ } & { [K_1 in Exclude<keyof I["pagination"], keyof PageResponse>]: never; };
1201
+ } & { [K_2 in Exclude<keyof I, keyof QueryPinnedCodesResponse>]: never; }>(base?: I): QueryPinnedCodesResponse;
1202
+ fromPartial<I_1 extends {
1203
+ codeIds?: number[];
1204
+ pagination?: {
1205
+ nextKey?: Uint8Array;
1206
+ total?: number;
1207
+ };
1208
+ } & {
1209
+ codeIds?: number[] & number[] & { [K_3 in Exclude<keyof I_1["codeIds"], keyof number[]>]: never; };
1210
+ pagination?: {
1211
+ nextKey?: Uint8Array;
1212
+ total?: number;
1213
+ } & {
1214
+ nextKey?: Uint8Array;
1215
+ total?: number;
1216
+ } & { [K_4 in Exclude<keyof I_1["pagination"], keyof PageResponse>]: never; };
1217
+ } & { [K_5 in Exclude<keyof I_1, keyof QueryPinnedCodesResponse>]: never; }>(object: I_1): QueryPinnedCodesResponse;
1218
+ };
1219
+ export declare const QueryParamsRequest: {
1220
+ encode(_: QueryParamsRequest, writer?: _m0.Writer): _m0.Writer;
1221
+ decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsRequest;
1222
+ fromJSON(_: any): QueryParamsRequest;
1223
+ toJSON(_: QueryParamsRequest): unknown;
1224
+ create<I extends {} & {} & { [K in Exclude<keyof I, never>]: never; }>(base?: I): QueryParamsRequest;
1225
+ fromPartial<I_1 extends {} & {} & { [K_1 in Exclude<keyof I_1, never>]: never; }>(_: I_1): QueryParamsRequest;
1226
+ };
1227
+ export declare const QueryParamsResponse: {
1228
+ encode(message: QueryParamsResponse, writer?: _m0.Writer): _m0.Writer;
1229
+ decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsResponse;
1230
+ fromJSON(object: any): QueryParamsResponse;
1231
+ toJSON(message: QueryParamsResponse): unknown;
1232
+ create<I extends {
1233
+ params?: {
1234
+ codeUploadAccess?: {
1235
+ permission?: import("./types").AccessType;
1236
+ address?: string;
1237
+ addresses?: string[];
1238
+ };
1239
+ instantiateDefaultPermission?: import("./types").AccessType;
1240
+ };
1241
+ } & {
1242
+ params?: {
1243
+ codeUploadAccess?: {
1244
+ permission?: import("./types").AccessType;
1245
+ address?: string;
1246
+ addresses?: string[];
1247
+ };
1248
+ instantiateDefaultPermission?: import("./types").AccessType;
1249
+ } & {
1250
+ codeUploadAccess?: {
1251
+ permission?: import("./types").AccessType;
1252
+ address?: string;
1253
+ addresses?: string[];
1254
+ } & {
1255
+ permission?: import("./types").AccessType;
1256
+ address?: string;
1257
+ addresses?: string[] & string[] & { [K in Exclude<keyof I["params"]["codeUploadAccess"]["addresses"], keyof string[]>]: never; };
1258
+ } & { [K_1 in Exclude<keyof I["params"]["codeUploadAccess"], keyof AccessConfig>]: never; };
1259
+ instantiateDefaultPermission?: import("./types").AccessType;
1260
+ } & { [K_2 in Exclude<keyof I["params"], keyof Params>]: never; };
1261
+ } & { [K_3 in Exclude<keyof I, "params">]: never; }>(base?: I): QueryParamsResponse;
1262
+ fromPartial<I_1 extends {
1263
+ params?: {
1264
+ codeUploadAccess?: {
1265
+ permission?: import("./types").AccessType;
1266
+ address?: string;
1267
+ addresses?: string[];
1268
+ };
1269
+ instantiateDefaultPermission?: import("./types").AccessType;
1270
+ };
1271
+ } & {
1272
+ params?: {
1273
+ codeUploadAccess?: {
1274
+ permission?: import("./types").AccessType;
1275
+ address?: string;
1276
+ addresses?: string[];
1277
+ };
1278
+ instantiateDefaultPermission?: import("./types").AccessType;
1279
+ } & {
1280
+ codeUploadAccess?: {
1281
+ permission?: import("./types").AccessType;
1282
+ address?: string;
1283
+ addresses?: string[];
1284
+ } & {
1285
+ permission?: import("./types").AccessType;
1286
+ address?: string;
1287
+ addresses?: string[] & string[] & { [K_4 in Exclude<keyof I_1["params"]["codeUploadAccess"]["addresses"], keyof string[]>]: never; };
1288
+ } & { [K_5 in Exclude<keyof I_1["params"]["codeUploadAccess"], keyof AccessConfig>]: never; };
1289
+ instantiateDefaultPermission?: import("./types").AccessType;
1290
+ } & { [K_6 in Exclude<keyof I_1["params"], keyof Params>]: never; };
1291
+ } & { [K_7 in Exclude<keyof I_1, "params">]: never; }>(object: I_1): QueryParamsResponse;
1292
+ };
1293
+ export declare const QueryContractsByCreatorRequest: {
1294
+ encode(message: QueryContractsByCreatorRequest, writer?: _m0.Writer): _m0.Writer;
1295
+ decode(input: _m0.Reader | Uint8Array, length?: number): QueryContractsByCreatorRequest;
1296
+ fromJSON(object: any): QueryContractsByCreatorRequest;
1297
+ toJSON(message: QueryContractsByCreatorRequest): unknown;
1298
+ create<I extends {
1299
+ creatorAddress?: string;
1300
+ pagination?: {
1301
+ key?: Uint8Array;
1302
+ offset?: number;
1303
+ limit?: number;
1304
+ countTotal?: boolean;
1305
+ reverse?: boolean;
1306
+ };
1307
+ } & {
1308
+ creatorAddress?: string;
1309
+ pagination?: {
1310
+ key?: Uint8Array;
1311
+ offset?: number;
1312
+ limit?: number;
1313
+ countTotal?: boolean;
1314
+ reverse?: boolean;
1315
+ } & {
1316
+ key?: Uint8Array;
1317
+ offset?: number;
1318
+ limit?: number;
1319
+ countTotal?: boolean;
1320
+ reverse?: boolean;
1321
+ } & { [K in Exclude<keyof I["pagination"], keyof PageRequest>]: never; };
1322
+ } & { [K_1 in Exclude<keyof I, keyof QueryContractsByCreatorRequest>]: never; }>(base?: I): QueryContractsByCreatorRequest;
1323
+ fromPartial<I_1 extends {
1324
+ creatorAddress?: string;
1325
+ pagination?: {
1326
+ key?: Uint8Array;
1327
+ offset?: number;
1328
+ limit?: number;
1329
+ countTotal?: boolean;
1330
+ reverse?: boolean;
1331
+ };
1332
+ } & {
1333
+ creatorAddress?: string;
1334
+ pagination?: {
1335
+ key?: Uint8Array;
1336
+ offset?: number;
1337
+ limit?: number;
1338
+ countTotal?: boolean;
1339
+ reverse?: boolean;
1340
+ } & {
1341
+ key?: Uint8Array;
1342
+ offset?: number;
1343
+ limit?: number;
1344
+ countTotal?: boolean;
1345
+ reverse?: boolean;
1346
+ } & { [K_2 in Exclude<keyof I_1["pagination"], keyof PageRequest>]: never; };
1347
+ } & { [K_3 in Exclude<keyof I_1, keyof QueryContractsByCreatorRequest>]: never; }>(object: I_1): QueryContractsByCreatorRequest;
1348
+ };
1349
+ export declare const QueryContractsByCreatorResponse: {
1350
+ encode(message: QueryContractsByCreatorResponse, writer?: _m0.Writer): _m0.Writer;
1351
+ decode(input: _m0.Reader | Uint8Array, length?: number): QueryContractsByCreatorResponse;
1352
+ fromJSON(object: any): QueryContractsByCreatorResponse;
1353
+ toJSON(message: QueryContractsByCreatorResponse): unknown;
1354
+ create<I extends {
1355
+ contractAddresses?: string[];
1356
+ pagination?: {
1357
+ nextKey?: Uint8Array;
1358
+ total?: number;
1359
+ };
1360
+ } & {
1361
+ contractAddresses?: string[] & string[] & { [K in Exclude<keyof I["contractAddresses"], keyof string[]>]: never; };
1362
+ pagination?: {
1363
+ nextKey?: Uint8Array;
1364
+ total?: number;
1365
+ } & {
1366
+ nextKey?: Uint8Array;
1367
+ total?: number;
1368
+ } & { [K_1 in Exclude<keyof I["pagination"], keyof PageResponse>]: never; };
1369
+ } & { [K_2 in Exclude<keyof I, keyof QueryContractsByCreatorResponse>]: never; }>(base?: I): QueryContractsByCreatorResponse;
1370
+ fromPartial<I_1 extends {
1371
+ contractAddresses?: string[];
1372
+ pagination?: {
1373
+ nextKey?: Uint8Array;
1374
+ total?: number;
1375
+ };
1376
+ } & {
1377
+ contractAddresses?: string[] & string[] & { [K_3 in Exclude<keyof I_1["contractAddresses"], keyof string[]>]: never; };
1378
+ pagination?: {
1379
+ nextKey?: Uint8Array;
1380
+ total?: number;
1381
+ } & {
1382
+ nextKey?: Uint8Array;
1383
+ total?: number;
1384
+ } & { [K_4 in Exclude<keyof I_1["pagination"], keyof PageResponse>]: never; };
1385
+ } & { [K_5 in Exclude<keyof I_1, keyof QueryContractsByCreatorResponse>]: never; }>(object: I_1): QueryContractsByCreatorResponse;
1386
+ };
1387
+ /** Query provides defines the gRPC querier service */
1388
+ export interface Query {
1389
+ /** ContractInfo gets the contract meta data */
1390
+ ContractInfo(request: QueryContractInfoRequest): Promise<QueryContractInfoResponse>;
1391
+ /** ContractHistory gets the contract code history */
1392
+ ContractHistory(request: QueryContractHistoryRequest): Promise<QueryContractHistoryResponse>;
1393
+ /** ContractsByCode lists all smart contracts for a code id */
1394
+ ContractsByCode(request: QueryContractsByCodeRequest): Promise<QueryContractsByCodeResponse>;
1395
+ /** AllContractState gets all raw store data for a single contract */
1396
+ AllContractState(request: QueryAllContractStateRequest): Promise<QueryAllContractStateResponse>;
1397
+ /** RawContractState gets single key from the raw store data of a contract */
1398
+ RawContractState(request: QueryRawContractStateRequest): Promise<QueryRawContractStateResponse>;
1399
+ /** SmartContractState get smart query result from the contract */
1400
+ SmartContractState(request: QuerySmartContractStateRequest): Promise<QuerySmartContractStateResponse>;
1401
+ /** Code gets the binary code and metadata for a singe wasm code */
1402
+ Code(request: QueryCodeRequest): Promise<QueryCodeResponse>;
1403
+ /** Codes gets the metadata for all stored wasm codes */
1404
+ Codes(request: QueryCodesRequest): Promise<QueryCodesResponse>;
1405
+ /** PinnedCodes gets the pinned code ids */
1406
+ PinnedCodes(request: QueryPinnedCodesRequest): Promise<QueryPinnedCodesResponse>;
1407
+ /** Params gets the module params */
1408
+ Params(request: QueryParamsRequest): Promise<QueryParamsResponse>;
1409
+ /** ContractsByCreator gets the contracts by creator */
1410
+ ContractsByCreator(request: QueryContractsByCreatorRequest): Promise<QueryContractsByCreatorResponse>;
1411
+ }
1412
+ export declare class QueryClientImpl implements Query {
1413
+ private readonly rpc;
1414
+ private readonly service;
1415
+ constructor(rpc: Rpc, opts?: {
1416
+ service?: string;
1417
+ });
1418
+ ContractInfo(request: QueryContractInfoRequest): Promise<QueryContractInfoResponse>;
1419
+ ContractHistory(request: QueryContractHistoryRequest): Promise<QueryContractHistoryResponse>;
1420
+ ContractsByCode(request: QueryContractsByCodeRequest): Promise<QueryContractsByCodeResponse>;
1421
+ AllContractState(request: QueryAllContractStateRequest): Promise<QueryAllContractStateResponse>;
1422
+ RawContractState(request: QueryRawContractStateRequest): Promise<QueryRawContractStateResponse>;
1423
+ SmartContractState(request: QuerySmartContractStateRequest): Promise<QuerySmartContractStateResponse>;
1424
+ Code(request: QueryCodeRequest): Promise<QueryCodeResponse>;
1425
+ Codes(request: QueryCodesRequest): Promise<QueryCodesResponse>;
1426
+ PinnedCodes(request: QueryPinnedCodesRequest): Promise<QueryPinnedCodesResponse>;
1427
+ Params(request: QueryParamsRequest): Promise<QueryParamsResponse>;
1428
+ ContractsByCreator(request: QueryContractsByCreatorRequest): Promise<QueryContractsByCreatorResponse>;
1429
+ }
1430
+ interface Rpc {
1431
+ request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
1432
+ }
1433
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
1434
+ export type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
1435
+ [K in keyof T]?: DeepPartial<T[K]>;
1436
+ } : Partial<T>;
1437
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
1438
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
1439
+ [K in keyof P]: Exact<P[K], I[K]>;
1440
+ } & {
1441
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
1442
+ };
1443
+ export {};