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,7 +1,8 @@
1
- import Long from "long";
2
- import _m0 from "protobufjs/minimal";
3
- import { Any } from "../../../../google/protobuf/any";
1
+ import { BinaryReader, BinaryWriter } from "cosmjs-types/binary";
2
+ import { Any } from "cosmjs-types/google/protobuf/any";
4
3
  import { ClassFeature } from "./nft";
4
+ import { Params } from "./params";
5
+ import { DataDynamicIndexedItem } from "./types";
5
6
  export declare const protobufPackage = "coreum.asset.nft.v1";
6
7
  /** MsgIssueClass defines message for the IssueClass method. */
7
8
  export interface MsgIssueClass {
@@ -11,7 +12,7 @@ export interface MsgIssueClass {
11
12
  description: string;
12
13
  uri: string;
13
14
  uriHash: string;
14
- data?: Any;
15
+ data: Any | undefined;
15
16
  features: ClassFeature[];
16
17
  royaltyRate: string;
17
18
  }
@@ -22,9 +23,17 @@ export interface MsgMint {
22
23
  id: string;
23
24
  uri: string;
24
25
  uriHash: string;
25
- data?: Any;
26
+ /** Data can be DataBytes or DataDynamic. */
27
+ data: Any | undefined;
26
28
  recipient: string;
27
29
  }
30
+ /** MsgUpdateData defines message to update the dynamic data. */
31
+ export interface MsgUpdateData {
32
+ sender: string;
33
+ classId: string;
34
+ id: string;
35
+ items: DataDynamicIndexedItem[];
36
+ }
28
37
  /** MsgBurn defines message for the Burn method. */
29
38
  export interface MsgBurn {
30
39
  sender: string;
@@ -41,6 +50,16 @@ export interface MsgUnfreeze {
41
50
  classId: string;
42
51
  id: string;
43
52
  }
53
+ export interface MsgClassFreeze {
54
+ sender: string;
55
+ classId: string;
56
+ account: string;
57
+ }
58
+ export interface MsgClassUnfreeze {
59
+ sender: string;
60
+ classId: string;
61
+ account: string;
62
+ }
44
63
  export interface MsgAddToWhitelist {
45
64
  sender: string;
46
65
  classId: string;
@@ -53,274 +72,44 @@ export interface MsgRemoveFromWhitelist {
53
72
  id: string;
54
73
  account: string;
55
74
  }
75
+ export interface MsgAddToClassWhitelist {
76
+ sender: string;
77
+ classId: string;
78
+ account: string;
79
+ }
80
+ export interface MsgRemoveFromClassWhitelist {
81
+ sender: string;
82
+ classId: string;
83
+ account: string;
84
+ }
85
+ export interface MsgUpdateParams {
86
+ authority: string;
87
+ params: Params | undefined;
88
+ }
56
89
  export interface EmptyResponse {
57
90
  }
58
- export declare const MsgIssueClass: {
59
- encode(message: MsgIssueClass, writer?: _m0.Writer): _m0.Writer;
60
- decode(input: _m0.Reader | Uint8Array, length?: number): MsgIssueClass;
61
- fromJSON(object: any): MsgIssueClass;
62
- toJSON(message: MsgIssueClass): unknown;
63
- create<I extends {
64
- issuer?: string;
65
- symbol?: string;
66
- name?: string;
67
- description?: string;
68
- uri?: string;
69
- uriHash?: string;
70
- data?: {
71
- typeUrl?: string;
72
- value?: Uint8Array;
73
- };
74
- features?: ClassFeature[];
75
- royaltyRate?: string;
76
- } & {
77
- issuer?: string;
78
- symbol?: string;
79
- name?: string;
80
- description?: string;
81
- uri?: string;
82
- uriHash?: string;
83
- data?: {
84
- typeUrl?: string;
85
- value?: Uint8Array;
86
- } & {
87
- typeUrl?: string;
88
- value?: Uint8Array;
89
- } & { [K in Exclude<keyof I["data"], keyof Any>]: never; };
90
- features?: ClassFeature[] & ClassFeature[] & { [K_1 in Exclude<keyof I["features"], keyof ClassFeature[]>]: never; };
91
- royaltyRate?: string;
92
- } & { [K_2 in Exclude<keyof I, keyof MsgIssueClass>]: never; }>(base?: I): MsgIssueClass;
93
- fromPartial<I_1 extends {
94
- issuer?: string;
95
- symbol?: string;
96
- name?: string;
97
- description?: string;
98
- uri?: string;
99
- uriHash?: string;
100
- data?: {
101
- typeUrl?: string;
102
- value?: Uint8Array;
103
- };
104
- features?: ClassFeature[];
105
- royaltyRate?: string;
106
- } & {
107
- issuer?: string;
108
- symbol?: string;
109
- name?: string;
110
- description?: string;
111
- uri?: string;
112
- uriHash?: string;
113
- data?: {
114
- typeUrl?: string;
115
- value?: Uint8Array;
116
- } & {
117
- typeUrl?: string;
118
- value?: Uint8Array;
119
- } & { [K_3 in Exclude<keyof I_1["data"], keyof Any>]: never; };
120
- features?: ClassFeature[] & ClassFeature[] & { [K_4 in Exclude<keyof I_1["features"], keyof ClassFeature[]>]: never; };
121
- royaltyRate?: string;
122
- } & { [K_5 in Exclude<keyof I_1, keyof MsgIssueClass>]: never; }>(object: I_1): MsgIssueClass;
123
- };
124
- export declare const MsgMint: {
125
- encode(message: MsgMint, writer?: _m0.Writer): _m0.Writer;
126
- decode(input: _m0.Reader | Uint8Array, length?: number): MsgMint;
127
- fromJSON(object: any): MsgMint;
128
- toJSON(message: MsgMint): unknown;
129
- create<I extends {
130
- sender?: string;
131
- classId?: string;
132
- id?: string;
133
- uri?: string;
134
- uriHash?: string;
135
- data?: {
136
- typeUrl?: string;
137
- value?: Uint8Array;
138
- };
139
- recipient?: string;
140
- } & {
141
- sender?: string;
142
- classId?: string;
143
- id?: string;
144
- uri?: string;
145
- uriHash?: string;
146
- data?: {
147
- typeUrl?: string;
148
- value?: Uint8Array;
149
- } & {
150
- typeUrl?: string;
151
- value?: Uint8Array;
152
- } & { [K in Exclude<keyof I["data"], keyof Any>]: never; };
153
- recipient?: string;
154
- } & { [K_1 in Exclude<keyof I, keyof MsgMint>]: never; }>(base?: I): MsgMint;
155
- fromPartial<I_1 extends {
156
- sender?: string;
157
- classId?: string;
158
- id?: string;
159
- uri?: string;
160
- uriHash?: string;
161
- data?: {
162
- typeUrl?: string;
163
- value?: Uint8Array;
164
- };
165
- recipient?: string;
166
- } & {
167
- sender?: string;
168
- classId?: string;
169
- id?: string;
170
- uri?: string;
171
- uriHash?: string;
172
- data?: {
173
- typeUrl?: string;
174
- value?: Uint8Array;
175
- } & {
176
- typeUrl?: string;
177
- value?: Uint8Array;
178
- } & { [K_2 in Exclude<keyof I_1["data"], keyof Any>]: never; };
179
- recipient?: string;
180
- } & { [K_3 in Exclude<keyof I_1, keyof MsgMint>]: never; }>(object: I_1): MsgMint;
181
- };
182
- export declare const MsgBurn: {
183
- encode(message: MsgBurn, writer?: _m0.Writer): _m0.Writer;
184
- decode(input: _m0.Reader | Uint8Array, length?: number): MsgBurn;
185
- fromJSON(object: any): MsgBurn;
186
- toJSON(message: MsgBurn): unknown;
187
- create<I extends {
188
- sender?: string;
189
- classId?: string;
190
- id?: string;
191
- } & {
192
- sender?: string;
193
- classId?: string;
194
- id?: string;
195
- } & { [K in Exclude<keyof I, keyof MsgBurn>]: never; }>(base?: I): MsgBurn;
196
- fromPartial<I_1 extends {
197
- sender?: string;
198
- classId?: string;
199
- id?: string;
200
- } & {
201
- sender?: string;
202
- classId?: string;
203
- id?: string;
204
- } & { [K_1 in Exclude<keyof I_1, keyof MsgBurn>]: never; }>(object: I_1): MsgBurn;
205
- };
206
- export declare const MsgFreeze: {
207
- encode(message: MsgFreeze, writer?: _m0.Writer): _m0.Writer;
208
- decode(input: _m0.Reader | Uint8Array, length?: number): MsgFreeze;
209
- fromJSON(object: any): MsgFreeze;
210
- toJSON(message: MsgFreeze): unknown;
211
- create<I extends {
212
- sender?: string;
213
- classId?: string;
214
- id?: string;
215
- } & {
216
- sender?: string;
217
- classId?: string;
218
- id?: string;
219
- } & { [K in Exclude<keyof I, keyof MsgFreeze>]: never; }>(base?: I): MsgFreeze;
220
- fromPartial<I_1 extends {
221
- sender?: string;
222
- classId?: string;
223
- id?: string;
224
- } & {
225
- sender?: string;
226
- classId?: string;
227
- id?: string;
228
- } & { [K_1 in Exclude<keyof I_1, keyof MsgFreeze>]: never; }>(object: I_1): MsgFreeze;
229
- };
230
- export declare const MsgUnfreeze: {
231
- encode(message: MsgUnfreeze, writer?: _m0.Writer): _m0.Writer;
232
- decode(input: _m0.Reader | Uint8Array, length?: number): MsgUnfreeze;
233
- fromJSON(object: any): MsgUnfreeze;
234
- toJSON(message: MsgUnfreeze): unknown;
235
- create<I extends {
236
- sender?: string;
237
- classId?: string;
238
- id?: string;
239
- } & {
240
- sender?: string;
241
- classId?: string;
242
- id?: string;
243
- } & { [K in Exclude<keyof I, keyof MsgUnfreeze>]: never; }>(base?: I): MsgUnfreeze;
244
- fromPartial<I_1 extends {
245
- sender?: string;
246
- classId?: string;
247
- id?: string;
248
- } & {
249
- sender?: string;
250
- classId?: string;
251
- id?: string;
252
- } & { [K_1 in Exclude<keyof I_1, keyof MsgUnfreeze>]: never; }>(object: I_1): MsgUnfreeze;
253
- };
254
- export declare const MsgAddToWhitelist: {
255
- encode(message: MsgAddToWhitelist, writer?: _m0.Writer): _m0.Writer;
256
- decode(input: _m0.Reader | Uint8Array, length?: number): MsgAddToWhitelist;
257
- fromJSON(object: any): MsgAddToWhitelist;
258
- toJSON(message: MsgAddToWhitelist): unknown;
259
- create<I extends {
260
- sender?: string;
261
- classId?: string;
262
- id?: string;
263
- account?: string;
264
- } & {
265
- sender?: string;
266
- classId?: string;
267
- id?: string;
268
- account?: string;
269
- } & { [K in Exclude<keyof I, keyof MsgAddToWhitelist>]: never; }>(base?: I): MsgAddToWhitelist;
270
- fromPartial<I_1 extends {
271
- sender?: string;
272
- classId?: string;
273
- id?: string;
274
- account?: string;
275
- } & {
276
- sender?: string;
277
- classId?: string;
278
- id?: string;
279
- account?: string;
280
- } & { [K_1 in Exclude<keyof I_1, keyof MsgAddToWhitelist>]: never; }>(object: I_1): MsgAddToWhitelist;
281
- };
282
- export declare const MsgRemoveFromWhitelist: {
283
- encode(message: MsgRemoveFromWhitelist, writer?: _m0.Writer): _m0.Writer;
284
- decode(input: _m0.Reader | Uint8Array, length?: number): MsgRemoveFromWhitelist;
285
- fromJSON(object: any): MsgRemoveFromWhitelist;
286
- toJSON(message: MsgRemoveFromWhitelist): unknown;
287
- create<I extends {
288
- sender?: string;
289
- classId?: string;
290
- id?: string;
291
- account?: string;
292
- } & {
293
- sender?: string;
294
- classId?: string;
295
- id?: string;
296
- account?: string;
297
- } & { [K in Exclude<keyof I, keyof MsgRemoveFromWhitelist>]: never; }>(base?: I): MsgRemoveFromWhitelist;
298
- fromPartial<I_1 extends {
299
- sender?: string;
300
- classId?: string;
301
- id?: string;
302
- account?: string;
303
- } & {
304
- sender?: string;
305
- classId?: string;
306
- id?: string;
307
- account?: string;
308
- } & { [K_1 in Exclude<keyof I_1, keyof MsgRemoveFromWhitelist>]: never; }>(object: I_1): MsgRemoveFromWhitelist;
309
- };
310
- export declare const EmptyResponse: {
311
- encode(_: EmptyResponse, writer?: _m0.Writer): _m0.Writer;
312
- decode(input: _m0.Reader | Uint8Array, length?: number): EmptyResponse;
313
- fromJSON(_: any): EmptyResponse;
314
- toJSON(_: EmptyResponse): unknown;
315
- create<I extends {} & {} & { [K in Exclude<keyof I, never>]: never; }>(base?: I): EmptyResponse;
316
- fromPartial<I_1 extends {} & {} & { [K_1 in Exclude<keyof I_1, never>]: never; }>(_: I_1): EmptyResponse;
317
- };
91
+ export declare const MsgIssueClass: MessageFns<MsgIssueClass>;
92
+ export declare const MsgMint: MessageFns<MsgMint>;
93
+ export declare const MsgUpdateData: MessageFns<MsgUpdateData>;
94
+ export declare const MsgBurn: MessageFns<MsgBurn>;
95
+ export declare const MsgFreeze: MessageFns<MsgFreeze>;
96
+ export declare const MsgUnfreeze: MessageFns<MsgUnfreeze>;
97
+ export declare const MsgClassFreeze: MessageFns<MsgClassFreeze>;
98
+ export declare const MsgClassUnfreeze: MessageFns<MsgClassUnfreeze>;
99
+ export declare const MsgAddToWhitelist: MessageFns<MsgAddToWhitelist>;
100
+ export declare const MsgRemoveFromWhitelist: MessageFns<MsgRemoveFromWhitelist>;
101
+ export declare const MsgAddToClassWhitelist: MessageFns<MsgAddToClassWhitelist>;
102
+ export declare const MsgRemoveFromClassWhitelist: MessageFns<MsgRemoveFromClassWhitelist>;
103
+ export declare const MsgUpdateParams: MessageFns<MsgUpdateParams>;
104
+ export declare const EmptyResponse: MessageFns<EmptyResponse>;
318
105
  /** Msg defines the Msg service. */
319
106
  export interface Msg {
320
107
  /** IssueClass creates new non-fungible token class. */
321
108
  IssueClass(request: MsgIssueClass): Promise<EmptyResponse>;
322
109
  /** Mint mints new non-fungible token in the class. */
323
110
  Mint(request: MsgMint): Promise<EmptyResponse>;
111
+ /** UpdateData updates the existing non-fungible token data in the class. */
112
+ UpdateData(request: MsgUpdateData): Promise<EmptyResponse>;
324
113
  /** Burn burns the existing non-fungible token in the class. */
325
114
  Burn(request: MsgBurn): Promise<EmptyResponse>;
326
115
  /** Freeze freezes an NFT */
@@ -331,7 +120,34 @@ export interface Msg {
331
120
  AddToWhitelist(request: MsgAddToWhitelist): Promise<EmptyResponse>;
332
121
  /** RemoveFromWhitelist removes an account from whitelisted list of the NFT */
333
122
  RemoveFromWhitelist(request: MsgRemoveFromWhitelist): Promise<EmptyResponse>;
123
+ /**
124
+ * AddToClassWhitelist adds account as whitelist for all the NFTs in the class
125
+ * NOTE: class whitelist does not affect the individual nft whitelisting.
126
+ */
127
+ AddToClassWhitelist(request: MsgAddToClassWhitelist): Promise<EmptyResponse>;
128
+ /**
129
+ * RemoveFromClassWhitelist removes account as whitelist for the entire class
130
+ * NOTE:
131
+ * class whitelist does not affect the individual nft whitelisting.
132
+ * ie. if specific whitelist is granted for an NFT, that whitelist will
133
+ * still be valid, ater we add and remove it from the class whitelist.
134
+ */
135
+ RemoveFromClassWhitelist(request: MsgRemoveFromClassWhitelist): Promise<EmptyResponse>;
136
+ /** ClassFreeze freezes all NFTs of a class held by an account. */
137
+ ClassFreeze(request: MsgClassFreeze): Promise<EmptyResponse>;
138
+ /**
139
+ * ClassUnfreeze removes class-freeze on an account for an NFT class.
140
+ * NOTE:
141
+ * class unfreeze does not affect the individual nft freeze.
142
+ */
143
+ ClassUnfreeze(request: MsgClassUnfreeze): Promise<EmptyResponse>;
144
+ /**
145
+ * UpdateParams is a governance operation that sets the parameters of the module.
146
+ * NOTE: all parameters must be provided.
147
+ */
148
+ UpdateParams(request: MsgUpdateParams): Promise<EmptyResponse>;
334
149
  }
150
+ export declare const MsgServiceName = "coreum.asset.nft.v1.Msg";
335
151
  export declare class MsgClientImpl implements Msg {
336
152
  private readonly rpc;
337
153
  private readonly service;
@@ -340,17 +156,23 @@ export declare class MsgClientImpl implements Msg {
340
156
  });
341
157
  IssueClass(request: MsgIssueClass): Promise<EmptyResponse>;
342
158
  Mint(request: MsgMint): Promise<EmptyResponse>;
159
+ UpdateData(request: MsgUpdateData): Promise<EmptyResponse>;
343
160
  Burn(request: MsgBurn): Promise<EmptyResponse>;
344
161
  Freeze(request: MsgFreeze): Promise<EmptyResponse>;
345
162
  Unfreeze(request: MsgUnfreeze): Promise<EmptyResponse>;
346
163
  AddToWhitelist(request: MsgAddToWhitelist): Promise<EmptyResponse>;
347
164
  RemoveFromWhitelist(request: MsgRemoveFromWhitelist): Promise<EmptyResponse>;
165
+ AddToClassWhitelist(request: MsgAddToClassWhitelist): Promise<EmptyResponse>;
166
+ RemoveFromClassWhitelist(request: MsgRemoveFromClassWhitelist): Promise<EmptyResponse>;
167
+ ClassFreeze(request: MsgClassFreeze): Promise<EmptyResponse>;
168
+ ClassUnfreeze(request: MsgClassUnfreeze): Promise<EmptyResponse>;
169
+ UpdateParams(request: MsgUpdateParams): Promise<EmptyResponse>;
348
170
  }
349
171
  interface Rpc {
350
172
  request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
351
173
  }
352
174
  type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
353
- 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 {} ? {
175
+ 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 {} ? {
354
176
  [K in keyof T]?: DeepPartial<T[K]>;
355
177
  } : Partial<T>;
356
178
  type KeysOfUnion<T> = T extends T ? keyof T : never;
@@ -359,4 +181,12 @@ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
359
181
  } & {
360
182
  [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
361
183
  };
184
+ export interface MessageFns<T> {
185
+ encode(message: T, writer?: BinaryWriter): BinaryWriter;
186
+ decode(input: BinaryReader | Uint8Array, length?: number): T;
187
+ fromJSON(object: any): T;
188
+ toJSON(message: T): unknown;
189
+ create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
190
+ fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
191
+ }
362
192
  export {};