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,11 +1,11 @@
1
- import Long from "long";
2
- import _m0 from "protobufjs/minimal";
1
+ import { BinaryReader, BinaryWriter } from "cosmjs-types/binary";
3
2
  import { Class, NFT } from "./nft";
4
3
  export declare const protobufPackage = "cosmos.nft.v1beta1";
5
4
  /** GenesisState defines the nft module's genesis state. */
6
5
  export interface GenesisState {
7
6
  /** class defines the class of the nft type. */
8
7
  classes: Class[];
8
+ /** entry defines all nft owned by a person. */
9
9
  entries: Entry[];
10
10
  }
11
11
  /** Entry Defines all nft owned by a person */
@@ -15,440 +15,10 @@ export interface Entry {
15
15
  /** nfts is a group of nfts of the same owner */
16
16
  nfts: NFT[];
17
17
  }
18
- export declare const GenesisState: {
19
- encode(message: GenesisState, writer?: _m0.Writer): _m0.Writer;
20
- decode(input: _m0.Reader | Uint8Array, length?: number): GenesisState;
21
- fromJSON(object: any): GenesisState;
22
- toJSON(message: GenesisState): unknown;
23
- create<I extends {
24
- classes?: {
25
- id?: string;
26
- name?: string;
27
- symbol?: string;
28
- description?: string;
29
- uri?: string;
30
- uriHash?: string;
31
- data?: {
32
- typeUrl?: string;
33
- value?: Uint8Array;
34
- };
35
- }[];
36
- entries?: {
37
- owner?: string;
38
- nfts?: {
39
- classId?: string;
40
- id?: string;
41
- uri?: string;
42
- uriHash?: string;
43
- data?: {
44
- typeUrl?: string;
45
- value?: Uint8Array;
46
- };
47
- }[];
48
- }[];
49
- } & {
50
- classes?: {
51
- id?: string;
52
- name?: string;
53
- symbol?: string;
54
- description?: string;
55
- uri?: string;
56
- uriHash?: string;
57
- data?: {
58
- typeUrl?: string;
59
- value?: Uint8Array;
60
- };
61
- }[] & ({
62
- id?: string;
63
- name?: string;
64
- symbol?: string;
65
- description?: string;
66
- uri?: string;
67
- uriHash?: string;
68
- data?: {
69
- typeUrl?: string;
70
- value?: Uint8Array;
71
- };
72
- } & {
73
- id?: string;
74
- name?: string;
75
- symbol?: string;
76
- description?: string;
77
- uri?: string;
78
- uriHash?: string;
79
- data?: {
80
- typeUrl?: string;
81
- value?: Uint8Array;
82
- } & {
83
- typeUrl?: string;
84
- value?: Uint8Array;
85
- } & { [K in Exclude<keyof I["classes"][number]["data"], keyof import("../../../google").Any>]: never; };
86
- } & { [K_1 in Exclude<keyof I["classes"][number], keyof Class>]: never; })[] & { [K_2 in Exclude<keyof I["classes"], keyof {
87
- id?: string;
88
- name?: string;
89
- symbol?: string;
90
- description?: string;
91
- uri?: string;
92
- uriHash?: string;
93
- data?: {
94
- typeUrl?: string;
95
- value?: Uint8Array;
96
- };
97
- }[]>]: never; };
98
- entries?: {
99
- owner?: string;
100
- nfts?: {
101
- classId?: string;
102
- id?: string;
103
- uri?: string;
104
- uriHash?: string;
105
- data?: {
106
- typeUrl?: string;
107
- value?: Uint8Array;
108
- };
109
- }[];
110
- }[] & ({
111
- owner?: string;
112
- nfts?: {
113
- classId?: string;
114
- id?: string;
115
- uri?: string;
116
- uriHash?: string;
117
- data?: {
118
- typeUrl?: string;
119
- value?: Uint8Array;
120
- };
121
- }[];
122
- } & {
123
- owner?: string;
124
- nfts?: {
125
- classId?: string;
126
- id?: string;
127
- uri?: string;
128
- uriHash?: string;
129
- data?: {
130
- typeUrl?: string;
131
- value?: Uint8Array;
132
- };
133
- }[] & ({
134
- classId?: string;
135
- id?: string;
136
- uri?: string;
137
- uriHash?: string;
138
- data?: {
139
- typeUrl?: string;
140
- value?: Uint8Array;
141
- };
142
- } & {
143
- classId?: string;
144
- id?: string;
145
- uri?: string;
146
- uriHash?: string;
147
- data?: {
148
- typeUrl?: string;
149
- value?: Uint8Array;
150
- } & {
151
- typeUrl?: string;
152
- value?: Uint8Array;
153
- } & { [K_3 in Exclude<keyof I["entries"][number]["nfts"][number]["data"], keyof import("../../../google").Any>]: never; };
154
- } & { [K_4 in Exclude<keyof I["entries"][number]["nfts"][number], keyof NFT>]: never; })[] & { [K_5 in Exclude<keyof I["entries"][number]["nfts"], keyof {
155
- classId?: string;
156
- id?: string;
157
- uri?: string;
158
- uriHash?: string;
159
- data?: {
160
- typeUrl?: string;
161
- value?: Uint8Array;
162
- };
163
- }[]>]: never; };
164
- } & { [K_6 in Exclude<keyof I["entries"][number], keyof Entry>]: never; })[] & { [K_7 in Exclude<keyof I["entries"], keyof {
165
- owner?: string;
166
- nfts?: {
167
- classId?: string;
168
- id?: string;
169
- uri?: string;
170
- uriHash?: string;
171
- data?: {
172
- typeUrl?: string;
173
- value?: Uint8Array;
174
- };
175
- }[];
176
- }[]>]: never; };
177
- } & { [K_8 in Exclude<keyof I, keyof GenesisState>]: never; }>(base?: I): GenesisState;
178
- fromPartial<I_1 extends {
179
- classes?: {
180
- id?: string;
181
- name?: string;
182
- symbol?: string;
183
- description?: string;
184
- uri?: string;
185
- uriHash?: string;
186
- data?: {
187
- typeUrl?: string;
188
- value?: Uint8Array;
189
- };
190
- }[];
191
- entries?: {
192
- owner?: string;
193
- nfts?: {
194
- classId?: string;
195
- id?: string;
196
- uri?: string;
197
- uriHash?: string;
198
- data?: {
199
- typeUrl?: string;
200
- value?: Uint8Array;
201
- };
202
- }[];
203
- }[];
204
- } & {
205
- classes?: {
206
- id?: string;
207
- name?: string;
208
- symbol?: string;
209
- description?: string;
210
- uri?: string;
211
- uriHash?: string;
212
- data?: {
213
- typeUrl?: string;
214
- value?: Uint8Array;
215
- };
216
- }[] & ({
217
- id?: string;
218
- name?: string;
219
- symbol?: string;
220
- description?: string;
221
- uri?: string;
222
- uriHash?: string;
223
- data?: {
224
- typeUrl?: string;
225
- value?: Uint8Array;
226
- };
227
- } & {
228
- id?: string;
229
- name?: string;
230
- symbol?: string;
231
- description?: string;
232
- uri?: string;
233
- uriHash?: string;
234
- data?: {
235
- typeUrl?: string;
236
- value?: Uint8Array;
237
- } & {
238
- typeUrl?: string;
239
- value?: Uint8Array;
240
- } & { [K_9 in Exclude<keyof I_1["classes"][number]["data"], keyof import("../../../google").Any>]: never; };
241
- } & { [K_10 in Exclude<keyof I_1["classes"][number], keyof Class>]: never; })[] & { [K_11 in Exclude<keyof I_1["classes"], keyof {
242
- id?: string;
243
- name?: string;
244
- symbol?: string;
245
- description?: string;
246
- uri?: string;
247
- uriHash?: string;
248
- data?: {
249
- typeUrl?: string;
250
- value?: Uint8Array;
251
- };
252
- }[]>]: never; };
253
- entries?: {
254
- owner?: string;
255
- nfts?: {
256
- classId?: string;
257
- id?: string;
258
- uri?: string;
259
- uriHash?: string;
260
- data?: {
261
- typeUrl?: string;
262
- value?: Uint8Array;
263
- };
264
- }[];
265
- }[] & ({
266
- owner?: string;
267
- nfts?: {
268
- classId?: string;
269
- id?: string;
270
- uri?: string;
271
- uriHash?: string;
272
- data?: {
273
- typeUrl?: string;
274
- value?: Uint8Array;
275
- };
276
- }[];
277
- } & {
278
- owner?: string;
279
- nfts?: {
280
- classId?: string;
281
- id?: string;
282
- uri?: string;
283
- uriHash?: string;
284
- data?: {
285
- typeUrl?: string;
286
- value?: Uint8Array;
287
- };
288
- }[] & ({
289
- classId?: string;
290
- id?: string;
291
- uri?: string;
292
- uriHash?: string;
293
- data?: {
294
- typeUrl?: string;
295
- value?: Uint8Array;
296
- };
297
- } & {
298
- classId?: string;
299
- id?: string;
300
- uri?: string;
301
- uriHash?: string;
302
- data?: {
303
- typeUrl?: string;
304
- value?: Uint8Array;
305
- } & {
306
- typeUrl?: string;
307
- value?: Uint8Array;
308
- } & { [K_12 in Exclude<keyof I_1["entries"][number]["nfts"][number]["data"], keyof import("../../../google").Any>]: never; };
309
- } & { [K_13 in Exclude<keyof I_1["entries"][number]["nfts"][number], keyof NFT>]: never; })[] & { [K_14 in Exclude<keyof I_1["entries"][number]["nfts"], keyof {
310
- classId?: string;
311
- id?: string;
312
- uri?: string;
313
- uriHash?: string;
314
- data?: {
315
- typeUrl?: string;
316
- value?: Uint8Array;
317
- };
318
- }[]>]: never; };
319
- } & { [K_15 in Exclude<keyof I_1["entries"][number], keyof Entry>]: never; })[] & { [K_16 in Exclude<keyof I_1["entries"], keyof {
320
- owner?: string;
321
- nfts?: {
322
- classId?: string;
323
- id?: string;
324
- uri?: string;
325
- uriHash?: string;
326
- data?: {
327
- typeUrl?: string;
328
- value?: Uint8Array;
329
- };
330
- }[];
331
- }[]>]: never; };
332
- } & { [K_17 in Exclude<keyof I_1, keyof GenesisState>]: never; }>(object: I_1): GenesisState;
333
- };
334
- export declare const Entry: {
335
- encode(message: Entry, writer?: _m0.Writer): _m0.Writer;
336
- decode(input: _m0.Reader | Uint8Array, length?: number): Entry;
337
- fromJSON(object: any): Entry;
338
- toJSON(message: Entry): unknown;
339
- create<I extends {
340
- owner?: string;
341
- nfts?: {
342
- classId?: string;
343
- id?: string;
344
- uri?: string;
345
- uriHash?: string;
346
- data?: {
347
- typeUrl?: string;
348
- value?: Uint8Array;
349
- };
350
- }[];
351
- } & {
352
- owner?: string;
353
- nfts?: {
354
- classId?: string;
355
- id?: string;
356
- uri?: string;
357
- uriHash?: string;
358
- data?: {
359
- typeUrl?: string;
360
- value?: Uint8Array;
361
- };
362
- }[] & ({
363
- classId?: string;
364
- id?: string;
365
- uri?: string;
366
- uriHash?: string;
367
- data?: {
368
- typeUrl?: string;
369
- value?: Uint8Array;
370
- };
371
- } & {
372
- classId?: string;
373
- id?: string;
374
- uri?: string;
375
- uriHash?: string;
376
- data?: {
377
- typeUrl?: string;
378
- value?: Uint8Array;
379
- } & {
380
- typeUrl?: string;
381
- value?: Uint8Array;
382
- } & { [K in Exclude<keyof I["nfts"][number]["data"], keyof import("../../../google").Any>]: never; };
383
- } & { [K_1 in Exclude<keyof I["nfts"][number], keyof NFT>]: never; })[] & { [K_2 in Exclude<keyof I["nfts"], keyof {
384
- classId?: string;
385
- id?: string;
386
- uri?: string;
387
- uriHash?: string;
388
- data?: {
389
- typeUrl?: string;
390
- value?: Uint8Array;
391
- };
392
- }[]>]: never; };
393
- } & { [K_3 in Exclude<keyof I, keyof Entry>]: never; }>(base?: I): Entry;
394
- fromPartial<I_1 extends {
395
- owner?: string;
396
- nfts?: {
397
- classId?: string;
398
- id?: string;
399
- uri?: string;
400
- uriHash?: string;
401
- data?: {
402
- typeUrl?: string;
403
- value?: Uint8Array;
404
- };
405
- }[];
406
- } & {
407
- owner?: string;
408
- nfts?: {
409
- classId?: string;
410
- id?: string;
411
- uri?: string;
412
- uriHash?: string;
413
- data?: {
414
- typeUrl?: string;
415
- value?: Uint8Array;
416
- };
417
- }[] & ({
418
- classId?: string;
419
- id?: string;
420
- uri?: string;
421
- uriHash?: string;
422
- data?: {
423
- typeUrl?: string;
424
- value?: Uint8Array;
425
- };
426
- } & {
427
- classId?: string;
428
- id?: string;
429
- uri?: string;
430
- uriHash?: string;
431
- data?: {
432
- typeUrl?: string;
433
- value?: Uint8Array;
434
- } & {
435
- typeUrl?: string;
436
- value?: Uint8Array;
437
- } & { [K_4 in Exclude<keyof I_1["nfts"][number]["data"], keyof import("../../../google").Any>]: never; };
438
- } & { [K_5 in Exclude<keyof I_1["nfts"][number], keyof NFT>]: never; })[] & { [K_6 in Exclude<keyof I_1["nfts"], keyof {
439
- classId?: string;
440
- id?: string;
441
- uri?: string;
442
- uriHash?: string;
443
- data?: {
444
- typeUrl?: string;
445
- value?: Uint8Array;
446
- };
447
- }[]>]: never; };
448
- } & { [K_7 in Exclude<keyof I_1, keyof Entry>]: never; }>(object: I_1): Entry;
449
- };
18
+ export declare const GenesisState: MessageFns<GenesisState>;
19
+ export declare const Entry: MessageFns<Entry>;
450
20
  type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
