coreum-js 2.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (218) hide show
  1. package/README.md +18 -0
  2. package/dist/main/client/index.d.ts +48 -0
  3. package/dist/main/client/index.js +242 -0
  4. package/dist/main/coreum/asset/ft/v1/event.d.ts +148 -0
  5. package/dist/main/coreum/asset/ft/v1/event.js +377 -0
  6. package/dist/main/coreum/asset/ft/v1/genesis.d.ts +415 -0
  7. package/dist/main/coreum/asset/ft/v1/genesis.js +197 -0
  8. package/dist/main/coreum/asset/ft/v1/params.d.ts +54 -0
  9. package/dist/main/coreum/asset/ft/v1/params.js +69 -0
  10. package/dist/main/coreum/asset/ft/v1/query.d.ts +1863 -0
  11. package/dist/main/coreum/asset/ft/v1/query.js +892 -0
  12. package/dist/main/coreum/asset/ft/v1/token.d.ts +145 -0
  13. package/dist/main/coreum/asset/ft/v1/token.js +361 -0
  14. package/dist/main/coreum/asset/ft/v1/tx.d.ts +416 -0
  15. package/dist/main/coreum/asset/ft/v1/tx.js +760 -0
  16. package/dist/main/coreum/asset/index.d.ts +3 -0
  17. package/dist/main/coreum/asset/index.js +26 -0
  18. package/dist/main/coreum/asset/nft/v1/event.d.ts +191 -0
  19. package/dist/main/coreum/asset/nft/v1/event.js +490 -0
  20. package/dist/main/coreum/asset/nft/v1/genesis.d.ts +321 -0
  21. package/dist/main/coreum/asset/nft/v1/genesis.js +362 -0
  22. package/dist/main/coreum/asset/nft/v1/nft.d.ts +153 -0
  23. package/dist/main/coreum/asset/nft/v1/nft.js +361 -0
  24. package/dist/main/coreum/asset/nft/v1/params.d.ts +54 -0
  25. package/dist/main/coreum/asset/nft/v1/params.js +69 -0
  26. package/dist/main/coreum/asset/nft/v1/query.d.ts +785 -0
  27. package/dist/main/coreum/asset/nft/v1/query.js +627 -0
  28. package/dist/main/coreum/asset/nft/v1/tx.d.ts +357 -0
  29. package/dist/main/coreum/asset/nft/v1/tx.js +806 -0
  30. package/dist/main/coreum/asset/nft/v1/types.d.ts +33 -0
  31. package/dist/main/coreum/asset/nft/v1/types.js +108 -0
  32. package/dist/main/coreum/customparams/v1/genesis.d.ts +48 -0
  33. package/dist/main/coreum/customparams/v1/genesis.js +70 -0
  34. package/dist/main/coreum/customparams/v1/params.d.ts +35 -0
  35. package/dist/main/coreum/customparams/v1/params.js +67 -0
  36. package/dist/main/coreum/customparams/v1/query.d.ts +74 -0
  37. package/dist/main/coreum/customparams/v1/query.js +119 -0
  38. package/dist/main/coreum/extensions/ft.d.ts +13 -0
  39. package/dist/main/coreum/extensions/ft.js +36 -0
  40. package/dist/main/coreum/extensions/nft.d.ts +11 -0
  41. package/dist/main/coreum/extensions/nft.js +30 -0
  42. package/dist/main/coreum/extensions/nftbeta.d.ts +13 -0
  43. package/dist/main/coreum/extensions/nftbeta.js +36 -0
  44. package/dist/main/coreum/feemodel/v1/genesis.d.ts +251 -0
  45. package/dist/main/coreum/feemodel/v1/genesis.js +87 -0
  46. package/dist/main/coreum/feemodel/v1/params.d.ts +384 -0
  47. package/dist/main/coreum/feemodel/v1/params.js +201 -0
  48. package/dist/main/coreum/feemodel/v1/query.d.ts +306 -0
  49. package/dist/main/coreum/feemodel/v1/query.js +214 -0
  50. package/dist/main/coreum/google/api/annotations.d.ts +1 -0
  51. package/dist/main/coreum/google/api/annotations.js +6 -0
  52. package/dist/main/coreum/google/api/http.d.ts +2953 -0
  53. package/dist/main/coreum/google/api/http.js +329 -0
  54. package/dist/main/coreum/google/protobuf/any.d.ts +148 -0
  55. package/dist/main/coreum/google/protobuf/any.js +122 -0
  56. package/dist/main/coreum/index.d.ts +291 -0
  57. package/dist/main/coreum/index.js +116 -0
  58. package/dist/main/coreum/nft/index.d.ts +2 -0
  59. package/dist/main/coreum/nft/index.js +9 -0
  60. package/dist/main/coreum/nft/v1beta1/event.d.ts +109 -0
  61. package/dist/main/coreum/nft/v1beta1/event.js +255 -0
  62. package/dist/main/coreum/nft/v1beta1/genesis.d.ts +460 -0
  63. package/dist/main/coreum/nft/v1beta1/genesis.js +160 -0
  64. package/dist/main/coreum/nft/v1beta1/nft.d.ts +153 -0
  65. package/dist/main/coreum/nft/v1beta1/nft.js +258 -0
  66. package/dist/main/coreum/nft/v1beta1/query.d.ts +1733 -0
  67. package/dist/main/coreum/nft/v1beta1/query.js +872 -0
  68. package/dist/main/coreum/nft/v1beta1/tx.d.ts +80 -0
  69. package/dist/main/coreum/nft/v1beta1/tx.js +155 -0
  70. package/dist/main/cosmos/base/query/v1beta1/pagination.d.ts +470 -0
  71. package/dist/main/cosmos/base/query/v1beta1/pagination.js +224 -0
  72. package/dist/main/cosmos/base/v1beta1/coin.d.ts +114 -0
  73. package/dist/main/cosmos/base/v1beta1/coin.js +242 -0
  74. package/dist/main/cosmos/msg/v1/msg.d.ts +1 -0
  75. package/dist/main/cosmos/msg/v1/msg.js +6 -0
  76. package/dist/main/index.d.ts +5 -0
  77. package/dist/main/index.js +22 -0
  78. package/dist/main/services/cosmostation.d.ts +4 -0
  79. package/dist/main/services/cosmostation.js +47 -0
  80. package/dist/main/services/index.d.ts +2 -0
  81. package/dist/main/services/index.js +19 -0
  82. package/dist/main/services/keplr.d.ts +2 -0
  83. package/dist/main/services/keplr.js +119 -0
  84. package/dist/main/signers/dcent.d.ts +1 -0
  85. package/dist/main/signers/dcent.js +41 -0
  86. package/dist/main/signers/index.d.ts +3 -0
  87. package/dist/main/signers/index.js +20 -0
  88. package/dist/main/signers/offline.d.ts +4 -0
  89. package/dist/main/signers/offline.js +11 -0
  90. package/dist/main/signers/signer.d.ts +6 -0
  91. package/dist/main/signers/signer.js +17 -0
  92. package/dist/main/types/core.d.ts +24 -0
  93. package/dist/main/types/core.js +18 -0
  94. package/dist/main/types/coreum.d.ts +74 -0
  95. package/dist/main/types/coreum.js +80 -0
  96. package/dist/main/types/index.d.ts +3 -0
  97. package/dist/main/types/index.js +20 -0
  98. package/dist/main/types/signing.d.ts +20 -0
  99. package/dist/main/types/signing.js +17 -0
  100. package/dist/main/utils/calculations.d.ts +6 -0
  101. package/dist/main/utils/calculations.js +41 -0
  102. package/dist/main/utils/event.d.ts +5 -0
  103. package/dist/main/utils/event.js +22 -0
  104. package/dist/main/utils/index.d.ts +3 -0
  105. package/dist/main/utils/index.js +20 -0
  106. package/dist/main/utils/nft.d.ts +2 -0
  107. package/dist/main/utils/nft.js +9 -0
  108. package/dist/main/utils/wallet.d.ts +5 -0
  109. package/dist/main/utils/wallet.js +37 -0
  110. package/dist/module/client/index.d.ts +48 -0
  111. package/dist/module/client/index.js +241 -0
  112. package/dist/module/coreum/asset/ft/v1/event.d.ts +148 -0
  113. package/dist/module/coreum/asset/ft/v1/event.js +368 -0
  114. package/dist/module/coreum/asset/ft/v1/genesis.d.ts +415 -0
  115. package/dist/module/coreum/asset/ft/v1/genesis.js +189 -0
  116. package/dist/module/coreum/asset/ft/v1/params.d.ts +54 -0
  117. package/dist/module/coreum/asset/ft/v1/params.js +63 -0
  118. package/dist/module/coreum/asset/ft/v1/query.d.ts +1863 -0
  119. package/dist/module/coreum/asset/ft/v1/query.js +878 -0
  120. package/dist/module/coreum/asset/ft/v1/token.d.ts +145 -0
  121. package/dist/module/coreum/asset/ft/v1/token.js +351 -0
  122. package/dist/module/coreum/asset/ft/v1/tx.d.ts +416 -0
  123. package/dist/module/coreum/asset/ft/v1/tx.js +747 -0
  124. package/dist/module/coreum/asset/index.d.ts +3 -0
  125. package/dist/module/coreum/asset/index.js +23 -0
  126. package/dist/module/coreum/asset/nft/v1/event.d.ts +191 -0
  127. package/dist/module/coreum/asset/nft/v1/event.js +479 -0
  128. package/dist/module/coreum/asset/nft/v1/genesis.d.ts +321 -0
  129. package/dist/module/coreum/asset/nft/v1/genesis.js +352 -0
  130. package/dist/module/coreum/asset/nft/v1/nft.d.ts +153 -0
  131. package/dist/module/coreum/asset/nft/v1/nft.js +351 -0
  132. package/dist/module/coreum/asset/nft/v1/params.d.ts +54 -0
  133. package/dist/module/coreum/asset/nft/v1/params.js +63 -0
  134. package/dist/module/coreum/asset/nft/v1/query.d.ts +785 -0
  135. package/dist/module/coreum/asset/nft/v1/query.js +615 -0
  136. package/dist/module/coreum/asset/nft/v1/tx.d.ts +357 -0
  137. package/dist/module/coreum/asset/nft/v1/tx.js +794 -0
  138. package/dist/module/coreum/asset/nft/v1/types.d.ts +33 -0
  139. package/dist/module/coreum/asset/nft/v1/types.js +101 -0
  140. package/dist/module/coreum/customparams/v1/genesis.d.ts +48 -0
  141. package/dist/module/coreum/customparams/v1/genesis.js +64 -0
  142. package/dist/module/coreum/customparams/v1/params.d.ts +35 -0
  143. package/dist/module/coreum/customparams/v1/params.js +60 -0
  144. package/dist/module/coreum/customparams/v1/query.d.ts +74 -0
  145. package/dist/module/coreum/customparams/v1/query.js +114 -0
  146. package/dist/module/coreum/extensions/ft.d.ts +13 -0
  147. package/dist/module/coreum/extensions/ft.js +32 -0
  148. package/dist/module/coreum/extensions/nft.d.ts +11 -0
  149. package/dist/module/coreum/extensions/nft.js +26 -0
  150. package/dist/module/coreum/extensions/nftbeta.d.ts +13 -0
  151. package/dist/module/coreum/extensions/nftbeta.js +32 -0
  152. package/dist/module/coreum/feemodel/v1/genesis.d.ts +251 -0
  153. package/dist/module/coreum/feemodel/v1/genesis.js +81 -0
  154. package/dist/module/coreum/feemodel/v1/params.d.ts +384 -0
  155. package/dist/module/coreum/feemodel/v1/params.js +194 -0
  156. package/dist/module/coreum/feemodel/v1/query.d.ts +306 -0
  157. package/dist/module/coreum/feemodel/v1/query.js +209 -0
  158. package/dist/module/coreum/google/api/annotations.d.ts +1 -0
  159. package/dist/module/coreum/google/api/annotations.js +3 -0
  160. package/dist/module/coreum/google/api/http.d.ts +2953 -0
  161. package/dist/module/coreum/google/api/http.js +320 -0
  162. package/dist/module/coreum/google/protobuf/any.d.ts +148 -0
  163. package/dist/module/coreum/google/protobuf/any.js +115 -0
  164. package/dist/module/coreum/index.d.ts +291 -0
  165. package/dist/module/coreum/index.js +113 -0
  166. package/dist/module/coreum/nft/index.d.ts +2 -0
  167. package/dist/module/coreum/nft/index.js +6 -0
  168. package/dist/module/coreum/nft/v1beta1/event.d.ts +109 -0
  169. package/dist/module/coreum/nft/v1beta1/event.js +246 -0
  170. package/dist/module/coreum/nft/v1beta1/genesis.d.ts +460 -0
  171. package/dist/module/coreum/nft/v1beta1/genesis.js +152 -0
  172. package/dist/module/coreum/nft/v1beta1/nft.d.ts +153 -0
  173. package/dist/module/coreum/nft/v1beta1/nft.js +250 -0
  174. package/dist/module/coreum/nft/v1beta1/query.d.ts +1733 -0
  175. package/dist/module/coreum/nft/v1beta1/query.js +858 -0
  176. package/dist/module/coreum/nft/v1beta1/tx.d.ts +80 -0
  177. package/dist/module/coreum/nft/v1beta1/tx.js +149 -0
  178. package/dist/module/cosmos/base/query/v1beta1/pagination.d.ts +470 -0
  179. package/dist/module/cosmos/base/query/v1beta1/pagination.js +216 -0
  180. package/dist/module/cosmos/base/v1beta1/coin.d.ts +114 -0
  181. package/dist/module/cosmos/base/v1beta1/coin.js +232 -0
  182. package/dist/module/cosmos/msg/v1/msg.d.ts +1 -0
  183. package/dist/module/cosmos/msg/v1/msg.js +3 -0
  184. package/dist/module/index.d.ts +5 -0
  185. package/dist/module/index.js +6 -0
  186. package/dist/module/services/cosmostation.d.ts +4 -0
  187. package/dist/module/services/cosmostation.js +42 -0
  188. package/dist/module/services/index.d.ts +2 -0
  189. package/dist/module/services/index.js +3 -0
  190. package/dist/module/services/keplr.d.ts +2 -0
  191. package/dist/module/services/keplr.js +115 -0
  192. package/dist/module/signers/dcent.d.ts +1 -0
  193. package/dist/module/signers/dcent.js +31 -0
  194. package/dist/module/signers/index.d.ts +3 -0
  195. package/dist/module/signers/index.js +4 -0
  196. package/dist/module/signers/offline.d.ts +4 -0
  197. package/dist/module/signers/offline.js +7 -0
  198. package/dist/module/signers/signer.d.ts +6 -0
  199. package/dist/module/signers/signer.js +11 -0
  200. package/dist/module/types/core.d.ts +24 -0
  201. package/dist/module/types/core.js +15 -0
  202. package/dist/module/types/coreum.d.ts +74 -0
  203. package/dist/module/types/coreum.js +77 -0
  204. package/dist/module/types/index.d.ts +3 -0
  205. package/dist/module/types/index.js +4 -0
  206. package/dist/module/types/signing.d.ts +20 -0
  207. package/dist/module/types/signing.js +14 -0
  208. package/dist/module/utils/calculations.d.ts +6 -0
  209. package/dist/module/utils/calculations.js +29 -0
  210. package/dist/module/utils/event.d.ts +5 -0
  211. package/dist/module/utils/event.js +18 -0
  212. package/dist/module/utils/index.d.ts +3 -0
  213. package/dist/module/utils/index.js +4 -0
  214. package/dist/module/utils/nft.d.ts +2 -0
  215. package/dist/module/utils/nft.js +5 -0
  216. package/dist/module/utils/wallet.d.ts +5 -0
  217. package/dist/module/utils/wallet.js +31 -0
  218. package/package.json +55 -0
