wapi-client 0.18.0 → 0.18.2

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 (209) hide show
  1. package/dist/api/base-client.browser.cjs +31 -957
  2. package/dist/api/base-client.browser.js +31 -957
  3. package/dist/api/base-client.cjs +31 -957
  4. package/dist/api/base-client.js +31 -957
  5. package/dist/api/http-client.browser.cjs +25 -7
  6. package/dist/api/http-client.browser.js +30 -8
  7. package/dist/api/http-client.cjs +25 -7
  8. package/dist/api/http-client.js +30 -8
  9. package/dist/api/ws-client.browser.cjs +0 -4
  10. package/dist/api/ws-client.browser.js +0 -4
  11. package/dist/api/ws-client.cjs +0 -4
  12. package/dist/api/ws-client.js +0 -4
  13. package/dist/db/consts.browser.cjs +6 -13
  14. package/dist/db/consts.browser.js +6 -13
  15. package/dist/db/consts.cjs +6 -13
  16. package/dist/db/consts.js +6 -13
  17. package/dist/fns/create-access-token/create-access-token.browser.cjs +3 -3
  18. package/dist/fns/create-access-token/create-access-token.browser.js +3 -3
  19. package/dist/fns/create-access-token/create-access-token.cjs +3 -3
  20. package/dist/fns/create-access-token/create-access-token.js +3 -3
  21. package/dist/fns/create-apikey/create-apikey.browser.cjs +3 -3
  22. package/dist/fns/create-apikey/create-apikey.browser.js +3 -3
  23. package/dist/fns/create-apikey/create-apikey.cjs +3 -3
  24. package/dist/fns/create-apikey/create-apikey.js +3 -3
  25. package/dist/fns/create-contract/create-contract.browser.cjs +3 -3
  26. package/dist/fns/create-contract/create-contract.browser.js +3 -3
  27. package/dist/fns/create-contract/create-contract.cjs +3 -3
  28. package/dist/fns/create-contract/create-contract.js +3 -3
  29. package/dist/fns/create-deposit/create-deposit.browser.cjs +3 -3
  30. package/dist/fns/create-deposit/create-deposit.browser.js +3 -3
  31. package/dist/fns/create-deposit/create-deposit.cjs +3 -3
  32. package/dist/fns/create-deposit/create-deposit.js +3 -3
  33. package/dist/fns/create-exchange/create-exchange.browser.cjs +3 -3
  34. package/dist/fns/create-exchange/create-exchange.browser.js +3 -3
  35. package/dist/fns/create-exchange/create-exchange.cjs +3 -3
  36. package/dist/fns/create-exchange/create-exchange.js +3 -3
  37. package/dist/fns/create-index/create-index.browser.cjs +3 -3
  38. package/dist/fns/create-index/create-index.browser.js +3 -3
  39. package/dist/fns/create-index/create-index.cjs +3 -3
  40. package/dist/fns/create-index/create-index.js +3 -3
  41. package/dist/fns/create-token/create-token.browser.cjs +3 -3
  42. package/dist/fns/create-token/create-token.browser.js +3 -3
  43. package/dist/fns/create-token/create-token.cjs +3 -3
  44. package/dist/fns/create-token/create-token.js +3 -3
  45. package/dist/fns/create-transfer/create-transfer.browser.cjs +3 -3
  46. package/dist/fns/create-transfer/create-transfer.browser.js +3 -3
  47. package/dist/fns/create-transfer/create-transfer.cjs +3 -3
  48. package/dist/fns/create-transfer/create-transfer.js +3 -3
  49. package/dist/fns/create-transfer-group/create-transfer-group.browser.cjs +3 -3
  50. package/dist/fns/create-transfer-group/create-transfer-group.browser.js +3 -3
  51. package/dist/fns/create-transfer-group/create-transfer-group.cjs +3 -3
  52. package/dist/fns/create-transfer-group/create-transfer-group.js +3 -3
  53. package/dist/fns/create-transfers/create-transfers.browser.cjs +3 -3
  54. package/dist/fns/create-transfers/create-transfers.browser.js +3 -3
  55. package/dist/fns/create-transfers/create-transfers.cjs +3 -3
  56. package/dist/fns/create-transfers/create-transfers.js +3 -3
  57. package/dist/fns/create-wallet/create-wallet.browser.cjs +3 -3
  58. package/dist/fns/create-wallet/create-wallet.browser.js +3 -3
  59. package/dist/fns/create-wallet/create-wallet.cjs +3 -3
  60. package/dist/fns/create-wallet/create-wallet.js +3 -3
  61. package/dist/fns/create-withdrawal/create-withdrawal.browser.cjs +3 -3
  62. package/dist/fns/create-withdrawal/create-withdrawal.browser.js +3 -3
  63. package/dist/fns/create-withdrawal/create-withdrawal.cjs +3 -3
  64. package/dist/fns/create-withdrawal/create-withdrawal.js +3 -3
  65. package/dist/fns/drop-index/drop-index.browser.cjs +3 -3
  66. package/dist/fns/drop-index/drop-index.browser.js +3 -3
  67. package/dist/fns/drop-index/drop-index.cjs +3 -3
  68. package/dist/fns/drop-index/drop-index.js +3 -3
  69. package/dist/fns/drop-index/drop-index.schema.zod.browser.cjs +3 -1
  70. package/dist/fns/drop-index/drop-index.schema.zod.browser.js +3 -1
  71. package/dist/fns/drop-index/drop-index.schema.zod.cjs +3 -1
  72. package/dist/fns/drop-index/drop-index.schema.zod.js +3 -1
  73. package/dist/fns/export-balance-history/export-balance-history.browser.cjs +3 -3
  74. package/dist/fns/export-balance-history/export-balance-history.browser.js +3 -3
  75. package/dist/fns/export-balance-history/export-balance-history.cjs +3 -3
  76. package/dist/fns/export-balance-history/export-balance-history.js +3 -3
  77. package/dist/fns/find-indexes/find-indexes.browser.cjs +3 -3
  78. package/dist/fns/find-indexes/find-indexes.browser.js +3 -3
  79. package/dist/fns/find-indexes/find-indexes.cjs +3 -3
  80. package/dist/fns/find-indexes/find-indexes.js +3 -3
  81. package/dist/fns/get-balance/get-balance.browser.cjs +3 -3
  82. package/dist/fns/get-balance/get-balance.browser.js +3 -3
  83. package/dist/fns/get-balance/get-balance.cjs +3 -3
  84. package/dist/fns/get-balance/get-balance.js +3 -3
  85. package/dist/fns/get-balance-history/get-balance-history.browser.cjs +3 -3
  86. package/dist/fns/get-balance-history/get-balance-history.browser.js +3 -3
  87. package/dist/fns/get-balance-history/get-balance-history.cjs +3 -3
  88. package/dist/fns/get-balance-history/get-balance-history.js +3 -3
  89. package/dist/fns/get-export/get-export.browser.cjs +3 -3
  90. package/dist/fns/get-export/get-export.browser.js +3 -3
  91. package/dist/fns/get-export/get-export.cjs +3 -3
  92. package/dist/fns/get-export/get-export.js +3 -3
  93. package/dist/fns/get-flags/get-flags.browser.cjs +3 -3
  94. package/dist/fns/get-flags/get-flags.browser.js +3 -3
  95. package/dist/fns/get-flags/get-flags.cjs +3 -3
  96. package/dist/fns/get-flags/get-flags.js +3 -3
  97. package/dist/fns/get-statistics/get-statistics.browser.cjs +3 -3
  98. package/dist/fns/get-statistics/get-statistics.browser.js +3 -3
  99. package/dist/fns/get-statistics/get-statistics.cjs +3 -3
  100. package/dist/fns/get-statistics/get-statistics.js +3 -3
  101. package/dist/fns/get-token/get-token.browser.cjs +3 -3
  102. package/dist/fns/get-token/get-token.browser.js +3 -3
  103. package/dist/fns/get-token/get-token.cjs +3 -3
  104. package/dist/fns/get-token/get-token.js +3 -3
  105. package/dist/fns/get-transfer/get-transfer.browser.cjs +3 -3
  106. package/dist/fns/get-transfer/get-transfer.browser.js +3 -3
  107. package/dist/fns/get-transfer/get-transfer.cjs +3 -3
  108. package/dist/fns/get-transfer/get-transfer.js +3 -3
  109. package/dist/fns/get-transfer-group/get-transfer-group.browser.cjs +3 -3
  110. package/dist/fns/get-transfer-group/get-transfer-group.browser.js +3 -3
  111. package/dist/fns/get-transfer-group/get-transfer-group.cjs +3 -3
  112. package/dist/fns/get-transfer-group/get-transfer-group.js +3 -3
  113. package/dist/fns/get-wallet/get-wallet.browser.cjs +3 -3
  114. package/dist/fns/get-wallet/get-wallet.browser.js +3 -3
  115. package/dist/fns/get-wallet/get-wallet.cjs +3 -3
  116. package/dist/fns/get-wallet/get-wallet.js +3 -3
  117. package/dist/fns/healthcheck/healthcheck.browser.cjs +3 -3
  118. package/dist/fns/healthcheck/healthcheck.browser.js +3 -3
  119. package/dist/fns/healthcheck/healthcheck.cjs +3 -3
  120. package/dist/fns/healthcheck/healthcheck.js +3 -3
  121. package/dist/fns/list-exports/list-exports.browser.cjs +3 -3
  122. package/dist/fns/list-exports/list-exports.browser.js +3 -3
  123. package/dist/fns/list-exports/list-exports.cjs +3 -3
  124. package/dist/fns/list-exports/list-exports.js +3 -3
  125. package/dist/fns/reverse-transfer/reverse-transfer.browser.cjs +3 -3
  126. package/dist/fns/reverse-transfer/reverse-transfer.browser.js +3 -3
  127. package/dist/fns/reverse-transfer/reverse-transfer.cjs +3 -3
  128. package/dist/fns/reverse-transfer/reverse-transfer.js +3 -3
  129. package/dist/fns/reverse-transfer-group/reverse-transfer-group.browser.cjs +3 -3
  130. package/dist/fns/reverse-transfer-group/reverse-transfer-group.browser.js +3 -3
  131. package/dist/fns/reverse-transfer-group/reverse-transfer-group.cjs +3 -3
  132. package/dist/fns/reverse-transfer-group/reverse-transfer-group.js +3 -3
  133. package/dist/fns/set-flags/set-flags.browser.cjs +3 -3
  134. package/dist/fns/set-flags/set-flags.browser.js +3 -3
  135. package/dist/fns/set-flags/set-flags.cjs +3 -3
  136. package/dist/fns/set-flags/set-flags.js +3 -3
  137. package/dist/fns/update-apikey/update-apikey.browser.cjs +3 -3
  138. package/dist/fns/update-apikey/update-apikey.browser.js +3 -3
  139. package/dist/fns/update-apikey/update-apikey.cjs +3 -3
  140. package/dist/fns/update-apikey/update-apikey.js +3 -3
  141. package/dist/fns/update-token/update-token.browser.cjs +3 -3
  142. package/dist/fns/update-token/update-token.browser.js +3 -3
  143. package/dist/fns/update-token/update-token.cjs +3 -3
  144. package/dist/fns/update-token/update-token.js +3 -3
  145. package/dist/fns/update-transfer/update-transfer.browser.cjs +3 -3
  146. package/dist/fns/update-transfer/update-transfer.browser.js +3 -3
  147. package/dist/fns/update-transfer/update-transfer.cjs +3 -3
  148. package/dist/fns/update-transfer/update-transfer.js +3 -3
  149. package/dist/fns/update-transfer-group/update-transfer-group.browser.cjs +3 -3
  150. package/dist/fns/update-transfer-group/update-transfer-group.browser.js +3 -3
  151. package/dist/fns/update-transfer-group/update-transfer-group.cjs +3 -3
  152. package/dist/fns/update-transfer-group/update-transfer-group.js +3 -3
  153. package/dist/fns/update-wallet/update-wallet.browser.cjs +3 -3
  154. package/dist/fns/update-wallet/update-wallet.browser.js +3 -3
  155. package/dist/fns/update-wallet/update-wallet.cjs +3 -3
  156. package/dist/fns/update-wallet/update-wallet.js +3 -3
  157. package/dist/lib/debug.browser.cjs +10 -9
  158. package/dist/lib/debug.browser.js +10 -9
  159. package/dist/lib/debug.cjs +10 -9
  160. package/dist/lib/debug.js +10 -9
  161. package/dist/lib/env.browser.cjs +1 -1
  162. package/dist/lib/env.browser.js +1 -1
  163. package/dist/lib/env.cjs +1 -1
  164. package/dist/lib/env.js +1 -1
  165. package/dist/lib/polyfill.browser.cjs +13 -19
  166. package/dist/lib/polyfill.browser.js +13 -19
  167. package/dist/lib/polyfill.cjs +14 -20
  168. package/dist/lib/polyfill.js +13 -19
  169. package/dist/lib/query-builder/query-builder.browser.js +3 -1
  170. package/dist/lib/query-builder/query-builder.js +3 -1
  171. package/dist/lib/stream-promise.browser.cjs +2 -1
  172. package/dist/lib/stream-promise.browser.js +2 -1
  173. package/dist/lib/stream-promise.cjs +2 -1
  174. package/dist/lib/stream-promise.js +2 -1
  175. package/dist/lib/streams.browser.cjs +1 -53
  176. package/dist/lib/streams.browser.js +1 -53
  177. package/dist/lib/streams.cjs +2 -56
  178. package/dist/lib/streams.js +1 -53
  179. package/dist/lib/utils.browser.cjs +9 -4
  180. package/dist/lib/utils.browser.js +9 -4
  181. package/dist/lib/utils.cjs +10 -4
  182. package/dist/lib/utils.js +9 -4
  183. package/dist/lib/validator.browser.cjs +478 -106
  184. package/dist/lib/validator.browser.js +478 -106
  185. package/dist/lib/validator.cjs +478 -106
  186. package/dist/lib/validator.js +478 -106
  187. package/dist/txs/tx-map.generated.browser.cjs +84 -0
  188. package/dist/txs/tx-map.generated.browser.js +63 -0
  189. package/dist/txs/tx-map.generated.cjs +88 -0
  190. package/dist/txs/tx-map.generated.js +63 -0
  191. package/dist/txs/update-token/update-token.schema.zod.browser.cjs +3 -2
  192. package/dist/txs/update-token/update-token.schema.zod.browser.js +4 -3
  193. package/dist/txs/update-token/update-token.schema.zod.cjs +3 -2
  194. package/dist/txs/update-token/update-token.schema.zod.js +4 -3
  195. package/dist/txs/update-wallet/update-wallet.schema.zod.browser.cjs +2 -1
  196. package/dist/txs/update-wallet/update-wallet.schema.zod.browser.js +3 -2
  197. package/dist/txs/update-wallet/update-wallet.schema.zod.cjs +2 -1
  198. package/dist/txs/update-wallet/update-wallet.schema.zod.js +3 -2
  199. package/dist/types/wapi-client.d.ts +32114 -32232
  200. package/dist/wapi-client.browser.cjs +0 -2
  201. package/dist/wapi-client.browser.js +0 -2
  202. package/dist/wapi-client.cjs +0 -2
  203. package/dist/wapi-client.iife.js +14 -14
  204. package/dist/wapi-client.js +0 -2
  205. package/package.json +3 -3
  206. package/dist/lib/stream-promise-input.browser.cjs +0 -64
  207. package/dist/lib/stream-promise-input.browser.js +0 -45
  208. package/dist/lib/stream-promise-input.cjs +0 -68
  209. package/dist/lib/stream-promise-input.js +0 -45
