@shapeshiftoss/unchained-client 0.1.3 → 0.2.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 (53) hide show
  1. package/dist/generated/ethereum/api.d.ts +554 -0
  2. package/dist/generated/ethereum/api.d.ts.map +1 -0
  3. package/dist/generated/ethereum/api.js +465 -0
  4. package/dist/generated/ethereum/api.js.map +1 -0
  5. package/dist/{packages/client/src/generated → generated}/ethereum/base.d.ts +0 -0
  6. package/dist/generated/ethereum/base.d.ts.map +1 -0
  7. package/dist/{packages/client/src/generated → generated}/ethereum/base.js +0 -0
  8. package/dist/generated/ethereum/base.js.map +1 -0
  9. package/dist/{packages/client/src/generated → generated}/ethereum/common.d.ts +0 -0
  10. package/dist/generated/ethereum/common.d.ts.map +1 -0
  11. package/dist/{packages/client/src/generated → generated}/ethereum/common.js +0 -0
  12. package/dist/generated/ethereum/common.js.map +1 -0
  13. package/dist/{packages/client/src/generated → generated}/ethereum/configuration.d.ts +0 -0
  14. package/dist/generated/ethereum/configuration.d.ts.map +1 -0
  15. package/dist/{packages/client/src/generated → generated}/ethereum/configuration.js +0 -0
  16. package/dist/generated/ethereum/configuration.js.map +1 -0
  17. package/dist/{packages/client/src/generated → generated}/ethereum/index.d.ts +0 -0
  18. package/dist/generated/ethereum/index.d.ts.map +1 -0
  19. package/dist/{packages/client/src/generated → generated}/ethereum/index.js +0 -0
  20. package/dist/generated/ethereum/index.js.map +1 -0
  21. package/dist/index.d.ts +2 -0
  22. package/dist/index.d.ts.map +1 -0
  23. package/dist/{packages/client/src/index.js → index.js} +0 -4
  24. package/dist/index.js.map +1 -0
  25. package/dist/tsconfig.tsbuildinfo +21 -547
  26. package/package.json +1 -1
  27. package/dist/coinstacks/common/api/src/index.d.ts +0 -121
  28. package/dist/coinstacks/common/api/src/index.d.ts.map +0 -1
  29. package/dist/coinstacks/common/api/src/index.js +0 -63
  30. package/dist/coinstacks/common/api/src/index.js.map +0 -1
  31. package/dist/coinstacks/common/api/src/middleware.d.ts +0 -4
  32. package/dist/coinstacks/common/api/src/middleware.d.ts.map +0 -1
  33. package/dist/coinstacks/common/api/src/middleware.js +0 -39
  34. package/dist/coinstacks/common/api/src/middleware.js.map +0 -1
  35. package/dist/coinstacks/common/api/src/models.d.ts +0 -191
  36. package/dist/coinstacks/common/api/src/models.d.ts.map +0 -1
  37. package/dist/coinstacks/common/api/src/models.js +0 -3
  38. package/dist/coinstacks/common/api/src/models.js.map +0 -1
  39. package/dist/packages/client/src/generated/ethereum/api.d.ts +0 -1074
  40. package/dist/packages/client/src/generated/ethereum/api.d.ts.map +0 -1
  41. package/dist/packages/client/src/generated/ethereum/api.js +0 -806
  42. package/dist/packages/client/src/generated/ethereum/api.js.map +0 -1
  43. package/dist/packages/client/src/generated/ethereum/base.d.ts.map +0 -1
  44. package/dist/packages/client/src/generated/ethereum/base.js.map +0 -1
  45. package/dist/packages/client/src/generated/ethereum/common.d.ts.map +0 -1
  46. package/dist/packages/client/src/generated/ethereum/common.js.map +0 -1
  47. package/dist/packages/client/src/generated/ethereum/configuration.d.ts.map +0 -1
  48. package/dist/packages/client/src/generated/ethereum/configuration.js.map +0 -1
  49. package/dist/packages/client/src/generated/ethereum/index.d.ts.map +0 -1
  50. package/dist/packages/client/src/generated/ethereum/index.js.map +0 -1
  51. package/dist/packages/client/src/index.d.ts +0 -3
  52. package/dist/packages/client/src/index.d.ts.map +0 -1
  53. package/dist/packages/client/src/index.js.map +0 -1