451
- export type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
21
+ 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 {} ? {
452
22
  [K in keyof T]?: DeepPartial<T[K]>;
453
23
  } : Partial<T>;
454
24
  type KeysOfUnion<T> = T extends T ? keyof T : never;
@@ -457,4 +27,12 @@ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
457
27
  } & {
458
28
  [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
459
29
  };
30
+ export interface MessageFns<T> {
31
+ encode(message: T, writer?: BinaryWriter): BinaryWriter;
32
+ decode(input: BinaryReader | Uint8Array, length?: number): T;
33
+ fromJSON(object: any): T;
34
+ toJSON(message: T): unknown;
35
+ create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
36
+ fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
37
+ }
460
38
  export {};
@@ -1,13 +1,17 @@
1
+ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
+ // versions:
3
+ // protoc-gen-ts_proto v2.7.0
4
+ // protoc v3.21.12
5
+ // source: cosmos-sdk/proto/cosmos/nft/v1beta1/genesis.proto
1
6
  /* eslint-disable */
2
- import Long from "long";
3
- import _m0 from "protobufjs/minimal";
7
+ import { BinaryReader, BinaryWriter } from "cosmjs-types/binary";
4
8
  import { Class, NFT } from "./nft";
5
9
  export const protobufPackage = "cosmos.nft.v1beta1";
6
10
  function createBaseGenesisState() {
7
11
  return { classes: [], entries: [] };
8
12
  }
9
13
  export const GenesisState = {
10
- encode(message, writer = _m0.Writer.create()) {
14
+ encode(message, writer = new BinaryWriter()) {
11
15
  for (const v of message.classes) {
12
16
  Class.encode(v, writer.uint32(10).fork()).ldelim();
13
17
  }
@@ -17,51 +21,51 @@ export const GenesisState = {
17
21
  return writer;
18
22
  },
19
23
  decode(input, length) {
20
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
24
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
21
25
  let end = length === undefined ? reader.len : reader.pos + length;
22
26
  const message = createBaseGenesisState();
23
27
  while (reader.pos < end) {
24
28
  const tag = reader.uint32();
25
29
  switch (tag >>> 3) {
26
- case 1:
27
- if (tag != 10) {
30
+ case 1: {
31
+ if (tag !== 10) {
28
32
  break;
29
33
  }
30
34
  message.classes.push(Class.decode(reader, reader.uint32()));
31
35
  continue;
32
- case 2:
33
- if (tag != 18) {
36
+ }
37
+ case 2: {
38
+ if (tag !== 18) {
34
39
  break;
35
40
  }
36
41
  message.entries.push(Entry.decode(reader, reader.uint32()));
37
42
  continue;
43
+ }
38
44
  }
39
- if ((tag & 7) == 4 || tag == 0) {
45
+ if ((tag & 7) === 4 || tag === 0) {
40
46
  break;
41
47
  }
42
- reader.skipType(tag & 7);
48
+ reader.skip(tag & 7);
43
49
  }
44
50
  return message;
45
51
  },
46
52
  fromJSON(object) {
47
53
  return {
48
- classes: Array.isArray(object?.classes) ? object.classes.map((e) => Class.fromJSON(e)) : [],
49
- entries: Array.isArray(object?.entries) ? object.entries.map((e) => Entry.fromJSON(e)) : [],
54
+ classes: globalThis.Array.isArray(object?.classes)
55
+ ? object.classes.map((e) => Class.fromJSON(e))
56
+ : [],
57
+ entries: globalThis.Array.isArray(object?.entries)
58
+ ? object.entries.map((e) => Entry.fromJSON(e))
59
+ : [],
50
60
  };
51
61
  },
52
62
  toJSON(message) {
53
63
  const obj = {};
54
- if (message.classes) {
55
- obj.classes = message.classes.map((e) => e ? Class.toJSON(e) : undefined);
64
+ if (message.classes?.length) {
65
+ obj.classes = message.classes.map((e) => Class.toJSON(e));
56
66
  }
57
- else {
58
- obj.classes = [];
59
- }
60
- if (message.entries) {
61
- obj.entries = message.entries.map((e) => e ? Entry.toJSON(e) : undefined);
62
- }
63
- else {
64
- obj.entries = [];
67
+ if (message.entries?.length) {
68
+ obj.entries = message.entries.map((e) => Entry.toJSON(e));
65
69
  }
66
70
  return obj;
67
71
  },
@@ -79,7 +83,7 @@ function createBaseEntry() {
79
83
  return { owner: "", nfts: [] };
80
84
  }
81
85
  export const Entry = {
82
- encode(message, writer = _m0.Writer.create()) {
86
+ encode(message, writer = new BinaryWriter()) {
83
87
  if (message.owner !== "") {
84
88
  writer.uint32(10).string(message.owner);
85
89
  }
@@ -89,46 +93,49 @@ export const Entry = {
89
93
  return writer;
90
94
  },
91
95
  decode(input, length) {
92
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
96
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
93
97
  let end = length === undefined ? reader.len : reader.pos + length;
94
98
  const message = createBaseEntry();
95
99
  while (reader.pos < end) {
96
100
  const tag = reader.uint32();
97
101
  switch (tag >>> 3) {
98
- case 1:
99
- if (tag != 10) {
102
+ case 1: {
103
+ if (tag !== 10) {
100
104
  break;
101
105
  }
102
106
  message.owner = reader.string();
103
107
  continue;
104
- case 2:
105
- if (tag != 18) {
108
+ }
109
+ case 2: {
110
+ if (tag !== 18) {
106
111
  break;
107
112
  }
108
113
  message.nfts.push(NFT.decode(reader, reader.uint32()));
109
114
  continue;
115
+ }
110
116
  }
111
- if ((tag & 7) == 4 || tag == 0) {
117
+ if ((tag & 7) === 4 || tag === 0) {
112
118
  break;
113
119
  }
114
- reader.skipType(tag & 7);
120
+ reader.skip(tag & 7);
115
121
  }
116
122
  return message;
117
123
  },
118
124
  fromJSON(object) {
119
125
  return {
120
- owner: isSet(object.owner) ? String(object.owner) : "",
121
- nfts: Array.isArray(object?.nfts) ? object.nfts.map((e) => NFT.fromJSON(e)) : [],
126
+ owner: isSet(object.owner) ? globalThis.String(object.owner) : "",
127
+ nfts: globalThis.Array.isArray(object?.nfts)
128
+ ? object.nfts.map((e) => NFT.fromJSON(e))
129
+ : [],
122
130
  };
123
131
  },
124
132
  toJSON(message) {
125
133
  const obj = {};
126
- message.owner !== undefined && (obj.owner = message.owner);
127
- if (message.nfts) {
128
- obj.nfts = message.nfts.map((e) => e ? NFT.toJSON(e) : undefined);
134
+ if (message.owner !== "") {
135
+ obj.owner = message.owner;
129
136
  }
130
- else {
131
- obj.nfts = [];
137
+ if (message.nfts?.length) {
138
+ obj.nfts = message.nfts.map((e) => NFT.toJSON(e));
132
139
  }
133
140
  return obj;
134
141
  },
@@ -142,10 +149,6 @@ export const Entry = {
142
149
  return message;
143
150
  },
144
151
  };
145
- if (_m0.util.Long !== Long) {
146
- _m0.util.Long = Long;
147
- _m0.configure();
148
- }
149
152
  function isSet(value) {
150
153
  return value !== null && value !== undefined;
151
154
  }