@@ -64,7 +64,26 @@ var import_stream_promise = require("../lib/stream-promise.browser.cjs");
64
64
  var import_utils = require("../lib/utils.browser.cjs");
65
65
  var import_jsonrpc_enums = require("./jsonrpc/jsonrpc.enums.browser.cjs");
66
66
  var import_wapi_client = require("../wapi-client.browser.cjs");
67
+ var import_tx_map_generated = require("../txs/tx-map.generated.browser.cjs");
67
68
  var import_validator = require("../lib/validator.browser.cjs");
69
+ var txValidators = import_validator.Validator;
70
+ function sendTx(client, name, input) {
71
+ const inputCopy = txValidators[`${name}TxInput`].validateInputWOptions(
72
+ input != null ? input : {}
73
+ );
74
+ return client._sendRaw(name, inputCopy);
75
+ }
76
+ function installTxMethods(proto) {
77
+ for (const name of import_tx_map_generated.TX_NAMES) {
78
+ Object.defineProperty(proto, name, {
79
+ configurable: false,
80
+ writable: false,
81
+ value(input) {
82
+ return sendTx(this, name, input);
83
+ }
84
+ });
85
+ }
86
+ }
68
87
  var BaseClient = class {
69
88
  constructor(connection, connectionType, $connect) {
70
89
  __publicField(this, "type");
@@ -89,7 +108,6 @@ var BaseClient = class {
89
108
  ));
90
109
  __publicField(this, "_requests", /* @__PURE__ */ new Map());
91
110
  __publicField(this, "_error", false);
92
- __publicField(this, "_sending", /* @__PURE__ */ new Map());
93
111
  __publicField(this, "sendingTimeout");
94
112
  __publicField(this, "requestTimeout", 12e4);
95
113
  this.type = connectionType;
@@ -131,18 +149,21 @@ var BaseClient = class {
131
149
  throw new Error("JSONRPCMessage.id should not be null");
132
150
  }
133
151
  if (error) {
134
- if ("error" in request) {
135
- request.error(error);
136
- } else if ("stream" in request) {
137
- request.stream.destroy(error);
138
- }
152
+ request.stream.destroy(error);
139
153
  } else if (!request.stream.destroyed) {
140
154
  request.stream.push(null);
141
155
  }
142
156
  clearTimeout(request.requestTimeout);
143
157
  clearTimeout(request.sendingTimeout);
144
158
  this._requests.delete(key);
145
- this._sending.delete(key);
159
+ }
160
+ _failRequest(id, error) {
161
+ const requestInfo = this._requests.get(id);
162
+ if (!requestInfo) {
163
+ (0, import_debug.debugLog)("No Request found to fail", id, error);
164
+ return;
165
+ }
166
+ this._completeRequest(requestInfo, error);
146
167
  }
