@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
@@ -1 +0,0 @@
1
- {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../../../src/generated/ethereum/api.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAoB,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAKjE,OAAO,EAAiC,WAAW,EAAE,OAAO,EAAiB,MAAM,QAAQ,CAAC;AAE5F;;;;G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;;;OAKG;IACI,WAAW,CAAC,OAAO,CAAC,EAAE,GAAG;IAIhC;;;;;;OAMG;IACI,QAAQ,CAAC,iBAAiB,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,GAAG;IAItE;;;;;;OAMG;IACI,KAAK,CAAC,iBAAiB,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,GAAG;IAIhE;;;;;;OAMG;IACI,YAAY,CAAC,iBAAiB,EAAE,wBAAwB,EAAE,OAAO,CAAC,EAAE,GAAG;IAI9E;;;;;;OAMG;IACI,QAAQ,CAAC,iBAAiB,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,GAAG;IAItE;;;;;;OAMG;IACI,MAAM,CAAC,iBAAiB,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,GAAG;IAIlE;;;;;;OAMG;IACI,UAAU,CAAC,iBAAiB,EAAE,sBAAsB,EAAE,OAAO,CAAC,EAAE,GAAG;CAG7E"}
@@ -1,806 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * @shapeshiftoss/ethereum-api
6
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
- *
8
- * The version of the OpenAPI document: 0.1.1
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
16
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
17
- return new (P || (P = Promise))(function (resolve, reject) {
18
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
19
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
20
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
21
- step((generator = generator.apply(thisArg, _arguments || [])).next());
22
- });
23
- };
24
- var __importDefault = (this && this.__importDefault) || function (mod) {
25
- return (mod && mod.__esModule) ? mod : { "default": mod };
26
- };
27
- Object.defineProperty(exports, "__esModule", { value: true });
28
- exports.V1Api = exports.V1ApiFactory = exports.V1ApiFp = exports.V1ApiAxiosParamCreator = exports.ValidationErrorMessageEnum = exports.Interval = void 0;
29
- const axios_1 = __importDefault(require("axios"));
30
- // Some imports not used depending on template conditions
31
- // @ts-ignore
32
- const common_1 = require("./common");
33
- // @ts-ignore
34
- const base_1 = require("./base");
35
- /**
36
- *
37
- * @export
38
- * @enum {string}
39
- */
40
- var Interval;
41
- (function (Interval) {
42
- Interval["Weekly"] = "weekly";
43
- Interval["Daily"] = "daily";
44
- Interval["Hourly"] = "hourly";
45
- Interval["_30min"] = "30min";
46
- Interval["_15min"] = "15min";
47
- Interval["_10min"] = "10min";
48
- Interval["_5min"] = "5min";
49
- Interval["_1min"] = "1min";
50
- })(Interval = exports.Interval || (exports.Interval = {}));
51
- /**
52
- * @export
53
- * @enum {string}
54
- */
55
- var ValidationErrorMessageEnum;
56
- (function (ValidationErrorMessageEnum) {
57
- ValidationErrorMessageEnum["ValidationFailed"] = "Validation failed";
58
- })(ValidationErrorMessageEnum = exports.ValidationErrorMessageEnum || (exports.ValidationErrorMessageEnum = {}));
59
- /**
60
- * V1Api - axios parameter creator
61
- * @export
62
- */
63
- const V1ApiAxiosParamCreator = function (configuration) {
64
- return {
65
- /**
66
- * Get balance returns the balance of an address
67
- * @param {string} address account address
68
- * @param {*} [options] Override http request option.
69
- * @throws {RequiredError}
70
- */
71
- getBalance: (address, options = {}) => __awaiter(this, void 0, void 0, function* () {
72
- // verify required parameter 'address' is not null or undefined
73
- common_1.assertParamExists('getBalance', 'address', address);
74
- const localVarPath = `/api/v1/balance/{address}`
75
- .replace(`{${"address"}}`, encodeURIComponent(String(address)));
76
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
77
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
78
- let baseOptions;
79
- if (configuration) {
80
- baseOptions = configuration.baseOptions;
81
- }
82
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
83
- const localVarHeaderParameter = {};
84
- const localVarQueryParameter = {};
85
- common_1.setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
86
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
87
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
88
- return {
89
- url: common_1.toPathString(localVarUrlObj),
90
- options: localVarRequestOptions,
91
- };
92
- }),
93
- /**
94
- * Get balance history returns the balance history of an address
95
- * @param {string} address account address
96
- * @param {Interval} interval range to group by
97
- * @param {number} [start] start date as unix timestamp
98
- * @param {number} [end] end date as unix timestamp
99
- * @param {*} [options] Override http request option.
100
- * @throws {RequiredError}
101
- */
102
- getBalanceHistory: (address, interval, start, end, options = {}) => __awaiter(this, void 0, void 0, function* () {
103
- // verify required parameter 'address' is not null or undefined
104
- common_1.assertParamExists('getBalanceHistory', 'address', address);
105
- // verify required parameter 'interval' is not null or undefined
106
- common_1.assertParamExists('getBalanceHistory', 'interval', interval);
107
- const localVarPath = `/api/v1/balancehistory/{address}`
108
- .replace(`{${"address"}}`, encodeURIComponent(String(address)));
109
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
110
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
111
- let baseOptions;
112
- if (configuration) {
113
- baseOptions = configuration.baseOptions;
114
- }
115
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
116
- const localVarHeaderParameter = {};
117
- const localVarQueryParameter = {};
118
- if (interval !== undefined) {
119
- localVarQueryParameter['interval'] = interval;
120
- }
121
- if (start !== undefined) {
122
- localVarQueryParameter['start'] = start;
123
- }
124
- if (end !== undefined) {
125
- localVarQueryParameter['end'] = end;
126
- }
127
- common_1.setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
128
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
129
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
130
- return {
131
- url: common_1.toPathString(localVarUrlObj),
132
- options: localVarRequestOptions,
133
- };
134
- }),
135
- /**
136
- * Get block returns data about a block
137
- * @param {any} block height or hash
138
- * @param {*} [options] Override http request option.
139
- * @throws {RequiredError}
140
- */
141
- getBlock: (block, options = {}) => __awaiter(this, void 0, void 0, function* () {
142
- // verify required parameter 'block' is not null or undefined
143
- common_1.assertParamExists('getBlock', 'block', block);
144
- const localVarPath = `/api/v1/block/{block}`
145
- .replace(`{${"block"}}`, encodeURIComponent(String(block)));
146
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
147
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
148
- let baseOptions;
149
- if (configuration) {
150
- baseOptions = configuration.baseOptions;
151
- }
152
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
153
- const localVarHeaderParameter = {};
154
- const localVarQueryParameter = {};
155
- common_1.setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
156
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
157
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
158
- return {
159
- url: common_1.toPathString(localVarUrlObj),
160
- options: localVarRequestOptions,
161
- };
162
- }),
163
- /**
164
- * Get transaction specific estimated gas
165
- * @param {string} data contract call data
166
- * @param {string} to to address
167
- * @param {string} value value of the tx
168
- * @param {string} from from address
169
- * @param {*} [options] Override http request option.
170
- * @throws {RequiredError}
171
- */
172
- getEstimatedGas: (data, to, value, from, options = {}) => __awaiter(this, void 0, void 0, function* () {
173
- // verify required parameter 'data' is not null or undefined
174
- common_1.assertParamExists('getEstimatedGas', 'data', data);
175
- // verify required parameter 'to' is not null or undefined
176
- common_1.assertParamExists('getEstimatedGas', 'to', to);
177
- // verify required parameter 'value' is not null or undefined
178
- common_1.assertParamExists('getEstimatedGas', 'value', value);
179
- // verify required parameter 'from' is not null or undefined
180
- common_1.assertParamExists('getEstimatedGas', 'from', from);
181
- const localVarPath = `/api/v1/estimategas`;
182
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
183
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
184
- let baseOptions;
185
- if (configuration) {
186
- baseOptions = configuration.baseOptions;
187
- }
188
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
189
- const localVarHeaderParameter = {};
190
- const localVarQueryParameter = {};
191
- if (data !== undefined) {
192
- localVarQueryParameter['data'] = data;
193
- }
194
- if (to !== undefined) {
195
- localVarQueryParameter['to'] = to;
196
- }
197
- if (value !== undefined) {
198
- localVarQueryParameter['value'] = value;
199
- }
200
- if (from !== undefined) {
201
- localVarQueryParameter['from'] = from;
202
- }
203
- common_1.setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
204
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
205
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
206
- return {
207
- url: common_1.toPathString(localVarUrlObj),
208
- options: localVarRequestOptions,
209
- };
210
- }),
211
- /**
212
- * Get the current gas price from the node.
213
- * @param {*} [options] Override http request option.
214
- * @throws {RequiredError}
215
- */
216
- getFeePrice: (options = {}) => __awaiter(this, void 0, void 0, function* () {
217
- const localVarPath = `/api/v1/feeprice`;
218
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
219
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
220
- let baseOptions;
221
- if (configuration) {
222
- baseOptions = configuration.baseOptions;
223
- }
224
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
225
- const localVarHeaderParameter = {};
226
- const localVarQueryParameter = {};
227
- common_1.setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
228
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
229
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
230
- return {
231
- url: common_1.toPathString(localVarUrlObj),
232
- options: localVarRequestOptions,
233
- };
234
- }),
235
- /**
236
- * Returns the nonce of an address
237
- * @param {string} address account address
238
- * @param {*} [options] Override http request option.
239
- * @throws {RequiredError}
240
- */
241
- getNonce: (address, options = {}) => __awaiter(this, void 0, void 0, function* () {
242
- // verify required parameter 'address' is not null or undefined
243
- common_1.assertParamExists('getNonce', 'address', address);
244
- const localVarPath = `/api/v1/nonce/{address}`
245
- .replace(`{${"address"}}`, encodeURIComponent(String(address)));
246
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
247
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
248
- let baseOptions;
249
- if (configuration) {
250
- baseOptions = configuration.baseOptions;
251
- }
252
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
253
- const localVarHeaderParameter = {};
254
- const localVarQueryParameter = {};
255
- common_1.setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
256
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
257
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
258
- return {
259
- url: common_1.toPathString(localVarUrlObj),
260
- options: localVarRequestOptions,
261
- };
262
- }),
263
- /**
264
- * Get transaction returns data about a transaction
265
- * @param {string} txid transaction id
266
- * @param {*} [options] Override http request option.
267
- * @throws {RequiredError}
268
- */
269
- getTx: (txid, options = {}) => __awaiter(this, void 0, void 0, function* () {
270
- // verify required parameter 'txid' is not null or undefined
271
- common_1.assertParamExists('getTx', 'txid', txid);
272
- const localVarPath = `/api/v1/tx/{txid}`
273
- .replace(`{${"txid"}}`, encodeURIComponent(String(txid)));
274
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
275
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
276
- let baseOptions;
277
- if (configuration) {
278
- baseOptions = configuration.baseOptions;
279
- }
280
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
281
- const localVarHeaderParameter = {};
282
- const localVarQueryParameter = {};
283
- common_1.setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
284
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
285
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
286
- return {
287
- url: common_1.toPathString(localVarUrlObj),
288
- options: localVarRequestOptions,
289
- };
290
- }),
291
- /**
292
- * Get transaction history returns the transaction history of an address
293
- * @param {string} address account address
294
- * @param {number} [page] page number
295
- * @param {number} [pageSize] page number
296
- * @param {string} [contract] filter by contract address (only supported by coins which support contracts)
297
- * @param {*} [options] Override http request option.
298
- * @throws {RequiredError}
299
- */
300
- getTxHistory: (address, page, pageSize, contract, options = {}) => __awaiter(this, void 0, void 0, function* () {
301
- // verify required parameter 'address' is not null or undefined
302
- common_1.assertParamExists('getTxHistory', 'address', address);
303
- const localVarPath = `/api/v1/txs/{address}`
304
- .replace(`{${"address"}}`, encodeURIComponent(String(address)));
305
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
306
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
307
- let baseOptions;
308
- if (configuration) {
309
- baseOptions = configuration.baseOptions;
310
- }
311
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
312
- const localVarHeaderParameter = {};
313
- const localVarQueryParameter = {};
314
- if (page !== undefined) {
315
- localVarQueryParameter['page'] = page;
316
- }
317
- if (pageSize !== undefined) {
318
- localVarQueryParameter['pageSize'] = pageSize;
319
- }
320
- if (contract !== undefined) {
321
- localVarQueryParameter['contract'] = contract;
322
- }
323
- common_1.setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
324
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
325
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
326
- return {
327
- url: common_1.toPathString(localVarUrlObj),
328
- options: localVarRequestOptions,
329
- };
330
- }),
331
- /**
332
- * Register account details for tracking incoming pending transactions and newly confirmed transactions Example 1: Register a pubkey Example 2: Register an address for pubkey Example 3: Register a single address
333
- * @param {RegistryDocument} registryDocument Contains registry info for registering addresses and pubkeys for a client id.
334
- * @param {*} [options] Override http request option.
335
- * @throws {RequiredError}
336
- */
337
- register: (registryDocument, options = {}) => __awaiter(this, void 0, void 0, function* () {
338
- // verify required parameter 'registryDocument' is not null or undefined
339
- common_1.assertParamExists('register', 'registryDocument', registryDocument);
340
- const localVarPath = `/api/v1/register`;
341
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
342
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
343
- let baseOptions;
344
- if (configuration) {
345
- baseOptions = configuration.baseOptions;
346
- }
347
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
348
- const localVarHeaderParameter = {};
349
- const localVarQueryParameter = {};
350
- localVarHeaderParameter['Content-Type'] = 'application/json';
351
- common_1.setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
352
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
353
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
354
- localVarRequestOptions.data = common_1.serializeDataIfNeeded(registryDocument, localVarRequestOptions, configuration);
355
- return {
356
- url: common_1.toPathString(localVarUrlObj),
357
- options: localVarRequestOptions,
358
- };
359
- }),
360
- /**
361
- * Sends raw transaction to be broadcast to the node.
362
- * @param {RawTx} rawTx serialized raw transaction hex
363
- * @param {*} [options] Override http request option.
364
- * @throws {RequiredError}
365
- */
366
- sendTx: (rawTx, options = {}) => __awaiter(this, void 0, void 0, function* () {
367
- // verify required parameter 'rawTx' is not null or undefined
368
- common_1.assertParamExists('sendTx', 'rawTx', rawTx);
369
- const localVarPath = `/api/v1/send`;
370
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
371
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
372
- let baseOptions;
373
- if (configuration) {
374
- baseOptions = configuration.baseOptions;
375
- }
376
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
377
- const localVarHeaderParameter = {};
378
- const localVarQueryParameter = {};
379
- localVarHeaderParameter['Content-Type'] = 'application/json';
380
- common_1.setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
381
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
382
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
383
- localVarRequestOptions.data = common_1.serializeDataIfNeeded(rawTx, localVarRequestOptions, configuration);
384
- return {
385
- url: common_1.toPathString(localVarUrlObj),
386
- options: localVarRequestOptions,
387
- };
388
- }),
389
- /**
390
- * Unregister accounts to stop tracking incoming pending transactions and newly confirmed transactions Example 1: Unregister a pubkey and all associated addresses Example 2: Unregister a single address from an account
391
- * @param {RegistryDocument} registryDocument Contains registry info for unregistering addresses or pubkeys for a client id.
392
- * @param {*} [options] Override http request option.
393
- * @throws {RequiredError}
394
- */
395
- unregister: (registryDocument, options = {}) => __awaiter(this, void 0, void 0, function* () {
396
- // verify required parameter 'registryDocument' is not null or undefined
397
- common_1.assertParamExists('unregister', 'registryDocument', registryDocument);
398
- const localVarPath = `/api/v1/unregister`;
399
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
400
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
401
- let baseOptions;
402
- if (configuration) {
403
- baseOptions = configuration.baseOptions;
404
- }
405
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
406
- const localVarHeaderParameter = {};
407
- const localVarQueryParameter = {};
408
- localVarHeaderParameter['Content-Type'] = 'application/json';
409
- common_1.setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
410
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
411
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
412
- localVarRequestOptions.data = common_1.serializeDataIfNeeded(registryDocument, localVarRequestOptions, configuration);
413
- return {
414
- url: common_1.toPathString(localVarUrlObj),
415
- options: localVarRequestOptions,
416
- };
417
- }),
418
- };
419
- };
420
- exports.V1ApiAxiosParamCreator = V1ApiAxiosParamCreator;
421
- /**
422
- * V1Api - functional programming interface
423
- * @export
424
- */
425
- const V1ApiFp = function (configuration) {
426
- const localVarAxiosParamCreator = exports.V1ApiAxiosParamCreator(configuration);
427
- return {
428
- /**
429
- * Get balance returns the balance of an address
430
- * @param {string} address account address
431
- * @param {*} [options] Override http request option.
432
- * @throws {RequiredError}
433
- */
434
- getBalance(address, options) {
435
- return __awaiter(this, void 0, void 0, function* () {
436
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getBalance(address, options);
437
- return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
438
- });
439
- },
440
- /**
441
- * Get balance history returns the balance history of an address
442
- * @param {string} address account address
443
- * @param {Interval} interval range to group by
444
- * @param {number} [start] start date as unix timestamp
445
- * @param {number} [end] end date as unix timestamp
446
- * @param {*} [options] Override http request option.
447
- * @throws {RequiredError}
448
- */
449
- getBalanceHistory(address, interval, start, end, options) {
450
- return __awaiter(this, void 0, void 0, function* () {
451
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getBalanceHistory(address, interval, start, end, options);
452
- return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
453
- });
454
- },
455
- /**
456
- * Get block returns data about a block
457
- * @param {any} block height or hash
458
- * @param {*} [options] Override http request option.
459
- * @throws {RequiredError}
460
- */
461
- getBlock(block, options) {
462
- return __awaiter(this, void 0, void 0, function* () {
463
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getBlock(block, options);
464
- return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
465
- });
466
- },
467
- /**
468
- * Get transaction specific estimated gas
469
- * @param {string} data contract call data
470
- * @param {string} to to address
471
- * @param {string} value value of the tx
472
- * @param {string} from from address
473
- * @param {*} [options] Override http request option.
474
- * @throws {RequiredError}
475
- */
476
- getEstimatedGas(data, to, value, from, options) {
477
- return __awaiter(this, void 0, void 0, function* () {
478
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getEstimatedGas(data, to, value, from, options);
479
- return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
480
- });
481
- },
482
- /**
483
- * Get the current gas price from the node.
484
- * @param {*} [options] Override http request option.
485
- * @throws {RequiredError}
486
- */
487
- getFeePrice(options) {
488
- return __awaiter(this, void 0, void 0, function* () {
489
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getFeePrice(options);
490
- return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
491
- });
492
- },
493
- /**
494
- * Returns the nonce of an address
495
- * @param {string} address account address
496
- * @param {*} [options] Override http request option.
497
- * @throws {RequiredError}
498
- */
499
- getNonce(address, options) {
500
- return __awaiter(this, void 0, void 0, function* () {
501
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getNonce(address, options);
502
- return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
503
- });
504
- },
505
- /**
506
- * Get transaction returns data about a transaction
507
- * @param {string} txid transaction id
508
- * @param {*} [options] Override http request option.
509
- * @throws {RequiredError}
510
- */
511
- getTx(txid, options) {
512
- return __awaiter(this, void 0, void 0, function* () {
513
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getTx(txid, options);
514
- return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
515
- });
516
- },
517
- /**
518
- * Get transaction history returns the transaction history of an address
519
- * @param {string} address account address
520
- * @param {number} [page] page number
521
- * @param {number} [pageSize] page number
522
- * @param {string} [contract] filter by contract address (only supported by coins which support contracts)
523
- * @param {*} [options] Override http request option.
524
- * @throws {RequiredError}
525
- */
526
- getTxHistory(address, page, pageSize, contract, options) {
527
- return __awaiter(this, void 0, void 0, function* () {
528
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getTxHistory(address, page, pageSize, contract, options);
529
- return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
530
- });
531
- },
532
- /**
533
- * Register account details for tracking incoming pending transactions and newly confirmed transactions Example 1: Register a pubkey Example 2: Register an address for pubkey Example 3: Register a single address
534
- * @param {RegistryDocument} registryDocument Contains registry info for registering addresses and pubkeys for a client id.
535
- * @param {*} [options] Override http request option.
536
- * @throws {RequiredError}
537
- */
538
- register(registryDocument, options) {
539
- return __awaiter(this, void 0, void 0, function* () {
540
- const localVarAxiosArgs = yield localVarAxiosParamCreator.register(registryDocument, options);
541
- return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
542
- });
543
- },
544
- /**
545
- * Sends raw transaction to be broadcast to the node.
546
- * @param {RawTx} rawTx serialized raw transaction hex
547
- * @param {*} [options] Override http request option.
548
- * @throws {RequiredError}
549
- */
550
- sendTx(rawTx, options) {
551
- return __awaiter(this, void 0, void 0, function* () {
552
- const localVarAxiosArgs = yield localVarAxiosParamCreator.sendTx(rawTx, options);
553
- return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
554
- });
555
- },
556
- /**
557
- * Unregister accounts to stop tracking incoming pending transactions and newly confirmed transactions Example 1: Unregister a pubkey and all associated addresses Example 2: Unregister a single address from an account
558
- * @param {RegistryDocument} registryDocument Contains registry info for unregistering addresses or pubkeys for a client id.
559
- * @param {*} [options] Override http request option.
560
- * @throws {RequiredError}
561
- */
562
- unregister(registryDocument, options) {
563
- return __awaiter(this, void 0, void 0, function* () {
564
- const localVarAxiosArgs = yield localVarAxiosParamCreator.unregister(registryDocument, options);
565
- return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
566
- });
567
- },
568
- };
569
- };
570
- exports.V1ApiFp = V1ApiFp;
571
- /**
572
- * V1Api - factory interface
573
- * @export
574
- */
575
- const V1ApiFactory = function (configuration, basePath, axios) {
576
- const localVarFp = exports.V1ApiFp(configuration);
577
- return {
578
- /**
579
- * Get balance returns the balance of an address
580
- * @param {string} address account address
581
- * @param {*} [options] Override http request option.
582
- * @throws {RequiredError}
583
- */
584
- getBalance(address, options) {
585
- return localVarFp.getBalance(address, options).then((request) => request(axios, basePath));
586
- },
587
- /**
588
- * Get balance history returns the balance history of an address
589
- * @param {string} address account address
590
- * @param {Interval} interval range to group by
591
- * @param {number} [start] start date as unix timestamp
592
- * @param {number} [end] end date as unix timestamp
593
- * @param {*} [options] Override http request option.
594
- * @throws {RequiredError}
595
- */
596
- getBalanceHistory(address, interval, start, end, options) {
597
- return localVarFp.getBalanceHistory(address, interval, start, end, options).then((request) => request(axios, basePath));
598
- },
599
- /**
600
- * Get block returns data about a block
601
- * @param {any} block height or hash
602
- * @param {*} [options] Override http request option.
603
- * @throws {RequiredError}
604
- */
605
- getBlock(block, options) {
606
- return localVarFp.getBlock(block, options).then((request) => request(axios, basePath));
607
- },
608
- /**
609
- * Get transaction specific estimated gas
610
- * @param {string} data contract call data
611
- * @param {string} to to address
612
- * @param {string} value value of the tx
613
- * @param {string} from from address
614
- * @param {*} [options] Override http request option.
615
- * @throws {RequiredError}
616
- */
617
- getEstimatedGas(data, to, value, from, options) {
618
- return localVarFp.getEstimatedGas(data, to, value, from, options).then((request) => request(axios, basePath));
619
- },
620
- /**
621
- * Get the current gas price from the node.
622
- * @param {*} [options] Override http request option.
623
- * @throws {RequiredError}
624
- */
625
- getFeePrice(options) {
626
- return localVarFp.getFeePrice(options).then((request) => request(axios, basePath));
627
- },
628
- /**
629
- * Returns the nonce of an address
630
- * @param {string} address account address
631
- * @param {*} [options] Override http request option.
632
- * @throws {RequiredError}
633
- */
634
- getNonce(address, options) {
635
- return localVarFp.getNonce(address, options).then((request) => request(axios, basePath));
636
- },
637
- /**
638
- * Get transaction returns data about a transaction
639
- * @param {string} txid transaction id
640
- * @param {*} [options] Override http request option.
641
- * @throws {RequiredError}
642
- */
643
- getTx(txid, options) {
644
- return localVarFp.getTx(txid, options).then((request) => request(axios, basePath));
645
- },
646
- /**
647
- * Get transaction history returns the transaction history of an address
648
- * @param {string} address account address
649
- * @param {number} [page] page number
650
- * @param {number} [pageSize] page number
651
- * @param {string} [contract] filter by contract address (only supported by coins which support contracts)
652
- * @param {*} [options] Override http request option.
653
- * @throws {RequiredError}
654
- */
655
- getTxHistory(address, page, pageSize, contract, options) {
656
- return localVarFp.getTxHistory(address, page, pageSize, contract, options).then((request) => request(axios, basePath));
657
- },
658
- /**
659
- * Register account details for tracking incoming pending transactions and newly confirmed transactions Example 1: Register a pubkey Example 2: Register an address for pubkey Example 3: Register a single address
660
- * @param {RegistryDocument} registryDocument Contains registry info for registering addresses and pubkeys for a client id.
661
- * @param {*} [options] Override http request option.
662
- * @throws {RequiredError}
663
- */
664
- register(registryDocument, options) {
665
- return localVarFp.register(registryDocument, options).then((request) => request(axios, basePath));
666
- },
667
- /**
668
- * Sends raw transaction to be broadcast to the node.
669
- * @param {RawTx} rawTx serialized raw transaction hex
670
- * @param {*} [options] Override http request option.
671
- * @throws {RequiredError}
672
- */
673
- sendTx(rawTx, options) {
674
- return localVarFp.sendTx(rawTx, options).then((request) => request(axios, basePath));
675
- },
676
- /**
677
- * Unregister accounts to stop tracking incoming pending transactions and newly confirmed transactions Example 1: Unregister a pubkey and all associated addresses Example 2: Unregister a single address from an account
678
- * @param {RegistryDocument} registryDocument Contains registry info for unregistering addresses or pubkeys for a client id.
679
- * @param {*} [options] Override http request option.
680
- * @throws {RequiredError}
681
- */
682
- unregister(registryDocument, options) {
683
- return localVarFp.unregister(registryDocument, options).then((request) => request(axios, basePath));
684
- },
685
- };
686
- };
687
- exports.V1ApiFactory = V1ApiFactory;
688
- /**
689
- * V1Api - object-oriented interface
690
- * @export
691
- * @class V1Api
692
- * @extends {BaseAPI}
693
- */
694
- class V1Api extends base_1.BaseAPI {
695
- /**
696
- * Get balance returns the balance of an address
697
- * @param {V1ApiGetBalanceRequest} requestParameters Request parameters.
698
- * @param {*} [options] Override http request option.
699
- * @throws {RequiredError}
700
- * @memberof V1Api
701
- */
702
- getBalance(requestParameters, options) {
703
- return exports.V1ApiFp(this.configuration).getBalance(requestParameters.address, options).then((request) => request(this.axios, this.basePath));
704
- }
705
- /**
706
- * Get balance history returns the balance history of an address
707
- * @param {V1ApiGetBalanceHistoryRequest} requestParameters Request parameters.
708
- * @param {*} [options] Override http request option.
709
- * @throws {RequiredError}
710
- * @memberof V1Api
711
- */
712
- getBalanceHistory(requestParameters, options) {
713
- return exports.V1ApiFp(this.configuration).getBalanceHistory(requestParameters.address, requestParameters.interval, requestParameters.start, requestParameters.end, options).then((request) => request(this.axios, this.basePath));
714
- }
715
- /**
716
- * Get block returns data about a block
717
- * @param {V1ApiGetBlockRequest} requestParameters Request parameters.
718
- * @param {*} [options] Override http request option.
719
- * @throws {RequiredError}
720
- * @memberof V1Api
721
- */
722
- getBlock(requestParameters, options) {
723
- return exports.V1ApiFp(this.configuration).getBlock(requestParameters.block, options).then((request) => request(this.axios, this.basePath));
724
- }
725
- /**
726
- * Get transaction specific estimated gas
727
- * @param {V1ApiGetEstimatedGasRequest} requestParameters Request parameters.
728
- * @param {*} [options] Override http request option.
729
- * @throws {RequiredError}
730
- * @memberof V1Api
731
- */
732
- getEstimatedGas(requestParameters, options) {
733
- return exports.V1ApiFp(this.configuration).getEstimatedGas(requestParameters.data, requestParameters.to, requestParameters.value, requestParameters.from, options).then((request) => request(this.axios, this.basePath));
734
- }
735
- /**
736
- * Get the current gas price from the node.
737
- * @param {*} [options] Override http request option.
738
- * @throws {RequiredError}
739
- * @memberof V1Api
740
- */
741
- getFeePrice(options) {
742
- return exports.V1ApiFp(this.configuration).getFeePrice(options).then((request) => request(this.axios, this.basePath));
743
- }
744
- /**
745
- * Returns the nonce of an address
746
- * @param {V1ApiGetNonceRequest} requestParameters Request parameters.
747
- * @param {*} [options] Override http request option.
748
- * @throws {RequiredError}
749
- * @memberof V1Api
750
- */
751
- getNonce(requestParameters, options) {
752
- return exports.V1ApiFp(this.configuration).getNonce(requestParameters.address, options).then((request) => request(this.axios, this.basePath));
753
- }
754
- /**
755
- * Get transaction returns data about a transaction
756
- * @param {V1ApiGetTxRequest} requestParameters Request parameters.
757
- * @param {*} [options] Override http request option.
758
- * @throws {RequiredError}
759
- * @memberof V1Api
760
- */
761
- getTx(requestParameters, options) {
762
- return exports.V1ApiFp(this.configuration).getTx(requestParameters.txid, options).then((request) => request(this.axios, this.basePath));
763
- }
764
- /**
765
- * Get transaction history returns the transaction history of an address
766
- * @param {V1ApiGetTxHistoryRequest} requestParameters Request parameters.
767
- * @param {*} [options] Override http request option.
768
- * @throws {RequiredError}
769
- * @memberof V1Api
770
- */
771
- getTxHistory(requestParameters, options) {
772
- return exports.V1ApiFp(this.configuration).getTxHistory(requestParameters.address, requestParameters.page, requestParameters.pageSize, requestParameters.contract, options).then((request) => request(this.axios, this.basePath));
773
- }
774
- /**
775
- * Register account details for tracking incoming pending transactions and newly confirmed transactions Example 1: Register a pubkey Example 2: Register an address for pubkey Example 3: Register a single address
776
- * @param {V1ApiRegisterRequest} requestParameters Request parameters.
777
- * @param {*} [options] Override http request option.
778
- * @throws {RequiredError}
779
- * @memberof V1Api
780
- */
781
- register(requestParameters, options) {
782
- return exports.V1ApiFp(this.configuration).register(requestParameters.registryDocument, options).then((request) => request(this.axios, this.basePath));
783
- }
784
- /**
785
- * Sends raw transaction to be broadcast to the node.
786
- * @param {V1ApiSendTxRequest} requestParameters Request parameters.
787
- * @param {*} [options] Override http request option.
788
- * @throws {RequiredError}
789
- * @memberof V1Api
790
- */
791
- sendTx(requestParameters, options) {
792
- return exports.V1ApiFp(this.configuration).sendTx(requestParameters.rawTx, options).then((request) => request(this.axios, this.basePath));
793
- }
794
- /**
795
- * Unregister accounts to stop tracking incoming pending transactions and newly confirmed transactions Example 1: Unregister a pubkey and all associated addresses Example 2: Unregister a single address from an account
796
- * @param {V1ApiUnregisterRequest} requestParameters Request parameters.
797
- * @param {*} [options] Override http request option.
798
- * @throws {RequiredError}
799
- * @memberof V1Api
800
- */
801
- unregister(requestParameters, options) {
802
- return exports.V1ApiFp(this.configuration).unregister(requestParameters.registryDocument, options).then((request) => request(this.axios, this.basePath));
803
- }
804
- }
805
- exports.V1Api = V1Api;
806
- //# sourceMappingURL=api.js.map