@@ -0,0 +1,554 @@
1
+ /**
2
+ * @shapeshiftoss/ethereum-api
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 0.1.1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { Configuration } from './configuration';
13
+ import { AxiosPromise, AxiosInstance } from 'axios';
14
+ import { RequestArgs, BaseAPI } from './base';
15
+ /**
16
+ * Contains info about a 400 Bad Request response
17
+ * @export
18
+ * @interface BadRequestError
19
+ */
20
+ export interface BadRequestError {
21
+ /**
22
+ *
23
+ * @type {string}
24
+ * @memberof BadRequestError
25
+ */
26
+ error: string;
27
+ }
28
+ /**
29
+ * Contains additional ethereum specific balance info
30
+ * @export
31
+ * @interface EthereumBalance
32
+ */
33
+ export interface EthereumBalance {
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof EthereumBalance
38
+ */
39
+ pubkey: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof EthereumBalance
44
+ */
45
+ balance: string;
46
+ /**
47
+ *
48
+ * @type {Array<Token>}
49
+ * @memberof EthereumBalance
50
+ */
51
+ tokens: Array<Token>;
52
+ }
53
+ /**
54
+ * Contains info about a 500 Internal Server Error response
55
+ * @export
56
+ * @interface InternalServerError
57
+ */
58
+ export interface InternalServerError {
59
+ /**
60
+ *
61
+ * @type {string}
62
+ * @memberof InternalServerError
63
+ */
64
+ message: string;
65
+ }
66
+ /**
67
+ * Contains the serialized raw transaction hex
68
+ * @export
69
+ * @interface SendTxBody
70
+ */
71
+ export interface SendTxBody {
72
+ /**
73
+ *
74
+ * @type {string}
75
+ * @memberof SendTxBody
76
+ */
77
+ hex: string;
78
+ }
79
+ /**
80
+ * Contains info about a token including balance for an address
81
+ * @export
82
+ * @interface Token
83
+ */
84
+ export interface Token {
85
+ /**
86
+ *
87
+ * @type {string}
88
+ * @memberof Token
89
+ */
90
+ type: string;
91
+ /**
92
+ *
93
+ * @type {string}
94
+ * @memberof Token
95
+ */
96
+ name: string;
97
+ /**
98
+ *
99
+ * @type {string}
100
+ * @memberof Token
101
+ */
102
+ contract: string;
103
+ /**
104
+ *
105
+ * @type {string}
106
+ * @memberof Token
107
+ */
108
+ symbol: string;
109
+ /**
110
+ *
111
+ * @type {number}
112
+ * @memberof Token
113
+ */
114
+ decimals: number;
115
+ /**
116
+ *
117
+ * @type {string}
118
+ * @memberof Token
119
+ */
120
+ balance: string;
121
+ }
122
+ /**
123
+ * Contains info about a transaction
124
+ * @export
125
+ * @interface Tx
126
+ */
127
+ export interface Tx {
128
+ /**
129
+ *
130
+ * @type {string}
131
+ * @memberof Tx
132
+ */
133
+ txid: string;
134
+ /**
135
+ *
136
+ * @type {string}
137
+ * @memberof Tx
138
+ */
139
+ status: string;
140
+ /**
141
+ *
142
+ * @type {string}
143
+ * @memberof Tx
144
+ */
145
+ blockHash?: string;
146
+ /**
147
+ *
148
+ * @type {number}
149
+ * @memberof Tx
150
+ */
151
+ blockHeight?: number;
152
+ /**
153
+ *
154
+ * @type {number}
155
+ * @memberof Tx
156
+ */
157
+ confirmations?: number;
158
+ /**
159
+ *
160
+ * @type {number}
161
+ * @memberof Tx
162
+ */
163
+ timestamp?: number;
164
+ /**
165
+ *
166
+ * @type {string}
167
+ * @memberof Tx
168
+ */
169
+ from: string;
170
+ /**
171
+ *
172
+ * @type {string}
173
+ * @memberof Tx
174
+ */
175
+ to?: string;
176
+ /**
177
+ *
178
+ * @type {string}
179
+ * @memberof Tx
180
+ */
181
+ value: string;
182
+ /**
183
+ *
184
+ * @type {string}
185
+ * @memberof Tx
186
+ */
187
+ fee: string;
188
+ }
189
+ /**
190
+ * Contains paginated transaction history
191
+ * @export
192
+ * @interface TxHistory
193
+ */
194
+ export interface TxHistory {
195
+ /**
196
+ *
197
+ * @type {number}
198
+ * @memberof TxHistory
199
+ */
200
+ page: number;
201
+ /**
202
+ *
203
+ * @type {number}
204
+ * @memberof TxHistory
205
+ */
206
+ totalPages: number;
207
+ /**
208
+ *
209
+ * @type {number}
210
+ * @memberof TxHistory
211
+ */
212
+ txs: number;
213
+ /**
214
+ *
215
+ * @type {Array<Tx>}
216
+ * @memberof TxHistory
217
+ */
218
+ transactions: Array<Tx>;
219
+ }
220
+ /**
221
+ * Contains info about a 422 Validation Error response
222
+ * @export
223
+ * @interface ValidationError
224
+ */
225
+ export interface ValidationError {
226
+ /**
227
+ *
228
+ * @type {string}
229
+ * @memberof ValidationError
230
+ */
231
+ message: ValidationErrorMessageEnum;
232
+ /**
233
+ *
234
+ * @type {{ [key: string]: any; }}
235
+ * @memberof ValidationError
236
+ */
237
+ details: {
238
+ [key: string]: any;
239
+ };
240
+ }
241
+ /**
242
+ * @export
243
+ * @enum {string}
244
+ */
245
+ export declare enum ValidationErrorMessageEnum {
246
+ ValidationFailed = "Validation failed"
247
+ }
248
+ /**
249
+ * V1Api - axios parameter creator
250
+ * @export
251
+ */
252
+ export declare const V1ApiAxiosParamCreator: (configuration?: Configuration | undefined) => {
253
+ /**
254
+ * Get the estimated gas cost of a transaction
255
+ * @param {string} data input data
256
+ * @param {string} to to address
257
+ * @param {string} value transaction value in ether
258
+ * @param {*} [options] Override http request option.
259
+ * @throws {RequiredError}
260
+ */
261
+ estimateGas: (data: string, to: string, value: string, options?: any) => Promise<RequestArgs>;
262
+ /**
263
+ * Get balance of a pubkey
264
+ * @param {string} pubkey account pubkey
265
+ * @param {*} [options] Override http request option.
266
+ * @throws {RequiredError}
267
+ */
268
+ getBalance: (pubkey: string, options?: any) => Promise<RequestArgs>;
269
+ /**
270
+ * Get the current gas price from the node
271
+ * @param {*} [options] Override http request option.
272
+ * @throws {RequiredError}
273
+ */
274
+ getGasPrice: (options?: any) => Promise<RequestArgs>;
275
+ /**
276
+ * Get the current nonce of an address
277
+ * @param {string} address account address
278
+ * @param {*} [options] Override http request option.
279
+ * @throws {RequiredError}
280
+ */
281
+ getNonce: (address: string, options?: any) => Promise<RequestArgs>;
282
+ /**
283
+ * Get transaction history of a pubkey
284
+ * @param {string} pubkey account pubkey
285
+ * @param {number} [page] page number
286
+ * @param {number} [pageSize] page size
287
+ * @param {string} [contract] filter by contract address (only supported by coins which support contracts)
288
+ * @param {*} [options] Override http request option.
289
+ * @throws {RequiredError}
290
+ */
291
+ getTxHistory: (pubkey: string, page?: number | undefined, pageSize?: number | undefined, contract?: string | undefined, options?: any) => Promise<RequestArgs>;
292
+ /**
293
+ * Sends raw transaction to be broadcast to the node.
294
+ * @param {SendTxBody} sendTxBody serialized raw transaction hex
295
+ * @param {*} [options] Override http request option.
296
+ * @throws {RequiredError}
297
+ */
298
+ sendTx: (sendTxBody: SendTxBody, options?: any) => Promise<RequestArgs>;
299
+ };
300
+ /**
301
+ * V1Api - functional programming interface
302
+ * @export
303
+ */
304
+ export declare const V1ApiFp: (configuration?: Configuration | undefined) => {
305
+ /**
306
+ * Get the estimated gas cost of a transaction
307
+ * @param {string} data input data
308
+ * @param {string} to to address
309
+ * @param {string} value transaction value in ether
310
+ * @param {*} [options] Override http request option.
311
+ * @throws {RequiredError}
312
+ */
313
+ estimateGas(data: string, to: string, value: string, options?: any): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<string>>;
314
+ /**
315
+ * Get balance of a pubkey
316
+ * @param {string} pubkey account pubkey
317
+ * @param {*} [options] Override http request option.
318
+ * @throws {RequiredError}
319
+ */
320
+ getBalance(pubkey: string, options?: any): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<EthereumBalance>>;
321
+ /**
322
+ * Get the current gas price from the node
323
+ * @param {*} [options] Override http request option.
324
+ * @throws {RequiredError}
325
+ */
326
+ getGasPrice(options?: any): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<string>>;
327
+ /**
328
+ * Get the current nonce of an address
329
+ * @param {string} address account address
330
+ * @param {*} [options] Override http request option.
331
+ * @throws {RequiredError}
332
+ */
333
+ getNonce(address: string, options?: any): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<number>>;
334
+ /**
335
+ * Get transaction history of a pubkey
336
+ * @param {string} pubkey account pubkey
337
+ * @param {number} [page] page number
338
+ * @param {number} [pageSize] page size
339
+ * @param {string} [contract] filter by contract address (only supported by coins which support contracts)
340
+ * @param {*} [options] Override http request option.
341
+ * @throws {RequiredError}
342
+ */
343
+ getTxHistory(pubkey: string, page?: number | undefined, pageSize?: number | undefined, contract?: string | undefined, options?: any): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<TxHistory>>;
344
+ /**
345
+ * Sends raw transaction to be broadcast to the node.
346
+ * @param {SendTxBody} sendTxBody serialized raw transaction hex
347
+ * @param {*} [options] Override http request option.
348
+ * @throws {RequiredError}
349
+ */
350
+ sendTx(sendTxBody: SendTxBody, options?: any): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<string>>;
351
+ };
352
+ /**
353
+ * V1Api - factory interface
354
+ * @export
355
+ */
356
+ export declare const V1ApiFactory: (configuration?: Configuration | undefined, basePath?: string | undefined, axios?: AxiosInstance | undefined) => {
357
+ /**
358
+ * Get the estimated gas cost of a transaction
359
+ * @param {string} data input data
360
+ * @param {string} to to address
361
+ * @param {string} value transaction value in ether
362
+ * @param {*} [options] Override http request option.
363
+ * @throws {RequiredError}
364
+ */
365
+ estimateGas(data: string, to: string, value: string, options?: any): AxiosPromise<string>;
366
+ /**
367
+ * Get balance of a pubkey
368
+ * @param {string} pubkey account pubkey
369
+ * @param {*} [options] Override http request option.
370
+ * @throws {RequiredError}
371
+ */
372
+ getBalance(pubkey: string, options?: any): AxiosPromise<EthereumBalance>;
373
+ /**
374
+ * Get the current gas price from the node
375
+ * @param {*} [options] Override http request option.
376
+ * @throws {RequiredError}
377
+ */
378
+ getGasPrice(options?: any): AxiosPromise<string>;
379
+ /**
380
+ * Get the current nonce of an address
381
+ * @param {string} address account address
382
+ * @param {*} [options] Override http request option.
383
+ * @throws {RequiredError}
384
+ */
385
+ getNonce(address: string, options?: any): AxiosPromise<number>;
386
+ /**
387
+ * Get transaction history of a pubkey
388
+ * @param {string} pubkey account pubkey
389
+ * @param {number} [page] page number
390
+ * @param {number} [pageSize] page size
391
+ * @param {string} [contract] filter by contract address (only supported by coins which support contracts)
392
+ * @param {*} [options] Override http request option.
393
+ * @throws {RequiredError}
394
+ */
395
+ getTxHistory(pubkey: string, page?: number | undefined, pageSize?: number | undefined, contract?: string | undefined, options?: any): AxiosPromise<TxHistory>;
396
+ /**
397
+ * Sends raw transaction to be broadcast to the node.
398
+ * @param {SendTxBody} sendTxBody serialized raw transaction hex
399
+ * @param {*} [options] Override http request option.
400
+ * @throws {RequiredError}
401
+ */
402
+ sendTx(sendTxBody: SendTxBody, options?: any): AxiosPromise<string>;
403
+ };
404
+ /**
405
+ * Request parameters for estimateGas operation in V1Api.
406
+ * @export
407
+ * @interface V1ApiEstimateGasRequest
408
+ */
409
+ export interface V1ApiEstimateGasRequest {
410
+ /**
411
+ * input data
412
+ * @type {string}
413
+ * @memberof V1ApiEstimateGas
414
+ */
415
+ readonly data: string;
416
+ /**
417
+ * to address
418
+ * @type {string}
419
+ * @memberof V1ApiEstimateGas
420
+ */
421
+ readonly to: string;
422
+ /**
423
+ * transaction value in ether
424
+ * @type {string}
425
+ * @memberof V1ApiEstimateGas
426
+ */
427
+ readonly value: string;
428
+ }
429
+ /**
430
+ * Request parameters for getBalance operation in V1Api.
431
+ * @export
432
+ * @interface V1ApiGetBalanceRequest
433
+ */
434
+ export interface V1ApiGetBalanceRequest {
435
+ /**
436
+ * account pubkey
437
+ * @type {string}
438
+ * @memberof V1ApiGetBalance
439
+ */
440
+ readonly pubkey: string;
441
+ }
442
+ /**
443
+ * Request parameters for getNonce operation in V1Api.
444
+ * @export
445
+ * @interface V1ApiGetNonceRequest
446
+ */
447
+ export interface V1ApiGetNonceRequest {
448
+ /**
449
+ * account address
450
+ * @type {string}
451
+ * @memberof V1ApiGetNonce
452
+ */
453
+ readonly address: string;
454
+ }
455
+ /**
456
+ * Request parameters for getTxHistory operation in V1Api.
457
+ * @export
458
+ * @interface V1ApiGetTxHistoryRequest
459
+ */
460
+ export interface V1ApiGetTxHistoryRequest {
461
+ /**
462
+ * account pubkey
463
+ * @type {string}
464
+ * @memberof V1ApiGetTxHistory
465
+ */
466
+ readonly pubkey: string;
467
+ /**
468
+ * page number
469
+ * @type {number}
470
+ * @memberof V1ApiGetTxHistory
471
+ */
472
+ readonly page?: number;
473
+ /**
474
+ * page size
475
+ * @type {number}
476
+ * @memberof V1ApiGetTxHistory
477
+ */
478
+ readonly pageSize?: number;
479
+ /**
480
+ * filter by contract address (only supported by coins which support contracts)
481
+ * @type {string}
482
+ * @memberof V1ApiGetTxHistory
483
+ */
484
+ readonly contract?: string;
485
+ }
486
+ /**
487
+ * Request parameters for sendTx operation in V1Api.
488
+ * @export
489
+ * @interface V1ApiSendTxRequest
490
+ */
491
+ export interface V1ApiSendTxRequest {
492
+ /**
493
+ * serialized raw transaction hex
494
+ * @type {SendTxBody}
495
+ * @memberof V1ApiSendTx
496
+ */
497
+ readonly sendTxBody: SendTxBody;
498
+ }
499
+ /**
500
+ * V1Api - object-oriented interface
501
+ * @export
502
+ * @class V1Api
503
+ * @extends {BaseAPI}
504
+ */
505
+ export declare class V1Api extends BaseAPI {
506
+ /**
507
+ * Get the estimated gas cost of a transaction
508
+ * @param {V1ApiEstimateGasRequest} requestParameters Request parameters.
509
+ * @param {*} [options] Override http request option.
510
+ * @throws {RequiredError}
511
+ * @memberof V1Api
512
+ */
513
+ estimateGas(requestParameters: V1ApiEstimateGasRequest, options?: any): Promise<import("axios").AxiosResponse<string>>;
514
+ /**
515
+ * Get balance of a pubkey
516
+ * @param {V1ApiGetBalanceRequest} requestParameters Request parameters.
517
+ * @param {*} [options] Override http request option.
518
+ * @throws {RequiredError}
519
+ * @memberof V1Api
520
+ */
521
+ getBalance(requestParameters: V1ApiGetBalanceRequest, options?: any): Promise<import("axios").AxiosResponse<EthereumBalance>>;
522
+ /**
523
+ * Get the current gas price from the node
524
+ * @param {*} [options] Override http request option.
525
+ * @throws {RequiredError}
526
+ * @memberof V1Api
527
+ */
528
+ getGasPrice(options?: any): Promise<import("axios").AxiosResponse<string>>;
529
+ /**
530
+ * Get the current nonce of an address
531
+ * @param {V1ApiGetNonceRequest} requestParameters Request parameters.
532
+ * @param {*} [options] Override http request option.
533
+ * @throws {RequiredError}
534
+ * @memberof V1Api
535
+ */
536
+ getNonce(requestParameters: V1ApiGetNonceRequest, options?: any): Promise<import("axios").AxiosResponse<number>>;
537
+ /**
538
+ * Get transaction history of a pubkey
539
+ * @param {V1ApiGetTxHistoryRequest} requestParameters Request parameters.
540
+ * @param {*} [options] Override http request option.
541
+ * @throws {RequiredError}
542
+ * @memberof V1Api
543
+ */
544
+ getTxHistory(requestParameters: V1ApiGetTxHistoryRequest, options?: any): Promise<import("axios").AxiosResponse<TxHistory>>;
545
+ /**
546
+ * Sends raw transaction to be broadcast to the node.
547
+ * @param {V1ApiSendTxRequest} requestParameters Request parameters.
548
+ * @param {*} [options] Override http request option.
549
+ * @throws {RequiredError}
550
+ * @memberof V1Api
551
+ */
552
+ sendTx(requestParameters: V1ApiSendTxRequest, options?: any): Promise<import("axios").AxiosResponse<string>>;
553
+ }
554
+ //# sourceMappingURL=api.d.ts.map