coreum-js 2.16.2 → 2.17.0

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 (203) hide show
  1. package/dist/main/client/index.js +16 -17
  2. package/dist/main/coreum/asset/ft/v1/authz.d.ts +38 -0
  3. package/dist/main/coreum/asset/ft/v1/authz.js +122 -0
  4. package/dist/main/coreum/asset/ft/v1/event.d.ts +52 -120
  5. package/dist/main/coreum/asset/ft/v1/event.js +744 -138
  6. package/dist/main/coreum/asset/ft/v1/genesis.d.ts +31 -517
  7. package/dist/main/coreum/asset/ft/v1/genesis.js +273 -62
  8. package/dist/main/coreum/asset/ft/v1/params.d.ts +12 -63
  9. package/dist/main/coreum/asset/ft/v1/params.js +37 -33
  10. package/dist/main/coreum/asset/ft/v1/query.d.ts +86 -1950
  11. package/dist/main/coreum/asset/ft/v1/query.js +697 -217
  12. package/dist/main/coreum/asset/ft/v1/token.d.ts +17 -249
  13. package/dist/main/coreum/asset/ft/v1/token.js +273 -197
  14. package/dist/main/coreum/asset/ft/v1/tx.d.ts +30 -755
  15. package/dist/main/coreum/asset/ft/v1/tx.js +502 -386
  16. package/dist/main/coreum/asset/index.d.ts +2 -3
  17. package/dist/main/coreum/asset/nft/v1/authz.d.ts +33 -0
  18. package/dist/main/coreum/asset/nft/v1/authz.js +137 -0
  19. package/dist/main/coreum/asset/nft/v1/event.d.ts +35 -147
  20. package/dist/main/coreum/asset/nft/v1/event.js +475 -147
  21. package/dist/main/coreum/asset/nft/v1/genesis.d.ts +27 -286
  22. package/dist/main/coreum/asset/nft/v1/genesis.js +311 -119
  23. package/dist/main/coreum/asset/nft/v1/nft.d.ts +20 -108
  24. package/dist/main/coreum/asset/nft/v1/nft.js +136 -101
  25. package/dist/main/coreum/asset/nft/v1/params.d.ts +12 -38
  26. package/dist/main/coreum/asset/nft/v1/params.js +17 -20
  27. package/dist/main/coreum/asset/nft/v1/query.d.ts +110 -706
  28. package/dist/main/coreum/asset/nft/v1/query.js +1079 -185
  29. package/dist/main/coreum/asset/nft/v1/tx.d.ts +96 -266
  30. package/dist/main/coreum/asset/nft/v1/tx.js +865 -234
  31. package/dist/main/coreum/asset/nft/v1/types.d.ts +38 -19
  32. package/dist/main/coreum/asset/nft/v1/types.js +273 -45
  33. package/dist/main/coreum/customparams/v1/genesis.d.ts +12 -32
  34. package/dist/main/coreum/customparams/v1/genesis.js +26 -22
  35. package/dist/main/coreum/customparams/v1/params.d.ts +11 -19
  36. package/dist/main/coreum/customparams/v1/params.js +23 -20
  37. package/dist/main/coreum/customparams/v1/query.d.ts +14 -40
  38. package/dist/main/coreum/customparams/v1/query.js +35 -29
  39. package/dist/main/coreum/dex/index.d.ts +1 -0
  40. package/dist/main/coreum/dex/index.js +12 -0
  41. package/dist/main/coreum/dex/v1/event.d.ts +73 -0
  42. package/dist/main/coreum/dex/v1/event.js +470 -0
  43. package/dist/main/coreum/dex/v1/genesis.d.ts +49 -0
  44. package/dist/main/coreum/dex/v1/genesis.js +318 -0
  45. package/dist/main/coreum/dex/v1/order.d.ts +172 -0
  46. package/dist/main/coreum/dex/v1/order.js +1137 -0
  47. package/dist/main/coreum/dex/v1/params.d.ts +34 -0
  48. package/dist/main/coreum/dex/v1/params.js +139 -0
  49. package/dist/main/coreum/dex/v1/query.d.ts +133 -0
  50. package/dist/main/coreum/dex/v1/query.js +873 -0
  51. package/dist/main/coreum/dex/v1/tx.d.ts +102 -0
  52. package/dist/main/coreum/dex/v1/tx.js +521 -0
  53. package/dist/main/coreum/extensions/dex.d.ts +12 -0
  54. package/dist/main/coreum/extensions/dex.js +32 -0
  55. package/dist/main/coreum/feemodel/v1/genesis.d.ts +13 -233
  56. package/dist/main/coreum/feemodel/v1/genesis.js +23 -24
  57. package/dist/main/coreum/feemodel/v1/params.d.ts +14 -337
  58. package/dist/main/coreum/feemodel/v1/params.js +113 -66
  59. package/dist/main/coreum/feemodel/v1/query.d.ts +30 -261
  60. package/dist/main/coreum/feemodel/v1/query.js +196 -43
  61. package/dist/main/coreum/index.d.ts +46 -0
  62. package/dist/main/coreum/index.js +58 -1
  63. package/dist/main/coreum/nft/index.d.ts +1 -2
  64. package/dist/main/coreum/nft/v1beta1/event.d.ts +23 -79
  65. package/dist/main/coreum/nft/v1beta1/event.js +103 -77
  66. package/dist/main/coreum/nft/v1beta1/genesis.d.ts +13 -435
  67. package/dist/main/coreum/nft/v1beta1/genesis.js +50 -52
  68. package/dist/main/coreum/nft/v1beta1/nft.d.ts +15 -114
  69. package/dist/main/coreum/nft/v1beta1/nft.js +111 -81
  70. package/dist/main/coreum/nft/v1beta1/query.d.ts +54 -1628
  71. package/dist/main/coreum/nft/v1beta1/query.js +259 -223
  72. package/dist/main/coreum/nft/v1beta1/tx.d.ts +13 -39
  73. package/dist/main/coreum/nft/v1beta1/tx.js +54 -43
  74. package/dist/main/cosmos/extensions/distribution.d.ts +4 -4
  75. package/dist/main/cosmos/extensions/distribution.js +9 -9
  76. package/dist/main/cosmos/extensions/gov.d.ts +13 -13
  77. package/dist/main/cosmos/extensions/gov.js +14 -8
  78. package/dist/main/cosmos/index.d.ts +8 -8
  79. package/dist/main/google/api/http.js +18 -21
  80. package/dist/main/google/protobuf/any.js +3 -4
  81. package/dist/main/google/protobuf/duration.js +3 -4
  82. package/dist/main/google/protobuf/timestamp.js +3 -4
  83. package/dist/main/services/cosmostation.js +1 -1
  84. package/dist/main/tendermint/abci/types.js +183 -223
  85. package/dist/main/tendermint/crypto/keys.js +3 -4
  86. package/dist/main/tendermint/crypto/proof.js +19 -24
  87. package/dist/main/tendermint/types/params.js +15 -20
  88. package/dist/main/tendermint/types/types.js +57 -68
  89. package/dist/main/tendermint/types/validator.js +10 -13
  90. package/dist/main/tendermint/version/types.js +6 -8
  91. package/dist/main/types/core.d.ts +2 -1
  92. package/dist/main/types/core.js +2 -0
  93. package/dist/main/wasm/v1/authz.d.ts +20 -471
  94. package/dist/main/wasm/v1/authz.js +129 -148
  95. package/dist/main/wasm/v1/genesis.d.ts +14 -1020
  96. package/dist/main/wasm/v1/genesis.js +169 -140
  97. package/dist/main/wasm/v1/ibc.d.ts +13 -62
  98. package/dist/main/wasm/v1/ibc.js +91 -76
  99. package/dist/main/wasm/v1/index.d.ts +1 -2
  100. package/dist/main/wasm/v1/pagination.js +9 -11
  101. package/dist/main/wasm/v1/proposal.d.ts +23 -720
  102. package/dist/main/wasm/v1/proposal.js +634 -465
  103. package/dist/main/wasm/v1/query.d.ts +35 -1201
  104. package/dist/main/wasm/v1/query.js +370 -363
  105. package/dist/main/wasm/v1/tx.d.ts +37 -788
  106. package/dist/main/wasm/v1/tx.js +621 -497
  107. package/dist/main/wasm/v1/types.d.ts +19 -297
  108. package/dist/main/wasm/v1/types.js +219 -190
  109. package/dist/module/client/index.js +4 -3
  110. package/dist/module/coreum/asset/ft/v1/authz.d.ts +38 -0
  111. package/dist/module/coreum/asset/ft/v1/authz.js +119 -0
  112. package/dist/module/coreum/asset/ft/v1/event.d.ts +52 -120
  113. package/dist/module/coreum/asset/ft/v1/event.js +721 -109
  114. package/dist/module/coreum/asset/ft/v1/genesis.d.ts +31 -517
  115. package/dist/module/coreum/asset/ft/v1/genesis.js +266 -50
  116. package/dist/module/coreum/asset/ft/v1/params.d.ts +12 -63
  117. package/dist/module/coreum/asset/ft/v1/params.js +35 -27
  118. package/dist/module/coreum/asset/ft/v1/query.d.ts +86 -1950
  119. package/dist/module/coreum/asset/ft/v1/query.js +672 -180
  120. package/dist/module/coreum/asset/ft/v1/token.d.ts +17 -249
  121. package/dist/module/coreum/asset/ft/v1/token.js +236 -152
  122. package/dist/module/coreum/asset/ft/v1/tx.d.ts +30 -755
  123. package/dist/module/coreum/asset/ft/v1/tx.js +437 -301
  124. package/dist/module/coreum/asset/index.d.ts +2 -3
  125. package/dist/module/coreum/asset/nft/v1/authz.d.ts +33 -0
  126. package/dist/module/coreum/asset/nft/v1/authz.js +134 -0
  127. package/dist/module/coreum/asset/nft/v1/event.d.ts +35 -147
  128. package/dist/module/coreum/asset/nft/v1/event.js +448 -112
  129. package/dist/module/coreum/asset/nft/v1/genesis.d.ts +27 -286
  130. package/dist/module/coreum/asset/nft/v1/genesis.js +299 -100
  131. package/dist/module/coreum/asset/nft/v1/nft.d.ts +20 -108
  132. package/dist/module/coreum/asset/nft/v1/nft.js +121 -81
  133. package/dist/module/coreum/asset/nft/v1/params.d.ts +12 -38
  134. package/dist/module/coreum/asset/nft/v1/params.js +16 -16
  135. package/dist/module/coreum/asset/nft/v1/query.d.ts +110 -706
  136. package/dist/module/coreum/asset/nft/v1/query.js +1057 -153
  137. package/dist/module/coreum/asset/nft/v1/tx.d.ts +96 -266
  138. package/dist/module/coreum/asset/nft/v1/tx.js +825 -184
  139. package/dist/module/coreum/asset/nft/v1/types.d.ts +38 -19
  140. package/dist/module/coreum/asset/nft/v1/types.js +269 -39
  141. package/dist/module/coreum/customparams/v1/genesis.d.ts +12 -32
  142. package/dist/module/coreum/customparams/v1/genesis.js +25 -18
  143. package/dist/module/coreum/customparams/v1/params.d.ts +11 -19
  144. package/dist/module/coreum/customparams/v1/params.js +21 -14
  145. package/dist/module/coreum/customparams/v1/query.d.ts +14 -40
  146. package/dist/module/coreum/customparams/v1/query.js +32 -23
  147. package/dist/module/coreum/dex/index.d.ts +1 -0
  148. package/dist/module/coreum/dex/index.js +9 -0
  149. package/dist/module/coreum/dex/v1/event.d.ts +73 -0
  150. package/dist/module/coreum/dex/v1/event.js +467 -0
  151. package/dist/module/coreum/dex/v1/genesis.d.ts +49 -0
  152. package/dist/module/coreum/dex/v1/genesis.js +315 -0
  153. package/dist/module/coreum/dex/v1/order.d.ts +172 -0
  154. package/dist/module/coreum/dex/v1/order.js +1128 -0
  155. package/dist/module/coreum/dex/v1/params.d.ts +34 -0
  156. package/dist/module/coreum/dex/v1/params.js +136 -0
  157. package/dist/module/coreum/dex/v1/query.d.ts +133 -0
  158. package/dist/module/coreum/dex/v1/query.js +871 -0
  159. package/dist/module/coreum/dex/v1/tx.d.ts +102 -0
  160. package/dist/module/coreum/dex/v1/tx.js +519 -0
  161. package/dist/module/coreum/extensions/dex.d.ts +12 -0
  162. package/dist/module/coreum/extensions/dex.js +28 -0
  163. package/dist/module/coreum/feemodel/v1/genesis.d.ts +13 -233
  164. package/dist/module/coreum/feemodel/v1/genesis.js +22 -20
  165. package/dist/module/coreum/feemodel/v1/params.d.ts +14 -337
  166. package/dist/module/coreum/feemodel/v1/params.js +105 -54
  167. package/dist/module/coreum/feemodel/v1/query.d.ts +30 -261
  168. package/dist/module/coreum/feemodel/v1/query.js +191 -35
  169. package/dist/module/coreum/index.d.ts +46 -0
  170. package/dist/module/coreum/index.js +57 -0
  171. package/dist/module/coreum/nft/index.d.ts +1 -2
  172. package/dist/module/coreum/nft/v1beta1/event.d.ts +23 -79
  173. package/dist/module/coreum/nft/v1beta1/event.js +90 -58
  174. package/dist/module/coreum/nft/v1beta1/genesis.d.ts +13 -435
  175. package/dist/module/coreum/nft/v1beta1/genesis.js +44 -41
  176. package/dist/module/coreum/nft/v1beta1/nft.d.ts +15 -114
  177. package/dist/module/coreum/nft/v1beta1/nft.js +99 -64
  178. package/dist/module/coreum/nft/v1beta1/query.d.ts +54 -1628
  179. package/dist/module/coreum/nft/v1beta1/query.js +231 -183
  180. package/dist/module/coreum/nft/v1beta1/tx.d.ts +13 -39
  181. package/dist/module/coreum/nft/v1beta1/tx.js +47 -32
  182. package/dist/module/cosmos/extensions/distribution.d.ts +4 -4
  183. package/dist/module/cosmos/extensions/gov.d.ts +13 -13
  184. package/dist/module/cosmos/index.d.ts +8 -8
  185. package/dist/module/services/cosmostation.js +1 -1
  186. package/dist/module/types/core.d.ts +2 -1
  187. package/dist/module/types/core.js +2 -0
  188. package/dist/module/wasm/v1/authz.d.ts +20 -471
  189. package/dist/module/wasm/v1/authz.js +111 -119
  190. package/dist/module/wasm/v1/genesis.d.ts +14 -1020
  191. package/dist/module/wasm/v1/genesis.js +161 -125
  192. package/dist/module/wasm/v1/ibc.d.ts +13 -62
  193. package/dist/module/wasm/v1/ibc.js +83 -62
  194. package/dist/module/wasm/v1/index.d.ts +1 -2
  195. package/dist/module/wasm/v1/proposal.d.ts +23 -720
  196. package/dist/module/wasm/v1/proposal.js +562 -377
  197. package/dist/module/wasm/v1/query.d.ts +35 -1201
  198. package/dist/module/wasm/v1/query.js +330 -301
  199. package/dist/module/wasm/v1/tx.d.ts +37 -788
  200. package/dist/module/wasm/v1/tx.js +551 -404
  201. package/dist/module/wasm/v1/types.d.ts +19 -297
  202. package/dist/module/wasm/v1/types.js +196 -156
  203. package/package.json +11 -10