147
168
  _fireConnectionLost(requestInfo) {
148
169
  const error = new import_errors.StreamError("CONNECTION_LOST", {
@@ -163,7 +184,7 @@ var BaseClient = class {
163
184
  return this._completeRequest(requestInfo, error);
164
185
  }
165
186
  _handleMessage(incoming) {
166
- var _a, _b, _c;
187
+ var _a;
167
188
  if (this.hooks.message) {
168
189
  this.hooks.message(incoming);
169
190
  }
@@ -195,25 +216,9 @@ var BaseClient = class {
195
216
  delete requestInfo.requestTimeout;
196
217
  return;
197
218
  }
198
- if ("handle" in requestInfo) {
199
- requestInfo.handle(responseMessage);
200
- delete requestInfo.handle;
201
- return;
202
- }
203
- if (responseMessage.error && "error" in requestInfo) {
204
- requestInfo.error(responseMessage.error);
205
- }
206
219
  const message = responseMessage;
207
- if (((_a = message.result) == null ? void 0 : _a.type) === import_jsonrpc_enums.JSONRPC.streamPause && "pause" in requestInfo) {
208
- requestInfo.pause();
209
- return;
210
- }
211
- if (((_b = message.result) == null ? void 0 : _b.type) === import_jsonrpc_enums.JSONRPC.streamResume && "resume" in requestInfo) {
212
- requestInfo.resume();
213
- return;
214
- }
215
220
  const { stream, start } = requestInfo;
216
- if (((_c = message.result) == null ? void 0 : _c.type) === import_jsonrpc_enums.JSONRPC.streamChunk) {
221
+ if (((_a = message.result) == null ? void 0 : _a.type) === import_jsonrpc_enums.JSONRPC.streamChunk) {
217
222
  stream.push(message.result);
218
223
  return;
219
224
  }
@@ -228,14 +233,6 @@ var BaseClient = class {
228
233
  });
229
234
  }
230
235
  }
231
- // private _sendTransaction<Input, Output>(
232
- // name: ValuesOf<typeof APIFunctions>,
233
- // input: Input,
234
- // ): StreamPromise<Output> {
235
- // // This will throw if invalid
236
- // const inputCopy = APIValidators[name](input);
237
- // return this._sendRaw<Input, Output>(name, inputCopy as Input);
238
- // }
239
236
  _sendRaw(method, params) {
240
237
  const jsonRpcMessage = {
241
238
  jsonrpc: import_jsonrpc_enums.JSONRPC.version,
@@ -273,928 +270,5 @@ var BaseClient = class {
273
270
  this._send(jsonRpcMessage);
274
271
  }));
275
272
  }
276
- // private _streamTransaction<
277
- // InputOptions,
278
- // InputChunk,
279
- // Output,
280
- // PreTransformChunkType = InputChunk,
281
- // >(
282
- // name: ValuesOf<typeof APIFunctions>,
283
- // isInputChunk: (data: unknown) => data is InputChunk,
284
- // options?: InputOptions,
285
- // transform?: TransformStream<PreTransformChunkType, InputChunk>,
286
- // ): StreamPromiseInput<Output, PreTransformChunkType> {
287
- // const start = Date.now();
288
- // const streamId = getRandomHex();
289
- // let _error: Error | IJSONRPCError;
290
- // const sendToStream = ({
291
- // stream,
292
- // method,
293
- // params,
294
- // }: {
295
- // stream: ReadStream;
296
- // method: 'streamData' | 'streamError' | 'streamEnd';
297
- // params: { data?: InputChunk; error?: Error; encoding?: string };
298
- // }) => {
299
- // if (_error) {
300
- // return;
301
- // }
302
- // const streamMessage: JSONRPCRequest = {
303
- // jsonrpc: JSONRPC.version,
304
- // method,
305
- // params: {
306
- // streamId,
307
- // ...params,
308
- // },
309
- // id: getRandomHex(),
310
- // };
311
- // this._setSending(streamMessage, stream);
312
- // this._send(streamMessage);
313
- // };
314
- // const sendErrorToStream = (stream: ReadStream, error: Error) => {
315
- // if (_error) {
316
- // return;
317
- // }
318
- // sendToStream({
319
- // stream,
320
- // method: 'streamError',
321
- // params: {
322
- // error,
323
- // },
324
- // });
325
- // _error = error;
326
- // stream.push({
327
- // error,
328
- // });
329
- // };
330
- // const inputStream = new ReadWriteStream();
331
- // const finalInputStream = transform
332
- // ? inputStream.pipe(transform)
333
- // : inputStream;
334
- // const streamStartMessage: JSONRPCRequest = {
335
- // jsonrpc: JSONRPC.version,
336
- // method: 'streamStart',
337
- // params: {
338
- // method: name,
339
- // options,
340
- // },
341
- // id: streamId,
342
- // };
343
- // if (
344
- // this.hooks.preflight &&
345
- // this.hooks.preflight(streamStartMessage) === false
346
- // ) {
347
- // // If this.hooks.preflight returns false then we dont send
348
- // return new StreamPromiseInput<Output, PreTransformChunkType>();
349
- // }
350
- // return new StreamPromiseInput(async (stream: ReadStream) => {
351
- // if (this._error) {
352
- // this._reconnect(5);
353
- // }
354
- // if (!this.isConnected) {
355
- // await this.$connect;
356
- // }
357
- // if (this._error) {
358
- // throw this._error;
359
- // }
360
- // let timeout: ReturnType<typeof setTimeout> | null = setTimeout(() => {
361
- // stream.push({
362
- // error: new StreamError('INPUT_STREAM_TIMEOUT', { streamId }),
363
- // });
364
- // }, 30000);
365
- // // Open response
366
- // this._requests.set(streamStartMessage.id!, {
367
- // stream,
368
- // start,
369
- // error(error: IJSONRPCError) {
370
- // _error = error;
371
- // debugLog('stream:error()>', error);
372
- // },
373
- // pause() {
374
- // inputStream.pause();
375
- // },
376
- // resume() {
377
- // inputStream.resume();
378
- // },
379
- // handle(message: JSONRPCResponse) {
380
- // if (message.error) {
381
- // stream.push(message);
382
- // return;
383
- // }
384
- // finalInputStream
385
- // .on('data', (chunk: InputChunk) => {
386
- // if (_error) {
387
- // return;
388
- // }
389
- // if (timeout) {
390
- // clearTimeout(timeout);
391
- // timeout = null;
392
- // }
393
- // if (!isInputChunk(chunk)) {
394
- // sendErrorToStream(
395
- // stream,
396
- // new StreamError('INVALID_INPUT_STREAM_CHUNK', {
397
- // streamId,
398
- // chunk,
399
- // }),
400
- // );
401
- // return;
402
- // }
403
- // sendToStream({
404
- // stream,
405
- // method: 'streamData',
406
- // params: {
407
- // data: chunk,
408
- // },
409
- // });
410
- // })
411
- // .on('error', (error: Error) => {
412
- // if (_error) {
413
- // return;
414
- // }
415
- // if (timeout) {
416
- // clearTimeout(timeout);
417
- // timeout = null;
418
- // }
419
- // sendToStream({
420
- // stream,
421
- // method: 'streamError',
422
- // params: {
423
- // error,
424
- // },
425
- // });
426
- // stream.push({
427
- // error: new StreamError('INPUT_STREAM_ERROR', {
428
- // streamId,
429
- // error,
430
- // }),
431
- // });
432
- // })
433
- // .on('end', () => {
434
- // if (timeout) {
435
- // clearTimeout(timeout);
436
- // timeout = null;
437
- // }
438
- // sendToStream({
439
- // stream,
440
- // method: 'streamEnd',
441
- // params: {},
442
- // });
443
- // });
444
- // },
445
- // });
446
- // this._setSending(streamStartMessage, stream);
447
- // this._send(streamStartMessage);
448
- // }, inputStream);
449
- // }
450
- // TXSDEFS
451
- /*
452
- * THIS IS AUTOGENERATED, DO NOT EDIT MANUALLY
453
- * if you need custom code add it outside this block
454
- */
455
- /**
456
- *
457
- * @param {AggregateTransferManyTxInput} input
458
- * @returns {StreamPromise<AggregateTransferManyTxOutput>}
459
- *
460
- */
461
- aggregateTransferMany(input) {
462
- const inputCopy = import_validator.Validator.aggregateTransferManyTxInput.validateInputWOptions(input);
463
- return this._sendRaw("aggregateTransferMany", inputCopy);
464
- }
465
- /**
466
- *
467
- * @param {AuthenticationCheckTxInput} input
468
- * @returns {StreamPromise<AuthenticationCheckTxOutput>}
469
- *
470
- */
471
- authenticationCheck(input) {
472
- const inputCopy = import_validator.Validator.authenticationCheckTxInput.validateInputWOptions(input != null ? input : {});
473
- return this._sendRaw("authenticationCheck", inputCopy);
474
- }
475
- /**
476
- *
477
- * @param {CreateAccessTokenTxInput} input
478
- * @returns {StreamPromise<CreateAccessTokenTxOutput>}
479
- *
480
- */
481
- createAccessToken(input) {
482
- const inputCopy = import_validator.Validator.createAccessTokenTxInput.validateInputWOptions(input);
483
- return this._sendRaw(
484
- "createAccessToken",
485
- inputCopy
486
- );
487
- }
488
- /**
489
- *
490
- * @param {CreateApikeyTxInput} input
491
- * @returns {StreamPromise<CreateApikeyTxOutput>}
492
- *
493
- */
494
- createApikey(input) {
495
- const inputCopy = import_validator.Validator.createApikeyTxInput.validateInputWOptions(input);
496
- return this._sendRaw(
497
- "createApikey",
498
- inputCopy
499
- );
500
- }
501
- /**
502
- *
503
- * @param {CreateContractTxInput} input
504
- * @returns {StreamPromise<CreateContractTxOutput>}
505
- *
506
- */
507
- createContract(input) {
508
- const inputCopy = import_validator.Validator.createContractTxInput.validateInputWOptions(input);
509
- return this._sendRaw(
510
- "createContract",
511
- inputCopy
512
- );
513
- }
514
- /**
515
- *
516
- * @param {CreateDepositTxInput} input
517
- * @returns {StreamPromise<CreateDepositTxOutput>}
518
- *
519
- */
520
- createDeposit(input) {
521
- const inputCopy = import_validator.Validator.createDepositTxInput.validateInputWOptions(input);
522
- return this._sendRaw(
523
- "createDeposit",
524
- inputCopy
525
- );
526
- }
527
- /**
528
- *
529
- * @param {CreateDistributionTxInput} input
530
- * @returns {StreamPromise<CreateDistributionTxOutput>}
531
- *
532
- */
533
- createDistribution(input) {
534
- const inputCopy = import_validator.Validator.createDistributionTxInput.validateInputWOptions(input);
535
- return this._sendRaw(
536
- "createDistribution",
537
- inputCopy
538
- );
539
- }
540
- /**
541
- *
542
- * @param {CreateIndexTxInput} input
543
- * @returns {StreamPromise<CreateIndexTxOutput>}
544
- *
545
- */
546
- createIndex(input) {
547
- const inputCopy = import_validator.Validator.createIndexTxInput.validateInputWOptions(input);
548
- return this._sendRaw(
549
- "createIndex",
550
- inputCopy
551
- );
552
- }
553
- /**
554
- *
555
- * @param {CreateTokenTxInput} input
556
- * @returns {StreamPromise<CreateTokenTxOutput>}
557
- *
558
- */
559
- createToken(input) {
560
- const inputCopy = import_validator.Validator.createTokenTxInput.validateInputWOptions(input);
561
- return this._sendRaw(
562
- "createToken",
563
- inputCopy
564
- );
565
- }
566
- /**
567
- *
568
- * @param {CreateTransferTxInput} input
569
- * @returns {StreamPromise<CreateTransferTxOutput>}
570
- *
571
- */
572
- createTransfer(input) {
573
- const inputCopy = import_validator.Validator.createTransferTxInput.validateInputWOptions(input);
574
- return this._sendRaw(
575
- "createTransfer",
576
- inputCopy
577
- );
578
- }
579
- /**
580
- *
581
- * @param {CreateTransferGroupTxInput} input
582
- * @returns {StreamPromise<CreateTransferGroupTxOutput>}
583
- *
584
- */
585
- createTransferGroup(input) {
586
- const inputCopy = import_validator.Validator.createTransferGroupTxInput.validateInputWOptions(input != null ? input : {});
587
- return this._sendRaw("createTransferGroup", inputCopy);
588
- }
589
- /**
590
- *
591
- * @param {CreateTransferManyTxInput} input
592
- * @returns {StreamPromise<CreateTransferManyTxOutput>}
593
- *
594
- */
595
- createTransferMany(input) {
596
- const inputCopy = import_validator.Validator.createTransferManyTxInput.validateInputWOptions(input);
597
- return this._sendRaw(
598
- "createTransferMany",
599
- inputCopy
600
- );
601
- }
602
- /**
603
- *
604
- * @param {CreateWalletTxInput} input
605
- * @returns {StreamPromise<CreateWalletTxOutput>}
606
- *
607
- */
608
- createWallet(input) {
609
- const inputCopy = import_validator.Validator.createWalletTxInput.validateInputWOptions(input);
610
- return this._sendRaw(
611
- "createWallet",
612
- inputCopy
613
- );
614
- }
615
- /**
616
- *
617
- * @param {CreateWithdrawalTxInput} input
618
- * @returns {StreamPromise<CreateWithdrawalTxOutput>}
619
- *
620
- */
621
- createWithdrawal(input) {
622
- const inputCopy = import_validator.Validator.createWithdrawalTxInput.validateInputWOptions(input);
623
- return this._sendRaw(
624
- "createWithdrawal",
625
- inputCopy
626
- );
627
- }
628
- /**
629
- *
630
- * @param {DropIndexTxInput} input
631
- * @returns {StreamPromise<DropIndexTxOutput>}
632
- *
633
- */
634
- dropIndex(input) {
635
- const inputCopy = import_validator.Validator.dropIndexTxInput.validateInputWOptions(input);
636
- return this._sendRaw(
637
- "dropIndex",
638
- inputCopy
639
- );
640
- }
641
- /**
642
- *
643
- * @param {ExportBalanceHistoryTxInput} input
644
- * @returns {StreamPromise<ExportBalanceHistoryTxOutput>}
645
- *
646
- */
647
- exportBalanceHistory(input) {
648
- const inputCopy = import_validator.Validator.exportBalanceHistoryTxInput.validateInputWOptions(input);
649
- return this._sendRaw("exportBalanceHistory", inputCopy);
650
- }
651
- /**
652
- *
653
- * @param {ExportBalanceManyTxInput} input
654
- * @returns {StreamPromise<ExportBalanceManyTxOutput>}
655
- *
656
- */
657
- exportBalanceMany(input) {
658
- const inputCopy = import_validator.Validator.exportBalanceManyTxInput.validateInputWOptions(
659
- input != null ? input : {}
660
- );
661
- return this._sendRaw(
662
- "exportBalanceMany",
663
- inputCopy
664
- );
665
- }
666
- /**
667
- *
668
- * @param {ExportTokenManyTxInput} input
669
- * @returns {StreamPromise<ExportTokenManyTxOutput>}
670
- *
671
- */
672
- exportTokenMany(input) {
673
- const inputCopy = import_validator.Validator.exportTokenManyTxInput.validateInputWOptions(
674
- input != null ? input : {}
675
- );
676
- return this._sendRaw(
677
- "exportTokenMany",
678
- inputCopy
679
- );
680
- }
681
- /**
682
- *
683
- * @param {ExportTransferGroupManyTxInput} input
684
- * @returns {StreamPromise<ExportTransferGroupManyTxOutput>}
685
- *
686
- */
687
- exportTransferGroupMany(input) {
688
- const inputCopy = import_validator.Validator.exportTransferGroupManyTxInput.validateInputWOptions(
689
- input != null ? input : {}
690
- );
691
- return this._sendRaw("exportTransferGroupMany", inputCopy);
692
- }
693
- /**
694
- *
695
- * @param {ExportTransferManyTxInput} input
696
- * @returns {StreamPromise<ExportTransferManyTxOutput>}
697
- *
698
- */
699
- exportTransferMany(input) {
700
- const inputCopy = import_validator.Validator.exportTransferManyTxInput.validateInputWOptions(
701
- input != null ? input : {}
702
- );
703
- return this._sendRaw(
704
- "exportTransferMany",
705
- inputCopy
706
- );
707
- }
708
- /**
709
- *
710
- * @param {ExportWalletManyTxInput} input
711
- * @returns {StreamPromise<ExportWalletManyTxOutput>}
712
- *
713
- */
714
- exportWalletMany(input) {
715
- const inputCopy = import_validator.Validator.exportWalletManyTxInput.validateInputWOptions(
716
- input != null ? input : {}
717
- );
718
- return this._sendRaw(
719
- "exportWalletMany",
720
- inputCopy
721
- );
722
- }
723
- /**
724
- *
725
- * @param {FindApikeyManyTxInput} input
726
- * @returns {StreamPromise<FindApikeyManyTxOutput>}
727
- *
728
- */
729
- findApikeyMany(input) {
730
- const inputCopy = import_validator.Validator.findApikeyManyTxInput.validateInputWOptions(
731
- input != null ? input : {}
732
- );
733
- return this._sendRaw(
734
- "findApikeyMany",
735
- inputCopy
736
- );
737
- }
738
- /**
739
- *
740
- * @param {FindBalanceManyTxInput} input
741
- * @returns {StreamPromise<FindBalanceManyTxOutput>}
742
- *
743
- */
744
- findBalanceMany(input) {
745
- const inputCopy = import_validator.Validator.findBalanceManyTxInput.validateInputWOptions(
746
- input != null ? input : {}
747
- );
748
- return this._sendRaw(
749
- "findBalanceMany",
750
- inputCopy
751
- );
752
- }
753
- /**
754
- *
755
- * @param {FindIndexManyTxInput} input
756
- * @returns {StreamPromise<FindIndexManyTxOutput>}
757
- *
758
- */
759
- findIndexMany(input) {
760
- const inputCopy = import_validator.Validator.findIndexManyTxInput.validateInputWOptions(
761
- input != null ? input : {}
762
- );
763
- return this._sendRaw(
764
- "findIndexMany",
765
- inputCopy
766
- );
767
- }
768
- /**
769
- *
770
- * @param {FindTokenManyTxInput} input
771
- * @returns {StreamPromise<FindTokenManyTxOutput>}
772
- *
773
- */
774
- findTokenMany(input) {
775
- const inputCopy = import_validator.Validator.findTokenManyTxInput.validateInputWOptions(
776
- input != null ? input : {}
777
- );
778
- return this._sendRaw(
779
- "findTokenMany",
780
- inputCopy
781
- );
782
- }
783
- /**
784
- *
785
- * @param {FindTransferGroupManyTxInput} input
786
- * @returns {StreamPromise<FindTransferGroupManyTxOutput>}
787
- *
788
- */
789
- findTransferGroupMany(input) {
790
- const inputCopy = import_validator.Validator.findTransferGroupManyTxInput.validateInputWOptions(input != null ? input : {});
791
- return this._sendRaw("findTransferGroupMany", inputCopy);
792
- }
793
- /**
794
- *
795
- * @param {FindTransferManyTxInput} input
796
- * @returns {StreamPromise<FindTransferManyTxOutput>}
797
- *
798
- */
799
- findTransferMany(input) {
800
- const inputCopy = import_validator.Validator.findTransferManyTxInput.validateInputWOptions(
801
- input != null ? input : {}
802
- );
803
- return this._sendRaw(
804
- "findTransferMany",
805
- inputCopy
806
- );
807
- }
808
- /**
809
- *
810
- * @param {FindWalletManyTxInput} input
811
- * @returns {StreamPromise<FindWalletManyTxOutput>}
812
- *
813
- */
814
- findWalletMany(input) {
815
- const inputCopy = import_validator.Validator.findWalletManyTxInput.validateInputWOptions(
816
- input != null ? input : {}
817
- );
818
- return this._sendRaw(
819
- "findWalletMany",
820
- inputCopy
821
- );
822
- }
823
- /**
824
- *
825
- * @param {FinishTransactionTxInput} input
826
- * @returns {StreamPromise<FinishTransactionTxOutput>}
827
- *
828
- */
829
- finishTransaction(input) {
830
- const inputCopy = import_validator.Validator.finishTransactionTxInput.validateInputWOptions(input);
831
- return this._sendRaw(
832
- "finishTransaction",
833
- inputCopy
834
- );
835
- }
836
- /**
837
- *
838
- * @param {GetBalanceTxInput} input
839
- * @returns {StreamPromise<GetBalanceTxOutput>}
840
- *
841
- */
842
- getBalance(input) {
843
- const inputCopy = import_validator.Validator.getBalanceTxInput.validateInputWOptions(input);
844
- return this._sendRaw(
845
- "getBalance",
846
- inputCopy
847
- );
848
- }
849
- /**
850
- *
851
- * @param {GetBalanceHistoryTxInput} input
852
- * @returns {StreamPromise<GetBalanceHistoryTxOutput>}
853
- *
854
- */
855
- getBalanceHistory(input) {
856
- const inputCopy = import_validator.Validator.getBalanceHistoryTxInput.validateInputWOptions(input);
857
- return this._sendRaw(
858
- "getBalanceHistory",
859
- inputCopy
860
- );
861
- }
862
- /**
863
- *
864
- * @param {GetExportTxInput} input
865
- * @returns {StreamPromise<GetExportTxOutput>}
866
- *
867
- */
868
- getExport(input) {
869
- const inputCopy = import_validator.Validator.getExportTxInput.validateInputWOptions(input);
870
- return this._sendRaw(
871
- "getExport",
872
- inputCopy
873
- );
874
- }
875
- /**
876
- *
877
- * @param {GetFlagsTxInput} input
878
- * @returns {StreamPromise<GetFlagsTxOutput>}
879
- *
880
- */
881
- getFlags(input) {
882
- const inputCopy = import_validator.Validator.getFlagsTxInput.validateInputWOptions(
883
- input != null ? input : {}
884
- );
885
- return this._sendRaw(
886
- "getFlags",
887
- inputCopy
888
- );
889
- }
890
- /**
891
- *
892
- * @param {GetStatisticsTxInput} input
893
- * @returns {StreamPromise<GetStatisticsTxOutput>}
894
- *
895
- */
896
- getStatistics(input) {
897
- const inputCopy = import_validator.Validator.getStatisticsTxInput.validateInputWOptions(
898
- input != null ? input : {}
899
- );
900
- return this._sendRaw(
901
- "getStatistics",
902
- inputCopy
903
- );
904
- }
905
- /**
906
- *
907
- * @param {GetTokenTxInput} input
908
- * @returns {StreamPromise<GetTokenTxOutput>}
909
- *
910
- */
911
- getToken(input) {
912
- const inputCopy = import_validator.Validator.getTokenTxInput.validateInputWOptions(input);
913
- return this._sendRaw(
914
- "getToken",
915
- inputCopy
916
- );
917
- }
918
- /**
919
- *
920
- * @param {GetTokenManyTxInput} input
921
- * @returns {StreamPromise<GetTokenManyTxOutput>}
922
- *
923
- */
924
- getTokenMany(input) {
925
- const inputCopy = import_validator.Validator.getTokenManyTxInput.validateInputWOptions(input);
926
- return this._sendRaw(
927
- "getTokenMany",
928
- inputCopy
929
- );
930
- }
931
- /**
932
- *
933
- * @param {GetTransferTxInput} input
934
- * @returns {StreamPromise<GetTransferTxOutput>}
935
- *
936
- */
937
- getTransfer(input) {
938
- const inputCopy = import_validator.Validator.getTransferTxInput.validateInputWOptions(input);
939
- return this._sendRaw(
940
- "getTransfer",
941
- inputCopy
942
- );
943
- }
944
- /**
945
- *
946
- * @param {GetTransferGroupTxInput} input
947
- * @returns {StreamPromise<GetTransferGroupTxOutput>}
948
- *
949
- */
950
- getTransferGroup(input) {
951
- const inputCopy = import_validator.Validator.getTransferGroupTxInput.validateInputWOptions(input);
952
- return this._sendRaw(
953
- "getTransferGroup",
954
- inputCopy
955
- );
956
- }
957
- /**
958
- *
959
- * @param {GetWalletTxInput} input
960
- * @returns {StreamPromise<GetWalletTxOutput>}
961
- *
962
- */
963
- getWallet(input) {
964
- const inputCopy = import_validator.Validator.getWalletTxInput.validateInputWOptions(input);
965
- return this._sendRaw(
966
- "getWallet",
967
- inputCopy
968
- );
969
- }
970
- /**
971
- *
972
- * @param {GetWalletManyTxInput} input
973
- * @returns {StreamPromise<GetWalletManyTxOutput>}
974
- *
975
- */
976
- getWalletMany(input) {
977
- const inputCopy = import_validator.Validator.getWalletManyTxInput.validateInputWOptions(input);
978
- return this._sendRaw(
979
- "getWalletMany",
980
- inputCopy
981
- );
982
- }
983
- /**
984
- *
985
- * @param {HealthcheckTxInput} input
986
- * @returns {StreamPromise<HealthcheckTxOutput>}
987
- *
988
- */
989
- healthcheck(input) {
990
- const inputCopy = import_validator.Validator.healthcheckTxInput.validateInputWOptions(
991
- input != null ? input : {}
992
- );
993
- return this._sendRaw(
994
- "healthcheck",
995
- inputCopy
996
- );
997
- }
998
- /**
999
- *
1000
- * @param {ListExportManyTxInput} input
1001
- * @returns {StreamPromise<ListExportManyTxOutput>}
1002
- *
1003
- */
1004
- listExportMany(input) {
1005
- const inputCopy = import_validator.Validator.listExportManyTxInput.validateInputWOptions(
1006
- input != null ? input : {}
1007
- );
1008
- return this._sendRaw(
1009
- "listExportMany",
1010
- inputCopy
1011
- );
1012
- }
1013
- /**
1014
- *
1015
- * @param {QueryLogsTxInput} input
1016
- * @returns {StreamPromise<QueryLogsTxOutput>}
1017
- *
1018
- */
1019
- queryLogs(input) {
1020
- const inputCopy = import_validator.Validator.queryLogsTxInput.validateInputWOptions(
1021
- input != null ? input : {}
1022
- );
1023
- return this._sendRaw(
1024
- "queryLogs",
1025
- inputCopy
1026
- );
1027
- }
1028
- /**
1029
- *
1030
- * @param {ResetDatabaseTxInput} input
1031
- * @returns {StreamPromise<ResetDatabaseTxOutput>}
1032
- *
1033
- */
1034
- resetDatabase(input) {
1035
- const inputCopy = import_validator.Validator.resetDatabaseTxInput.validateInputWOptions(
1036
- input != null ? input : {}
1037
- );
1038
- return this._sendRaw(
1039
- "resetDatabase",
1040
- inputCopy
1041
- );
1042
- }
1043
- /**
1044
- *
1045
- * @param {ReverseTransferTxInput} input
1046
- * @returns {StreamPromise<ReverseTransferTxOutput>}
1047
- *
1048
- */
1049
- reverseTransfer(input) {
1050
- const inputCopy = import_validator.Validator.reverseTransferTxInput.validateInputWOptions(input);
1051
- return this._sendRaw(
1052
- "reverseTransfer",
1053
- inputCopy
1054
- );
1055
- }
1056
- /**
1057
- *
1058
- * @param {ReverseTransferGroupTxInput} input
1059
- * @returns {StreamPromise<ReverseTransferGroupTxOutput>}
1060
- *
1061
- */
1062
- reverseTransferGroup(input) {
1063
- const inputCopy = import_validator.Validator.reverseTransferGroupTxInput.validateInputWOptions(input);
1064
- return this._sendRaw("reverseTransferGroup", inputCopy);
1065
- }
1066
- /**
1067
- *
1068
- * @param {ReverseTransferGroupManyTxInput} input
1069
- * @returns {StreamPromise<ReverseTransferGroupManyTxOutput>}
1070
- *
1071
- */
1072
- reverseTransferGroupMany(input) {
1073
- const inputCopy = import_validator.Validator.reverseTransferGroupManyTxInput.validateInputWOptions(input);
1074
- return this._sendRaw("reverseTransferGroupMany", inputCopy);
1075
- }
1076
- /**
1077
- *
1078
- * @param {ReverseTransferManyTxInput} input
1079
- * @returns {StreamPromise<ReverseTransferManyTxOutput>}
1080
- *
1081
- */
1082
- reverseTransferMany(input) {
1083
- const inputCopy = import_validator.Validator.reverseTransferManyTxInput.validateInputWOptions(input);
1084
- return this._sendRaw("reverseTransferMany", inputCopy);
1085
- }
1086
- /**
1087
- *
1088
- * @param {SetFlagsTxInput} input
1089
- * @returns {StreamPromise<SetFlagsTxOutput>}
1090
- *
1091
- */
1092
- setFlags(input) {
1093
- const inputCopy = import_validator.Validator.setFlagsTxInput.validateInputWOptions(input);
1094
- return this._sendRaw(
1095
- "setFlags",
1096
- inputCopy
1097
- );
1098
- }
1099
- /**
1100
- *
1101
- * @param {StartTransactionTxInput} input
1102
- * @returns {StreamPromise<StartTransactionTxOutput>}
1103
- *
1104
- */
1105
- startTransaction(input) {
1106
- const inputCopy = import_validator.Validator.startTransactionTxInput.validateInputWOptions(
1107
- input != null ? input : {}
1108
- );
1109
- return this._sendRaw(
1110
- "startTransaction",
1111
- inputCopy
1112
- );
1113
- }
1114
- /**
1115
- *
1116
- * @param {UpdateApikeyTxInput} input
1117
- * @returns {StreamPromise<UpdateApikeyTxOutput>}
1118
- *
1119
- */
1120
- updateApikey(input) {
1121
- const inputCopy = import_validator.Validator.updateApikeyTxInput.validateInputWOptions(input);
1122
- return this._sendRaw(
1123
- "updateApikey",
1124
- inputCopy
1125
- );
1126
- }
1127
- /**
1128
- *
1129
- * @param {UpdateTokenTxInput} input
1130
- * @returns {StreamPromise<UpdateTokenTxOutput>}
1131
- *
1132
- */
1133
- updateToken(input) {
1134
- const inputCopy = import_validator.Validator.updateTokenTxInput.validateInputWOptions(input);
1135
- return this._sendRaw(
1136
- "updateToken",
1137
- inputCopy
1138
- );
1139
- }
1140
- /**
1141
- *
1142
- * @param {UpdateTransferTxInput} input
1143
- * @returns {StreamPromise<UpdateTransferTxOutput>}
1144
- *
1145
- */
1146
- updateTransfer(input) {
1147
- const inputCopy = import_validator.Validator.updateTransferTxInput.validateInputWOptions(input);
1148
- return this._sendRaw(
1149
- "updateTransfer",
1150
- inputCopy
1151
- );
1152
- }
1153
- /**
1154
- *
1155
- * @param {UpdateTransferGroupTxInput} input
1156
- * @returns {StreamPromise<UpdateTransferGroupTxOutput>}
1157
- *
1158
- */
1159
- updateTransferGroup(input) {
1160
- const inputCopy = import_validator.Validator.updateTransferGroupTxInput.validateInputWOptions(input);
1161
- return this._sendRaw("updateTransferGroup", inputCopy);
1162
- }
1163
- /**
1164
- *
1165
- * @param {UpdateTransferGroupManyTxInput} input
1166
- * @returns {StreamPromise<UpdateTransferGroupManyTxOutput>}
1167
- *
1168
- */
1169
- updateTransferGroupMany(input) {
1170
- const inputCopy = import_validator.Validator.updateTransferGroupManyTxInput.validateInputWOptions(input);
1171
- return this._sendRaw("updateTransferGroupMany", inputCopy);
1172
- }
1173
- /**
1174
- *
1175
- * @param {UpdateTransferManyTxInput} input
1176
- * @returns {StreamPromise<UpdateTransferManyTxOutput>}
1177
- *
1178
- */
1179
- updateTransferMany(input) {
1180
- const inputCopy = import_validator.Validator.updateTransferManyTxInput.validateInputWOptions(input);
1181
- return this._sendRaw(
1182
- "updateTransferMany",
1183
- inputCopy
1184
- );
1185
- }
1186
- /**
1187
- *
1188
- * @param {UpdateWalletTxInput} input
1189
- * @returns {StreamPromise<UpdateWalletTxOutput>}
1190
- *
1191
- */
1192
- updateWallet(input) {
1193
- const inputCopy = import_validator.Validator.updateWalletTxInput.validateInputWOptions(input);
1194
- return this._sendRaw(
1195
- "updateWallet",
1196
- inputCopy
1197
- );
1198
- }
1199
- // TXSDEFS
1200
273
  };
274
+ installTxMethods(BaseClient.prototype);