@@ -0,0 +1,416 @@
1
+ import Long from "long";
2
+ import _m0 from "protobufjs/minimal";
3
+ import { Coin } from "../../../../cosmos/base/v1beta1/coin";
4
+ import { Feature } from "./token";
5
+ export declare const protobufPackage = "coreum.asset.ft.v1";
6
+ /** MsgIssue defines message to issue new fungible token. */
7
+ export interface MsgIssue {
8
+ issuer: string;
9
+ symbol: string;
10
+ subunit: string;
11
+ precision: number;
12
+ initialAmount: string;
13
+ description: string;
14
+ features: Feature[];
15
+ /**
16
+ * burn_rate is a number between 0 and 1 which will be multiplied by send amount to determine
17
+ * burn_amount. This value will be burnt on top of the send amount.
18
+ */
19
+ burnRate: string;
20
+ /**
21
+ * send_commission_rate is a number between 0 and 1 which will be multiplied by send amount to determine
22
+ * amount sent to the token issuer account.
23
+ */
24
+ sendCommissionRate: string;
25
+ }
26
+ export interface MsgMint {
27
+ sender: string;
28
+ coin?: Coin;
29
+ }
30
+ export interface MsgBurn {
31
+ sender: string;
32
+ coin?: Coin;
33
+ }
34
+ export interface MsgFreeze {
35
+ sender: string;
36
+ account: string;
37
+ coin?: Coin;
38
+ }
39
+ export interface MsgUnfreeze {
40
+ sender: string;
41
+ account: string;
42
+ coin?: Coin;
43
+ }
44
+ export interface MsgGloballyFreeze {
45
+ sender: string;
46
+ denom: string;
47
+ }
48
+ export interface MsgGloballyUnfreeze {
49
+ sender: string;
50
+ denom: string;
51
+ }
52
+ export interface MsgSetWhitelistedLimit {
53
+ sender: string;
54
+ account: string;
55
+ coin?: Coin;
56
+ }
57
+ export interface EmptyResponse {
58
+ }
59
+ export declare const MsgIssue: {
60
+ encode(message: MsgIssue, writer?: _m0.Writer): _m0.Writer;
61
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgIssue;
62
+ fromJSON(object: any): MsgIssue;
63
+ toJSON(message: MsgIssue): unknown;
64
+ create<I extends {
65
+ issuer?: string;
66
+ symbol?: string;
67
+ subunit?: string;
68
+ precision?: number;
69
+ initialAmount?: string;
70
+ description?: string;
71
+ features?: Feature[];
72
+ burnRate?: string;
73
+ sendCommissionRate?: string;
74
+ } & {
75
+ issuer?: string;
76
+ symbol?: string;
77
+ subunit?: string;
78
+ precision?: number;
79
+ initialAmount?: string;
80
+ description?: string;
81
+ features?: Feature[] & Feature[] & { [K in Exclude<keyof I["features"], keyof Feature[]>]: never; };
82
+ burnRate?: string;
83
+ sendCommissionRate?: string;
84
+ } & { [K_1 in Exclude<keyof I, keyof MsgIssue>]: never; }>(base?: I): MsgIssue;
85
+ fromPartial<I_1 extends {
86
+ issuer?: string;
87
+ symbol?: string;
88
+ subunit?: string;
89
+ precision?: number;
90
+ initialAmount?: string;
91
+ description?: string;
92
+ features?: Feature[];
93
+ burnRate?: string;
94
+ sendCommissionRate?: string;
95
+ } & {
96
+ issuer?: string;
97
+ symbol?: string;
98
+ subunit?: string;
99
+ precision?: number;
100
+ initialAmount?: string;
101
+ description?: string;
102
+ features?: Feature[] & Feature[] & { [K_2 in Exclude<keyof I_1["features"], keyof Feature[]>]: never; };
103
+ burnRate?: string;
104
+ sendCommissionRate?: string;
105
+ } & { [K_3 in Exclude<keyof I_1, keyof MsgIssue>]: never; }>(object: I_1): MsgIssue;
106
+ };
107
+ export declare const MsgMint: {
108
+ encode(message: MsgMint, writer?: _m0.Writer): _m0.Writer;
109
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgMint;
110
+ fromJSON(object: any): MsgMint;
111
+ toJSON(message: MsgMint): unknown;
112
+ create<I extends {
113
+ sender?: string;
114
+ coin?: {
115
+ denom?: string;
116
+ amount?: string;
117
+ };
118
+ } & {
119
+ sender?: string;
120
+ coin?: {
121
+ denom?: string;
122
+ amount?: string;
123
+ } & {
124
+ denom?: string;
125
+ amount?: string;
126
+ } & { [K in Exclude<keyof I["coin"], keyof Coin>]: never; };
127
+ } & { [K_1 in Exclude<keyof I, keyof MsgMint>]: never; }>(base?: I): MsgMint;
128
+ fromPartial<I_1 extends {
129
+ sender?: string;
130
+ coin?: {
131
+ denom?: string;
132
+ amount?: string;
133
+ };
134
+ } & {
135
+ sender?: string;
136
+ coin?: {
137
+ denom?: string;
138
+ amount?: string;
139
+ } & {
140
+ denom?: string;
141
+ amount?: string;
142
+ } & { [K_2 in Exclude<keyof I_1["coin"], keyof Coin>]: never; };
143
+ } & { [K_3 in Exclude<keyof I_1, keyof MsgMint>]: never; }>(object: I_1): MsgMint;
144
+ };
145
+ export declare const MsgBurn: {
146
+ encode(message: MsgBurn, writer?: _m0.Writer): _m0.Writer;
147
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgBurn;
148
+ fromJSON(object: any): MsgBurn;
149
+ toJSON(message: MsgBurn): unknown;
150
+ create<I extends {
151
+ sender?: string;
152
+ coin?: {
153
+ denom?: string;
154
+ amount?: string;
155
+ };
156
+ } & {
157
+ sender?: string;
158
+ coin?: {
159
+ denom?: string;
160
+ amount?: string;
161
+ } & {
162
+ denom?: string;
163
+ amount?: string;
164
+ } & { [K in Exclude<keyof I["coin"], keyof Coin>]: never; };
165
+ } & { [K_1 in Exclude<keyof I, keyof MsgBurn>]: never; }>(base?: I): MsgBurn;
166
+ fromPartial<I_1 extends {
167
+ sender?: string;
168
+ coin?: {
169
+ denom?: string;
170
+ amount?: string;
171
+ };
172
+ } & {
173
+ sender?: string;
174
+ coin?: {
175
+ denom?: string;
176
+ amount?: string;
177
+ } & {
178
+ denom?: string;
179
+ amount?: string;
180
+ } & { [K_2 in Exclude<keyof I_1["coin"], keyof Coin>]: never; };
181
+ } & { [K_3 in Exclude<keyof I_1, keyof MsgBurn>]: never; }>(object: I_1): MsgBurn;
182
+ };
183
+ export declare const MsgFreeze: {
184
+ encode(message: MsgFreeze, writer?: _m0.Writer): _m0.Writer;
185
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgFreeze;
186
+ fromJSON(object: any): MsgFreeze;
187
+ toJSON(message: MsgFreeze): unknown;
188
+ create<I extends {
189
+ sender?: string;
190
+ account?: string;
191
+ coin?: {
192
+ denom?: string;
193
+ amount?: string;
194
+ };
195
+ } & {
196
+ sender?: string;
197
+ account?: string;
198
+ coin?: {
199
+ denom?: string;
200
+ amount?: string;
201
+ } & {
202
+ denom?: string;
203
+ amount?: string;
204
+ } & { [K in Exclude<keyof I["coin"], keyof Coin>]: never; };
205
+ } & { [K_1 in Exclude<keyof I, keyof MsgFreeze>]: never; }>(base?: I): MsgFreeze;
206
+ fromPartial<I_1 extends {
207
+ sender?: string;
208
+ account?: string;
209
+ coin?: {
210
+ denom?: string;
211
+ amount?: string;
212
+ };
213
+ } & {
214
+ sender?: string;
215
+ account?: string;
216
+ coin?: {
217
+ denom?: string;
218
+ amount?: string;
219
+ } & {
220
+ denom?: string;
221
+ amount?: string;
222
+ } & { [K_2 in Exclude<keyof I_1["coin"], keyof Coin>]: never; };
223
+ } & { [K_3 in Exclude<keyof I_1, keyof MsgFreeze>]: never; }>(object: I_1): MsgFreeze;
224
+ };
225
+ export declare const MsgUnfreeze: {
226
+ encode(message: MsgUnfreeze, writer?: _m0.Writer): _m0.Writer;
227
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgUnfreeze;
228
+ fromJSON(object: any): MsgUnfreeze;
229
+ toJSON(message: MsgUnfreeze): unknown;
230
+ create<I extends {
231
+ sender?: string;
232
+ account?: string;
233
+ coin?: {
234
+ denom?: string;
235
+ amount?: string;
236
+ };
237
+ } & {
238
+ sender?: string;
239
+ account?: string;
240
+ coin?: {
241
+ denom?: string;
242
+ amount?: string;
243
+ } & {
244
+ denom?: string;
245
+ amount?: string;
246
+ } & { [K in Exclude<keyof I["coin"], keyof Coin>]: never; };
247
+ } & { [K_1 in Exclude<keyof I, keyof MsgUnfreeze>]: never; }>(base?: I): MsgUnfreeze;
248
+ fromPartial<I_1 extends {
249
+ sender?: string;
250
+ account?: string;
251
+ coin?: {
252
+ denom?: string;
253
+ amount?: string;
254
+ };
255
+ } & {
256
+ sender?: string;
257
+ account?: string;
258
+ coin?: {
259
+ denom?: string;
260
+ amount?: string;
261
+ } & {
262
+ denom?: string;
263
+ amount?: string;
264
+ } & { [K_2 in Exclude<keyof I_1["coin"], keyof Coin>]: never; };
265
+ } & { [K_3 in Exclude<keyof I_1, keyof MsgUnfreeze>]: never; }>(object: I_1): MsgUnfreeze;
266
+ };
267
+ export declare const MsgGloballyFreeze: {
268
+ encode(message: MsgGloballyFreeze, writer?: _m0.Writer): _m0.Writer;
269
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgGloballyFreeze;
270
+ fromJSON(object: any): MsgGloballyFreeze;
271
+ toJSON(message: MsgGloballyFreeze): unknown;
272
+ create<I extends {
273
+ sender?: string;
274
+ denom?: string;
275
+ } & {
276
+ sender?: string;
277
+ denom?: string;
278
+ } & { [K in Exclude<keyof I, keyof MsgGloballyFreeze>]: never; }>(base?: I): MsgGloballyFreeze;
279
+ fromPartial<I_1 extends {
280
+ sender?: string;
281
+ denom?: string;
282
+ } & {
283
+ sender?: string;
284
+ denom?: string;
285
+ } & { [K_1 in Exclude<keyof I_1, keyof MsgGloballyFreeze>]: never; }>(object: I_1): MsgGloballyFreeze;
286
+ };
287
+ export declare const MsgGloballyUnfreeze: {
288
+ encode(message: MsgGloballyUnfreeze, writer?: _m0.Writer): _m0.Writer;
289
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgGloballyUnfreeze;
290
+ fromJSON(object: any): MsgGloballyUnfreeze;
291
+ toJSON(message: MsgGloballyUnfreeze): unknown;
292
+ create<I extends {
293
+ sender?: string;
294
+ denom?: string;
295
+ } & {
296
+ sender?: string;
297
+ denom?: string;
298
+ } & { [K in Exclude<keyof I, keyof MsgGloballyUnfreeze>]: never; }>(base?: I): MsgGloballyUnfreeze;
299
+ fromPartial<I_1 extends {
300
+ sender?: string;
301
+ denom?: string;
302
+ } & {
303
+ sender?: string;
304
+ denom?: string;
305
+ } & { [K_1 in Exclude<keyof I_1, keyof MsgGloballyUnfreeze>]: never; }>(object: I_1): MsgGloballyUnfreeze;
306
+ };
307
+ export declare const MsgSetWhitelistedLimit: {
308
+ encode(message: MsgSetWhitelistedLimit, writer?: _m0.Writer): _m0.Writer;
309
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgSetWhitelistedLimit;
310
+ fromJSON(object: any): MsgSetWhitelistedLimit;
311
+ toJSON(message: MsgSetWhitelistedLimit): unknown;
312
+ create<I extends {
313
+ sender?: string;
314
+ account?: string;
315
+ coin?: {
316
+ denom?: string;
317
+ amount?: string;
318
+ };
319
+ } & {
320
+ sender?: string;
321
+ account?: string;
322
+ coin?: {
323
+ denom?: string;
324
+ amount?: string;
325
+ } & {
326
+ denom?: string;
327
+ amount?: string;
328
+ } & { [K in Exclude<keyof I["coin"], keyof Coin>]: never; };
329
+ } & { [K_1 in Exclude<keyof I, keyof MsgSetWhitelistedLimit>]: never; }>(base?: I): MsgSetWhitelistedLimit;
330
+ fromPartial<I_1 extends {
331
+ sender?: string;
332
+ account?: string;
333
+ coin?: {
334
+ denom?: string;
335
+ amount?: string;
336
+ };
337
+ } & {
338
+ sender?: string;
339
+ account?: string;
340
+ coin?: {
341
+ denom?: string;
342
+ amount?: string;
343
+ } & {
344
+ denom?: string;
345
+ amount?: string;
346
+ } & { [K_2 in Exclude<keyof I_1["coin"], keyof Coin>]: never; };
347
+ } & { [K_3 in Exclude<keyof I_1, keyof MsgSetWhitelistedLimit>]: never; }>(object: I_1): MsgSetWhitelistedLimit;
348
+ };
349
+ export declare const EmptyResponse: {
350
+ encode(_: EmptyResponse, writer?: _m0.Writer): _m0.Writer;
351
+ decode(input: _m0.Reader | Uint8Array, length?: number): EmptyResponse;
352
+ fromJSON(_: any): EmptyResponse;
353
+ toJSON(_: EmptyResponse): unknown;
354
+ create<I extends {} & {} & { [K in Exclude<keyof I, never>]: never; }>(base?: I): EmptyResponse;
355
+ fromPartial<I_1 extends {} & {} & { [K_1 in Exclude<keyof I_1, never>]: never; }>(_: I_1): EmptyResponse;
356
+ };
357
+ /** Msg defines the Msg service. */
358
+ export interface Msg {
359
+ /** Issue defines a method to issue a new fungible token. */
360
+ Issue(request: MsgIssue): Promise<EmptyResponse>;
361
+ /** Mint mints new fungible tokens. */
362
+ Mint(request: MsgMint): Promise<EmptyResponse>;
363
+ /** Burn burns the specified fungible tokens from senders balance if the sender has enough balance. */
364
+ Burn(request: MsgBurn): Promise<EmptyResponse>;
365
+ /**
366
+ * Freeze freezes a part of the fungible tokens in an
367
+ * account, only if the freezable feature is enabled on that token.
368
+ */
369
+ Freeze(request: MsgFreeze): Promise<EmptyResponse>;
370
+ /**
371
+ * Unfreeze unfreezes a part of the frozen fungible tokens in an
372
+ * account, only if there are such frozen tokens on that account.
373
+ */
374
+ Unfreeze(request: MsgUnfreeze): Promise<EmptyResponse>;
375
+ /**
376
+ * GloballyFreeze freezes fungible token so no operations are allowed with it before unfrozen.
377
+ * This operation is idempotent so global freeze of already frozen token does nothing.
378
+ */
379
+ GloballyFreeze(request: MsgGloballyFreeze): Promise<EmptyResponse>;
380
+ /**
381
+ * GloballyUnfreeze unfreezes fungible token and unblocks basic operations on it.
382
+ * This operation is idempotent so global unfreezing of non-frozen token does nothing.
383
+ */
384
+ GloballyUnfreeze(request: MsgGloballyUnfreeze): Promise<EmptyResponse>;
385
+ /** SetWhitelistedLimit sets the limit of how many tokens a specific account may hold. */
386
+ SetWhitelistedLimit(request: MsgSetWhitelistedLimit): Promise<EmptyResponse>;
387
+ }
388
+ export declare class MsgClientImpl implements Msg {
389
+ private readonly rpc;
390
+ private readonly service;
391
+ constructor(rpc: Rpc, opts?: {
392
+ service?: string;
393
+ });
394
+ Issue(request: MsgIssue): Promise<EmptyResponse>;
395
+ Mint(request: MsgMint): Promise<EmptyResponse>;
396
+ Burn(request: MsgBurn): Promise<EmptyResponse>;
397
+ Freeze(request: MsgFreeze): Promise<EmptyResponse>;
398
+ Unfreeze(request: MsgUnfreeze): Promise<EmptyResponse>;
399
+ GloballyFreeze(request: MsgGloballyFreeze): Promise<EmptyResponse>;
400
+ GloballyUnfreeze(request: MsgGloballyUnfreeze): Promise<EmptyResponse>;
401
+ SetWhitelistedLimit(request: MsgSetWhitelistedLimit): Promise<EmptyResponse>;
402
+ }
403
+ interface Rpc {
404
+ request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
405
+ }
406
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
407
+ 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 {} ? {
408
+ [K in keyof T]?: DeepPartial<T[K]>;
409
+ } : Partial<T>;
410
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
411
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
412
+ [K in keyof P]: Exact<P[K], I[K]>;
413
+ } & {
414
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
415
+ };
416
+ export {};