@@ -1,6 +1,6 @@
1
- import _m0 from "protobufjs/minimal";
1
+ import { BinaryReader, BinaryWriter } from "cosmjs-types/binary";
2
2
  import { Coin } from "cosmjs-types/cosmos/base/v1beta1/coin";
3
- import { Any } from "../../google/protobuf/any";
3
+ import { Any } from "cosmjs-types/google/protobuf/any";
4
4
  export declare const protobufPackage = "cosmwasm.wasm.v1";
5
5
  /**
6
6
  * ContractExecutionAuthorization defines authorization for wasm execute.
@@ -89,476 +89,17 @@ export interface AcceptedMessagesFilter {
89
89
  /** Messages is the list of raw contract messages */
90
90
  messages: Uint8Array[];
91
91
  }
92
- export declare const ContractExecutionAuthorization: {
93
- encode(message: ContractExecutionAuthorization, writer?: _m0.Writer): _m0.Writer;
94
- decode(input: _m0.Reader | Uint8Array, length?: number): ContractExecutionAuthorization;
95
- fromJSON(object: any): ContractExecutionAuthorization;
96
- toJSON(message: ContractExecutionAuthorization): unknown;
97
- create<I extends {
98
- grants?: {
99
- contract?: string;
100
- limit?: {
101
- typeUrl?: string;
102
- value?: Uint8Array;
103
- };
104
- filter?: {
105
- typeUrl?: string;
106
- value?: Uint8Array;
107
- };
108
- }[];
109
- } & {
110
- grants?: {
111
- contract?: string;
112
- limit?: {
113
- typeUrl?: string;
114
- value?: Uint8Array;
115
- };
116
- filter?: {
117
- typeUrl?: string;
118
- value?: Uint8Array;
119
- };
120
- }[] & ({
121
- contract?: string;
122
- limit?: {
123
- typeUrl?: string;
124
- value?: Uint8Array;
125
- };
126
- filter?: {
127
- typeUrl?: string;
128
- value?: Uint8Array;
129
- };
130
- } & {
131
- contract?: string;
132
- limit?: {
133
- typeUrl?: string;
134
- value?: Uint8Array;
135
- } & {
136
- typeUrl?: string;
137
- value?: Uint8Array;
138
- } & { [K in Exclude<keyof I["grants"][number]["limit"], keyof Any>]: never; };
139
- filter?: {
140
- typeUrl?: string;
141
- value?: Uint8Array;
142
- } & {
143
- typeUrl?: string;
144
- value?: Uint8Array;
145
- } & { [K_1 in Exclude<keyof I["grants"][number]["filter"], keyof Any>]: never; };
146
- } & { [K_2 in Exclude<keyof I["grants"][number], keyof ContractGrant>]: never; })[] & { [K_3 in Exclude<keyof I["grants"], keyof {
147
- contract?: string;
148
- limit?: {
149
- typeUrl?: string;
150
- value?: Uint8Array;
151
- };
152
- filter?: {
153
- typeUrl?: string;
154
- value?: Uint8Array;
155
- };
156
- }[]>]: never; };
157
- } & { [K_4 in Exclude<keyof I, "grants">]: never; }>(base?: I): ContractExecutionAuthorization;
158
- fromPartial<I_1 extends {
159
- grants?: {
160
- contract?: string;
161
- limit?: {
162
- typeUrl?: string;
163
- value?: Uint8Array;
164
- };
165
- filter?: {
166
- typeUrl?: string;
167
- value?: Uint8Array;
168
- };
169
- }[];
170
- } & {
171
- grants?: {
172
- contract?: string;
173
- limit?: {
174
- typeUrl?: string;
175
- value?: Uint8Array;
176
- };
177
- filter?: {
178
- typeUrl?: string;
179
- value?: Uint8Array;
180
- };
181
- }[] & ({
182
- contract?: string;
183
- limit?: {
184
- typeUrl?: string;
185
- value?: Uint8Array;
186
- };
187
- filter?: {
188
- typeUrl?: string;
189
- value?: Uint8Array;
190
- };
191
- } & {
192
- contract?: string;
193
- limit?: {
194
- typeUrl?: string;
195
- value?: Uint8Array;
196
- } & {
197
- typeUrl?: string;
198
- value?: Uint8Array;
199
- } & { [K_5 in Exclude<keyof I_1["grants"][number]["limit"], keyof Any>]: never; };
200
- filter?: {
201
- typeUrl?: string;
202
- value?: Uint8Array;
203
- } & {
204
- typeUrl?: string;
205
- value?: Uint8Array;
206
- } & { [K_6 in Exclude<keyof I_1["grants"][number]["filter"], keyof Any>]: never; };
207
- } & { [K_7 in Exclude<keyof I_1["grants"][number], keyof ContractGrant>]: never; })[] & { [K_8 in Exclude<keyof I_1["grants"], keyof {
208
- contract?: string;
209
- limit?: {
210
- typeUrl?: string;
211
- value?: Uint8Array;
212
- };
213
- filter?: {
214
- typeUrl?: string;
215
- value?: Uint8Array;
216
- };
217
- }[]>]: never; };
218
- } & { [K_9 in Exclude<keyof I_1, "grants">]: never; }>(object: I_1): ContractExecutionAuthorization;
219
- };
220
- export declare const ContractMigrationAuthorization: {
221
- encode(message: ContractMigrationAuthorization, writer?: _m0.Writer): _m0.Writer;
222
- decode(input: _m0.Reader | Uint8Array, length?: number): ContractMigrationAuthorization;
223
- fromJSON(object: any): ContractMigrationAuthorization;
224
- toJSON(message: ContractMigrationAuthorization): unknown;
225
- create<I extends {
226
- grants?: {
227
- contract?: string;
228
- limit?: {
229
- typeUrl?: string;
230
- value?: Uint8Array;
231
- };
232
- filter?: {
233
- typeUrl?: string;
234
- value?: Uint8Array;
235
- };
236
- }[];
237
- } & {
238
- grants?: {
239
- contract?: string;
240
- limit?: {
241
- typeUrl?: string;
242
- value?: Uint8Array;
243
- };
244
- filter?: {
245
- typeUrl?: string;
246
- value?: Uint8Array;
247
- };
248
- }[] & ({
249
- contract?: string;
250
- limit?: {
251
- typeUrl?: string;
252
- value?: Uint8Array;
253
- };
254
- filter?: {
255
- typeUrl?: string;
256
- value?: Uint8Array;
257
- };
258
- } & {
259
- contract?: string;
260
- limit?: {
261
- typeUrl?: string;
262
- value?: Uint8Array;
263
- } & {
264
- typeUrl?: string;
265
- value?: Uint8Array;
266
- } & { [K in Exclude<keyof I["grants"][number]["limit"], keyof Any>]: never; };
267
- filter?: {
268
- typeUrl?: string;
269
- value?: Uint8Array;
270
- } & {
271
- typeUrl?: string;
272
- value?: Uint8Array;
273
- } & { [K_1 in Exclude<keyof I["grants"][number]["filter"], keyof Any>]: never; };
274
- } & { [K_2 in Exclude<keyof I["grants"][number], keyof ContractGrant>]: never; })[] & { [K_3 in Exclude<keyof I["grants"], keyof {
275
- contract?: string;
276
- limit?: {
277
- typeUrl?: string;
278
- value?: Uint8Array;
279
- };
280
- filter?: {
281
- typeUrl?: string;
282
- value?: Uint8Array;
283
- };
284
- }[]>]: never; };
285
- } & { [K_4 in Exclude<keyof I, "grants">]: never; }>(base?: I): ContractMigrationAuthorization;
286
- fromPartial<I_1 extends {
287
- grants?: {
288
- contract?: string;
289
- limit?: {
290
- typeUrl?: string;
291
- value?: Uint8Array;
292
- };
293
- filter?: {
294
- typeUrl?: string;
295
- value?: Uint8Array;
296
- };
297
- }[];
298
- } & {
299
- grants?: {
300
- contract?: string;
301
- limit?: {
302
- typeUrl?: string;
303
- value?: Uint8Array;
304
- };
305
- filter?: {
306
- typeUrl?: string;
307
- value?: Uint8Array;
308
- };
309
- }[] & ({
310
- contract?: string;
311
- limit?: {
312
- typeUrl?: string;
313
- value?: Uint8Array;
314
- };
315
- filter?: {
316
- typeUrl?: string;
317
- value?: Uint8Array;
318
- };
319
- } & {
320
- contract?: string;
321
- limit?: {
322
- typeUrl?: string;
323
- value?: Uint8Array;
324
- } & {
325
- typeUrl?: string;
326
- value?: Uint8Array;
327
- } & { [K_5 in Exclude<keyof I_1["grants"][number]["limit"], keyof Any>]: never; };
328
- filter?: {
329
- typeUrl?: string;
330
- value?: Uint8Array;
331
- } & {
332
- typeUrl?: string;
333
- value?: Uint8Array;
334
- } & { [K_6 in Exclude<keyof I_1["grants"][number]["filter"], keyof Any>]: never; };
335
- } & { [K_7 in Exclude<keyof I_1["grants"][number], keyof ContractGrant>]: never; })[] & { [K_8 in Exclude<keyof I_1["grants"], keyof {
336
- contract?: string;
337
- limit?: {
338
- typeUrl?: string;
339
- value?: Uint8Array;
340
- };
341
- filter?: {
342
- typeUrl?: string;
343
- value?: Uint8Array;
344
- };
345
- }[]>]: never; };
346
- } & { [K_9 in Exclude<keyof I_1, "grants">]: never; }>(object: I_1): ContractMigrationAuthorization;
347
- };
348
- export declare const ContractGrant: {
349
- encode(message: ContractGrant, writer?: _m0.Writer): _m0.Writer;
350
- decode(input: _m0.Reader | Uint8Array, length?: number): ContractGrant;
351
- fromJSON(object: any): ContractGrant;
352
- toJSON(message: ContractGrant): unknown;
353
- create<I extends {
354
- contract?: string;
355
- limit?: {
356
- typeUrl?: string;
357
- value?: Uint8Array;
358
- };
359
- filter?: {
360
- typeUrl?: string;
361
- value?: Uint8Array;
362
- };
363
- } & {
364
- contract?: string;
365
- limit?: {
366
- typeUrl?: string;
367
- value?: Uint8Array;
368
- } & {
369
- typeUrl?: string;
370
- value?: Uint8Array;
371
- } & { [K in Exclude<keyof I["limit"], keyof Any>]: never; };
372
- filter?: {
373
- typeUrl?: string;
374
- value?: Uint8Array;
375
- } & {
376
- typeUrl?: string;
377
- value?: Uint8Array;
378
- } & { [K_1 in Exclude<keyof I["filter"], keyof Any>]: never; };
379
- } & { [K_2 in Exclude<keyof I, keyof ContractGrant>]: never; }>(base?: I): ContractGrant;
380
- fromPartial<I_1 extends {
381
- contract?: string;
382
- limit?: {
383
- typeUrl?: string;
384
- value?: Uint8Array;
385
- };
386
- filter?: {
387
- typeUrl?: string;
388
- value?: Uint8Array;
389
- };
390
- } & {
391
- contract?: string;
392
- limit?: {
393
- typeUrl?: string;
394
- value?: Uint8Array;
395
- } & {
396
- typeUrl?: string;
397
- value?: Uint8Array;
398
- } & { [K_3 in Exclude<keyof I_1["limit"], keyof Any>]: never; };
399
- filter?: {
400
- typeUrl?: string;
401
- value?: Uint8Array;
402
- } & {
403
- typeUrl?: string;
404
- value?: Uint8Array;
405
- } & { [K_4 in Exclude<keyof I_1["filter"], keyof Any>]: never; };
406
- } & { [K_5 in Exclude<keyof I_1, keyof ContractGrant>]: never; }>(object: I_1): ContractGrant;
407
- };
408
- export declare const MaxCallsLimit: {
409
- encode(message: MaxCallsLimit, writer?: _m0.Writer): _m0.Writer;
410
- decode(input: _m0.Reader | Uint8Array, length?: number): MaxCallsLimit;
411
- fromJSON(object: any): MaxCallsLimit;
412
- toJSON(message: MaxCallsLimit): unknown;
413
- create<I extends {
414
- remaining?: number;
415
- } & {
416
- remaining?: number;
417
- } & { [K in Exclude<keyof I, "remaining">]: never; }>(base?: I): MaxCallsLimit;
418
- fromPartial<I_1 extends {
419
- remaining?: number;
420
- } & {
421
- remaining?: number;
422
- } & { [K_1 in Exclude<keyof I_1, "remaining">]: never; }>(object: I_1): MaxCallsLimit;
423
- };
424
- export declare const MaxFundsLimit: {
425
- encode(message: MaxFundsLimit, writer?: _m0.Writer): _m0.Writer;
426
- decode(input: _m0.Reader | Uint8Array, length?: number): MaxFundsLimit;
427
- fromJSON(object: any): MaxFundsLimit;
428
- toJSON(message: MaxFundsLimit): unknown;
429
- create<I extends {
430
- amounts?: {
431
- denom?: string;
432
- amount?: string;
433
- }[];
434
- } & {
435
- amounts?: {
436
- denom?: string;
437
- amount?: string;
438
- }[] & ({
439
- denom?: string;
440
- amount?: string;
441
- } & {
442
- denom?: string;
443
- amount?: string;
444
- } & { [K in Exclude<keyof I["amounts"][number], keyof Coin>]: never; })[] & { [K_1 in Exclude<keyof I["amounts"], keyof {
445
- denom?: string;
446
- amount?: string;
447
- }[]>]: never; };
448
- } & { [K_2 in Exclude<keyof I, "amounts">]: never; }>(base?: I): MaxFundsLimit;
449
- fromPartial<I_1 extends {
450
- amounts?: {
451
- denom?: string;
452
- amount?: string;
453
- }[];
454
- } & {
455
- amounts?: {
456
- denom?: string;
457
- amount?: string;
458
- }[] & ({
459
- denom?: string;
460
- amount?: string;
461
- } & {
462
- denom?: string;
463
- amount?: string;
464
- } & { [K_3 in Exclude<keyof I_1["amounts"][number], keyof Coin>]: never; })[] & { [K_4 in Exclude<keyof I_1["amounts"], keyof {
465
- denom?: string;
466
- amount?: string;
467
- }[]>]: never; };
468
- } & { [K_5 in Exclude<keyof I_1, "amounts">]: never; }>(object: I_1): MaxFundsLimit;
469
- };
470
- export declare const CombinedLimit: {
471
- encode(message: CombinedLimit, writer?: _m0.Writer): _m0.Writer;
472
- decode(input: _m0.Reader | Uint8Array, length?: number): CombinedLimit;
473
- fromJSON(object: any): CombinedLimit;
474
- toJSON(message: CombinedLimit): unknown;
475
- create<I extends {
476
- callsRemaining?: number;
477
- amounts?: {
478
- denom?: string;
479
- amount?: string;
480
- }[];
481
- } & {
482
- callsRemaining?: number;
483
- amounts?: {
484
- denom?: string;
485
- amount?: string;
486
- }[] & ({
487
- denom?: string;
488
- amount?: string;
489
- } & {
490
- denom?: string;
491
- amount?: string;
492
- } & { [K in Exclude<keyof I["amounts"][number], keyof Coin>]: never; })[] & { [K_1 in Exclude<keyof I["amounts"], keyof {
493
- denom?: string;
494
- amount?: string;
495
- }[]>]: never; };
496
- } & { [K_2 in Exclude<keyof I, keyof CombinedLimit>]: never; }>(base?: I): CombinedLimit;
497
- fromPartial<I_1 extends {
498
- callsRemaining?: number;
499
- amounts?: {
500
- denom?: string;
501
- amount?: string;
502
- }[];
503
- } & {
504
- callsRemaining?: number;
505
- amounts?: {
506
- denom?: string;
507
- amount?: string;
508
- }[] & ({
509
- denom?: string;
510
- amount?: string;
511
- } & {
512
- denom?: string;
513
- amount?: string;
514
- } & { [K_3 in Exclude<keyof I_1["amounts"][number], keyof Coin>]: never; })[] & { [K_4 in Exclude<keyof I_1["amounts"], keyof {
515
- denom?: string;
516
- amount?: string;
517
- }[]>]: never; };
518
- } & { [K_5 in Exclude<keyof I_1, keyof CombinedLimit>]: never; }>(object: I_1): CombinedLimit;
519
- };
520
- export declare const AllowAllMessagesFilter: {
521
- encode(_: AllowAllMessagesFilter, writer?: _m0.Writer): _m0.Writer;
522
- decode(input: _m0.Reader | Uint8Array, length?: number): AllowAllMessagesFilter;
523
- fromJSON(_: any): AllowAllMessagesFilter;
524
- toJSON(_: AllowAllMessagesFilter): unknown;
525
- create<I extends {} & {} & { [K in Exclude<keyof I, never>]: never; }>(base?: I): AllowAllMessagesFilter;
526
- fromPartial<I_1 extends {} & {} & { [K_1 in Exclude<keyof I_1, never>]: never; }>(_: I_1): AllowAllMessagesFilter;
527
- };
528
- export declare const AcceptedMessageKeysFilter: {
529
- encode(message: AcceptedMessageKeysFilter, writer?: _m0.Writer): _m0.Writer;
530
- decode(input: _m0.Reader | Uint8Array, length?: number): AcceptedMessageKeysFilter;
531
- fromJSON(object: any): AcceptedMessageKeysFilter;
532
- toJSON(message: AcceptedMessageKeysFilter): unknown;
533
- create<I extends {
534
- keys?: string[];
535
- } & {
536
- keys?: string[] & string[] & { [K in Exclude<keyof I["keys"], keyof string[]>]: never; };
537
- } & { [K_1 in Exclude<keyof I, "keys">]: never; }>(base?: I): AcceptedMessageKeysFilter;
538
- fromPartial<I_1 extends {
539
- keys?: string[];
540
- } & {
541
- keys?: string[] & string[] & { [K_2 in Exclude<keyof I_1["keys"], keyof string[]>]: never; };
542
- } & { [K_3 in Exclude<keyof I_1, "keys">]: never; }>(object: I_1): AcceptedMessageKeysFilter;
543
- };
544
- export declare const AcceptedMessagesFilter: {
545
- encode(message: AcceptedMessagesFilter, writer?: _m0.Writer): _m0.Writer;
546
- decode(input: _m0.Reader | Uint8Array, length?: number): AcceptedMessagesFilter;
547
- fromJSON(object: any): AcceptedMessagesFilter;
548
- toJSON(message: AcceptedMessagesFilter): unknown;
549
- create<I extends {
550
- messages?: Uint8Array[];
551
- } & {
552
- messages?: Uint8Array[] & Uint8Array[] & { [K in Exclude<keyof I["messages"], keyof Uint8Array[]>]: never; };
553
- } & { [K_1 in Exclude<keyof I, "messages">]: never; }>(base?: I): AcceptedMessagesFilter;
554
- fromPartial<I_1 extends {
555
- messages?: Uint8Array[];
556
- } & {
557
- messages?: Uint8Array[] & Uint8Array[] & { [K_2 in Exclude<keyof I_1["messages"], keyof Uint8Array[]>]: never; };
558
- } & { [K_3 in Exclude<keyof I_1, "messages">]: never; }>(object: I_1): AcceptedMessagesFilter;
559
- };
92
+ export declare const ContractExecutionAuthorization: MessageFns<ContractExecutionAuthorization>;
93
+ export declare const ContractMigrationAuthorization: MessageFns<ContractMigrationAuthorization>;
94
+ export declare const ContractGrant: MessageFns<ContractGrant>;
95
+ export declare const MaxCallsLimit: MessageFns<MaxCallsLimit>;
96
+ export declare const MaxFundsLimit: MessageFns<MaxFundsLimit>;
97
+ export declare const CombinedLimit: MessageFns<CombinedLimit>;
98
+ export declare const AllowAllMessagesFilter: MessageFns<AllowAllMessagesFilter>;
99
+ export declare const AcceptedMessageKeysFilter: MessageFns<AcceptedMessageKeysFilter>;
100
+ export declare const AcceptedMessagesFilter: MessageFns<AcceptedMessagesFilter>;
560
101
  type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
561
- 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 {} ? {
102
+ export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
562
103
  [K in keyof T]?: DeepPartial<T[K]>;
563
104
  } : Partial<T>;
564
105
  type KeysOfUnion<T> = T extends T ? keyof T : never;
@@ -567,4 +108,12 @@ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
567
108
  } & {
568
109
  [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
569
110
  };
111
+ export interface MessageFns<T> {
112
+ encode(message: T, writer?: BinaryWriter): BinaryWriter;
113
+ decode(input: BinaryReader | Uint8Array, length?: number): T;
114
+ fromJSON(object: any): T;
115
+ toJSON(message: T): unknown;
116
+ create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
117
+ fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
118
+ }
570
119
  export {};