@xchainjs/xchain-thornode 0.3.7 → 0.3.8
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.
- package/lib/generated/thornodeApi/api.d.ts +356 -47
- package/lib/generated/thornodeApi/base.d.ts +1 -1
- package/lib/generated/thornodeApi/common.d.ts +1 -1
- package/lib/generated/thornodeApi/configuration.d.ts +1 -1
- package/lib/generated/thornodeApi/index.d.ts +1 -1
- package/lib/index.esm.js +95 -2
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +98 -1
- package/lib/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Thornode API
|
|
3
3
|
* Thornode REST API.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.122.0
|
|
6
6
|
* Contact: devs@thorchain.org
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -128,6 +128,279 @@ export interface BaseQuoteResponse {
|
|
|
128
128
|
*/
|
|
129
129
|
'recommended_min_amount_in'?: string;
|
|
130
130
|
}
|
|
131
|
+
/**
|
|
132
|
+
*
|
|
133
|
+
* @export
|
|
134
|
+
* @interface BlockResponse
|
|
135
|
+
*/
|
|
136
|
+
export interface BlockResponse {
|
|
137
|
+
/**
|
|
138
|
+
*
|
|
139
|
+
* @type {BlockResponseId}
|
|
140
|
+
* @memberof BlockResponse
|
|
141
|
+
*/
|
|
142
|
+
'id': BlockResponseId;
|
|
143
|
+
/**
|
|
144
|
+
*
|
|
145
|
+
* @type {BlockResponseHeader}
|
|
146
|
+
* @memberof BlockResponse
|
|
147
|
+
*/
|
|
148
|
+
'header': BlockResponseHeader;
|
|
149
|
+
/**
|
|
150
|
+
*
|
|
151
|
+
* @type {Array<{ [key: string]: string; }>}
|
|
152
|
+
* @memberof BlockResponse
|
|
153
|
+
*/
|
|
154
|
+
'begin_block_events': Array<{
|
|
155
|
+
[key: string]: string;
|
|
156
|
+
}>;
|
|
157
|
+
/**
|
|
158
|
+
*
|
|
159
|
+
* @type {Array<{ [key: string]: string; }>}
|
|
160
|
+
* @memberof BlockResponse
|
|
161
|
+
*/
|
|
162
|
+
'end_block_events': Array<{
|
|
163
|
+
[key: string]: string;
|
|
164
|
+
}>;
|
|
165
|
+
/**
|
|
166
|
+
*
|
|
167
|
+
* @type {Array<BlockTx>}
|
|
168
|
+
* @memberof BlockResponse
|
|
169
|
+
*/
|
|
170
|
+
'txs': Array<BlockTx> | null;
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
*
|
|
174
|
+
* @export
|
|
175
|
+
* @interface BlockResponseHeader
|
|
176
|
+
*/
|
|
177
|
+
export interface BlockResponseHeader {
|
|
178
|
+
/**
|
|
179
|
+
*
|
|
180
|
+
* @type {BlockResponseHeaderVersion}
|
|
181
|
+
* @memberof BlockResponseHeader
|
|
182
|
+
*/
|
|
183
|
+
'version': BlockResponseHeaderVersion;
|
|
184
|
+
/**
|
|
185
|
+
*
|
|
186
|
+
* @type {string}
|
|
187
|
+
* @memberof BlockResponseHeader
|
|
188
|
+
*/
|
|
189
|
+
'chain_id': string;
|
|
190
|
+
/**
|
|
191
|
+
*
|
|
192
|
+
* @type {number}
|
|
193
|
+
* @memberof BlockResponseHeader
|
|
194
|
+
*/
|
|
195
|
+
'height': number;
|
|
196
|
+
/**
|
|
197
|
+
*
|
|
198
|
+
* @type {string}
|
|
199
|
+
* @memberof BlockResponseHeader
|
|
200
|
+
*/
|
|
201
|
+
'time': string;
|
|
202
|
+
/**
|
|
203
|
+
*
|
|
204
|
+
* @type {BlockResponseId}
|
|
205
|
+
* @memberof BlockResponseHeader
|
|
206
|
+
*/
|
|
207
|
+
'last_block_id': BlockResponseId;
|
|
208
|
+
/**
|
|
209
|
+
*
|
|
210
|
+
* @type {string}
|
|
211
|
+
* @memberof BlockResponseHeader
|
|
212
|
+
*/
|
|
213
|
+
'last_commit_hash': string;
|
|
214
|
+
/**
|
|
215
|
+
*
|
|
216
|
+
* @type {string}
|
|
217
|
+
* @memberof BlockResponseHeader
|
|
218
|
+
*/
|
|
219
|
+
'data_hash': string;
|
|
220
|
+
/**
|
|
221
|
+
*
|
|
222
|
+
* @type {string}
|
|
223
|
+
* @memberof BlockResponseHeader
|
|
224
|
+
*/
|
|
225
|
+
'validators_hash': string;
|
|
226
|
+
/**
|
|
227
|
+
*
|
|
228
|
+
* @type {string}
|
|
229
|
+
* @memberof BlockResponseHeader
|
|
230
|
+
*/
|
|
231
|
+
'next_validators_hash': string;
|
|
232
|
+
/**
|
|
233
|
+
*
|
|
234
|
+
* @type {string}
|
|
235
|
+
* @memberof BlockResponseHeader
|
|
236
|
+
*/
|
|
237
|
+
'consensus_hash': string;
|
|
238
|
+
/**
|
|
239
|
+
*
|
|
240
|
+
* @type {string}
|
|
241
|
+
* @memberof BlockResponseHeader
|
|
242
|
+
*/
|
|
243
|
+
'app_hash': string;
|
|
244
|
+
/**
|
|
245
|
+
*
|
|
246
|
+
* @type {string}
|
|
247
|
+
* @memberof BlockResponseHeader
|
|
248
|
+
*/
|
|
249
|
+
'last_results_hash': string;
|
|
250
|
+
/**
|
|
251
|
+
*
|
|
252
|
+
* @type {string}
|
|
253
|
+
* @memberof BlockResponseHeader
|
|
254
|
+
*/
|
|
255
|
+
'evidence_hash': string;
|
|
256
|
+
/**
|
|
257
|
+
*
|
|
258
|
+
* @type {string}
|
|
259
|
+
* @memberof BlockResponseHeader
|
|
260
|
+
*/
|
|
261
|
+
'proposer_address': string;
|
|
262
|
+
}
|
|
263
|
+
/**
|
|
264
|
+
*
|
|
265
|
+
* @export
|
|
266
|
+
* @interface BlockResponseHeaderVersion
|
|
267
|
+
*/
|
|
268
|
+
export interface BlockResponseHeaderVersion {
|
|
269
|
+
/**
|
|
270
|
+
*
|
|
271
|
+
* @type {string}
|
|
272
|
+
* @memberof BlockResponseHeaderVersion
|
|
273
|
+
*/
|
|
274
|
+
'block': string;
|
|
275
|
+
/**
|
|
276
|
+
*
|
|
277
|
+
* @type {string}
|
|
278
|
+
* @memberof BlockResponseHeaderVersion
|
|
279
|
+
*/
|
|
280
|
+
'app': string;
|
|
281
|
+
}
|
|
282
|
+
/**
|
|
283
|
+
*
|
|
284
|
+
* @export
|
|
285
|
+
* @interface BlockResponseId
|
|
286
|
+
*/
|
|
287
|
+
export interface BlockResponseId {
|
|
288
|
+
/**
|
|
289
|
+
*
|
|
290
|
+
* @type {string}
|
|
291
|
+
* @memberof BlockResponseId
|
|
292
|
+
*/
|
|
293
|
+
'hash': string;
|
|
294
|
+
/**
|
|
295
|
+
*
|
|
296
|
+
* @type {BlockResponseIdParts}
|
|
297
|
+
* @memberof BlockResponseId
|
|
298
|
+
*/
|
|
299
|
+
'parts': BlockResponseIdParts;
|
|
300
|
+
}
|
|
301
|
+
/**
|
|
302
|
+
*
|
|
303
|
+
* @export
|
|
304
|
+
* @interface BlockResponseIdParts
|
|
305
|
+
*/
|
|
306
|
+
export interface BlockResponseIdParts {
|
|
307
|
+
/**
|
|
308
|
+
*
|
|
309
|
+
* @type {number}
|
|
310
|
+
* @memberof BlockResponseIdParts
|
|
311
|
+
*/
|
|
312
|
+
'total': number;
|
|
313
|
+
/**
|
|
314
|
+
*
|
|
315
|
+
* @type {string}
|
|
316
|
+
* @memberof BlockResponseIdParts
|
|
317
|
+
*/
|
|
318
|
+
'hash': string;
|
|
319
|
+
}
|
|
320
|
+
/**
|
|
321
|
+
*
|
|
322
|
+
* @export
|
|
323
|
+
* @interface BlockTx
|
|
324
|
+
*/
|
|
325
|
+
export interface BlockTx {
|
|
326
|
+
/**
|
|
327
|
+
*
|
|
328
|
+
* @type {string}
|
|
329
|
+
* @memberof BlockTx
|
|
330
|
+
*/
|
|
331
|
+
'hash': string;
|
|
332
|
+
/**
|
|
333
|
+
*
|
|
334
|
+
* @type {{ [key: string]: any; }}
|
|
335
|
+
* @memberof BlockTx
|
|
336
|
+
*/
|
|
337
|
+
'tx': {
|
|
338
|
+
[key: string]: any;
|
|
339
|
+
};
|
|
340
|
+
/**
|
|
341
|
+
*
|
|
342
|
+
* @type {BlockTxResult}
|
|
343
|
+
* @memberof BlockTx
|
|
344
|
+
*/
|
|
345
|
+
'result': BlockTxResult;
|
|
346
|
+
}
|
|
347
|
+
/**
|
|
348
|
+
*
|
|
349
|
+
* @export
|
|
350
|
+
* @interface BlockTxResult
|
|
351
|
+
*/
|
|
352
|
+
export interface BlockTxResult {
|
|
353
|
+
/**
|
|
354
|
+
*
|
|
355
|
+
* @type {number}
|
|
356
|
+
* @memberof BlockTxResult
|
|
357
|
+
*/
|
|
358
|
+
'code'?: number;
|
|
359
|
+
/**
|
|
360
|
+
*
|
|
361
|
+
* @type {string}
|
|
362
|
+
* @memberof BlockTxResult
|
|
363
|
+
*/
|
|
364
|
+
'data'?: string;
|
|
365
|
+
/**
|
|
366
|
+
*
|
|
367
|
+
* @type {string}
|
|
368
|
+
* @memberof BlockTxResult
|
|
369
|
+
*/
|
|
370
|
+
'log'?: string;
|
|
371
|
+
/**
|
|
372
|
+
*
|
|
373
|
+
* @type {string}
|
|
374
|
+
* @memberof BlockTxResult
|
|
375
|
+
*/
|
|
376
|
+
'info'?: string;
|
|
377
|
+
/**
|
|
378
|
+
*
|
|
379
|
+
* @type {string}
|
|
380
|
+
* @memberof BlockTxResult
|
|
381
|
+
*/
|
|
382
|
+
'gas_wanted'?: string;
|
|
383
|
+
/**
|
|
384
|
+
*
|
|
385
|
+
* @type {string}
|
|
386
|
+
* @memberof BlockTxResult
|
|
387
|
+
*/
|
|
388
|
+
'gas_used'?: string;
|
|
389
|
+
/**
|
|
390
|
+
*
|
|
391
|
+
* @type {Array<{ [key: string]: string; }>}
|
|
392
|
+
* @memberof BlockTxResult
|
|
393
|
+
*/
|
|
394
|
+
'events'?: Array<{
|
|
395
|
+
[key: string]: string;
|
|
396
|
+
}> | null;
|
|
397
|
+
/**
|
|
398
|
+
*
|
|
399
|
+
* @type {string}
|
|
400
|
+
* @memberof BlockTxResult
|
|
401
|
+
*/
|
|
402
|
+
'codespace'?: string;
|
|
403
|
+
}
|
|
131
404
|
/**
|
|
132
405
|
*
|
|
133
406
|
* @export
|
|
@@ -1298,19 +1571,7 @@ export interface ObservedTx {
|
|
|
1298
1571
|
* @type {string}
|
|
1299
1572
|
* @memberof ObservedTx
|
|
1300
1573
|
*/
|
|
1301
|
-
'
|
|
1302
|
-
/**
|
|
1303
|
-
*
|
|
1304
|
-
* @type {Array<string>}
|
|
1305
|
-
* @memberof ObservedTx
|
|
1306
|
-
*/
|
|
1307
|
-
'out_hashes'?: Array<string>;
|
|
1308
|
-
/**
|
|
1309
|
-
* same as external_observed_height, to be deprecated in favour of external_observed_height
|
|
1310
|
-
* @type {number}
|
|
1311
|
-
* @memberof ObservedTx
|
|
1312
|
-
*/
|
|
1313
|
-
'block_height'?: number;
|
|
1574
|
+
'observed_pub_key'?: string;
|
|
1314
1575
|
/**
|
|
1315
1576
|
* the block height on the external source chain when the transaction was observed, not provided if chain is THOR
|
|
1316
1577
|
* @type {number}
|
|
@@ -1318,53 +1579,53 @@ export interface ObservedTx {
|
|
|
1318
1579
|
*/
|
|
1319
1580
|
'external_observed_height'?: number;
|
|
1320
1581
|
/**
|
|
1321
|
-
*
|
|
1322
|
-
* @type {
|
|
1582
|
+
* the block height on the external source chain when confirmation counting will be complete, not provided if chain is THOR
|
|
1583
|
+
* @type {number}
|
|
1323
1584
|
* @memberof ObservedTx
|
|
1324
1585
|
*/
|
|
1325
|
-
'
|
|
1586
|
+
'external_confirmation_delay_height'?: number;
|
|
1326
1587
|
/**
|
|
1327
|
-
*
|
|
1588
|
+
* the outbound aggregator to use, will also match a suffix
|
|
1328
1589
|
* @type {string}
|
|
1329
1590
|
* @memberof ObservedTx
|
|
1330
1591
|
*/
|
|
1331
|
-
'
|
|
1592
|
+
'aggregator'?: string;
|
|
1332
1593
|
/**
|
|
1333
|
-
*
|
|
1334
|
-
* @type {
|
|
1594
|
+
* the aggregator target asset provided to transferOutAndCall
|
|
1595
|
+
* @type {string}
|
|
1335
1596
|
* @memberof ObservedTx
|
|
1336
1597
|
*/
|
|
1337
|
-
'
|
|
1598
|
+
'aggregator_target'?: string;
|
|
1338
1599
|
/**
|
|
1339
|
-
*
|
|
1340
|
-
* @type {
|
|
1600
|
+
* the aggregator target asset limit provided to transferOutAndCall
|
|
1601
|
+
* @type {string}
|
|
1341
1602
|
* @memberof ObservedTx
|
|
1342
1603
|
*/
|
|
1343
|
-
'
|
|
1604
|
+
'aggregator_target_limit'?: string;
|
|
1344
1605
|
/**
|
|
1345
|
-
*
|
|
1346
|
-
* @type {
|
|
1606
|
+
*
|
|
1607
|
+
* @type {Array<string>}
|
|
1347
1608
|
* @memberof ObservedTx
|
|
1348
1609
|
*/
|
|
1349
|
-
'
|
|
1610
|
+
'signers'?: Array<string>;
|
|
1350
1611
|
/**
|
|
1351
|
-
*
|
|
1352
|
-
* @type {
|
|
1612
|
+
*
|
|
1613
|
+
* @type {number}
|
|
1353
1614
|
* @memberof ObservedTx
|
|
1354
1615
|
*/
|
|
1355
|
-
'
|
|
1616
|
+
'keysign_ms'?: number;
|
|
1356
1617
|
/**
|
|
1357
|
-
*
|
|
1358
|
-
* @type {string}
|
|
1618
|
+
*
|
|
1619
|
+
* @type {Array<string>}
|
|
1359
1620
|
* @memberof ObservedTx
|
|
1360
1621
|
*/
|
|
1361
|
-
'
|
|
1622
|
+
'out_hashes'?: Array<string>;
|
|
1362
1623
|
/**
|
|
1363
|
-
*
|
|
1624
|
+
*
|
|
1364
1625
|
* @type {string}
|
|
1365
1626
|
* @memberof ObservedTx
|
|
1366
1627
|
*/
|
|
1367
|
-
'
|
|
1628
|
+
'status'?: ObservedTxStatusEnum;
|
|
1368
1629
|
}
|
|
1369
1630
|
export declare const ObservedTxStatusEnum: {
|
|
1370
1631
|
readonly Done: "done";
|
|
@@ -2441,13 +2702,6 @@ export interface ThornameAlias {
|
|
|
2441
2702
|
*/
|
|
2442
2703
|
'address'?: string;
|
|
2443
2704
|
}
|
|
2444
|
-
/**
|
|
2445
|
-
*
|
|
2446
|
-
* @export
|
|
2447
|
-
* @interface ThornameResponse
|
|
2448
|
-
*/
|
|
2449
|
-
export interface ThornameResponse extends Array<Thorname> {
|
|
2450
|
-
}
|
|
2451
2705
|
/**
|
|
2452
2706
|
*
|
|
2453
2707
|
* @export
|
|
@@ -3113,7 +3367,7 @@ export interface Vault {
|
|
|
3113
3367
|
* @type {string}
|
|
3114
3368
|
* @memberof Vault
|
|
3115
3369
|
*/
|
|
3116
|
-
'status'
|
|
3370
|
+
'status': string;
|
|
3117
3371
|
/**
|
|
3118
3372
|
*
|
|
3119
3373
|
* @type {number}
|
|
@@ -3294,6 +3548,61 @@ export interface VersionResponse {
|
|
|
3294
3548
|
*/
|
|
3295
3549
|
'querier': string;
|
|
3296
3550
|
}
|
|
3551
|
+
/**
|
|
3552
|
+
* BlockApi - axios parameter creator
|
|
3553
|
+
* @export
|
|
3554
|
+
*/
|
|
3555
|
+
export declare const BlockApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
3556
|
+
/**
|
|
3557
|
+
* Returns verbose details of the block.
|
|
3558
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
3559
|
+
* @param {*} [options] Override http request option.
|
|
3560
|
+
* @throws {RequiredError}
|
|
3561
|
+
*/
|
|
3562
|
+
block: (height?: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3563
|
+
};
|
|
3564
|
+
/**
|
|
3565
|
+
* BlockApi - functional programming interface
|
|
3566
|
+
* @export
|
|
3567
|
+
*/
|
|
3568
|
+
export declare const BlockApiFp: (configuration?: Configuration) => {
|
|
3569
|
+
/**
|
|
3570
|
+
* Returns verbose details of the block.
|
|
3571
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
3572
|
+
* @param {*} [options] Override http request option.
|
|
3573
|
+
* @throws {RequiredError}
|
|
3574
|
+
*/
|
|
3575
|
+
block(height?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BlockResponse>>;
|
|
3576
|
+
};
|
|
3577
|
+
/**
|
|
3578
|
+
* BlockApi - factory interface
|
|
3579
|
+
* @export
|
|
3580
|
+
*/
|
|
3581
|
+
export declare const BlockApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
3582
|
+
/**
|
|
3583
|
+
* Returns verbose details of the block.
|
|
3584
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
3585
|
+
* @param {*} [options] Override http request option.
|
|
3586
|
+
* @throws {RequiredError}
|
|
3587
|
+
*/
|
|
3588
|
+
block(height?: number, options?: any): AxiosPromise<BlockResponse>;
|
|
3589
|
+
};
|
|
3590
|
+
/**
|
|
3591
|
+
* BlockApi - object-oriented interface
|
|
3592
|
+
* @export
|
|
3593
|
+
* @class BlockApi
|
|
3594
|
+
* @extends {BaseAPI}
|
|
3595
|
+
*/
|
|
3596
|
+
export declare class BlockApi extends BaseAPI {
|
|
3597
|
+
/**
|
|
3598
|
+
* Returns verbose details of the block.
|
|
3599
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
3600
|
+
* @param {*} [options] Override http request option.
|
|
3601
|
+
* @throws {RequiredError}
|
|
3602
|
+
* @memberof BlockApi
|
|
3603
|
+
*/
|
|
3604
|
+
block(height?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<BlockResponse, any>>;
|
|
3605
|
+
}
|
|
3297
3606
|
/**
|
|
3298
3607
|
* BorrowersApi - axios parameter creator
|
|
3299
3608
|
* @export
|
|
@@ -5144,7 +5453,7 @@ export declare const ThornamesApiFp: (configuration?: Configuration) => {
|
|
|
5144
5453
|
* @param {*} [options] Override http request option.
|
|
5145
5454
|
* @throws {RequiredError}
|
|
5146
5455
|
*/
|
|
5147
|
-
thorname(name: string, height?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
5456
|
+
thorname(name: string, height?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Thorname>>;
|
|
5148
5457
|
};
|
|
5149
5458
|
/**
|
|
5150
5459
|
* ThornamesApi - factory interface
|
|
@@ -5158,7 +5467,7 @@ export declare const ThornamesApiFactory: (configuration?: Configuration, basePa
|
|
|
5158
5467
|
* @param {*} [options] Override http request option.
|
|
5159
5468
|
* @throws {RequiredError}
|
|
5160
5469
|
*/
|
|
5161
|
-
thorname(name: string, height?: number, options?: any): AxiosPromise<
|
|
5470
|
+
thorname(name: string, height?: number, options?: any): AxiosPromise<Thorname>;
|
|
5162
5471
|
};
|
|
5163
5472
|
/**
|
|
5164
5473
|
* ThornamesApi - object-oriented interface
|
|
@@ -5175,7 +5484,7 @@ export declare class ThornamesApi extends BaseAPI {
|
|
|
5175
5484
|
* @throws {RequiredError}
|
|
5176
5485
|
* @memberof ThornamesApi
|
|
5177
5486
|
*/
|
|
5178
|
-
thorname(name: string, height?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
5487
|
+
thorname(name: string, height?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Thorname, any>>;
|
|
5179
5488
|
}
|
|
5180
5489
|
/**
|
|
5181
5490
|
* TransactionsApi - axios parameter creator
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Thornode API
|
|
3
3
|
* Thornode REST API.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.122.0
|
|
6
6
|
* Contact: devs@thorchain.org
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Thornode API
|
|
3
3
|
* Thornode REST API.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.122.0
|
|
6
6
|
* Contact: devs@thorchain.org
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Thornode API
|
|
3
3
|
* Thornode REST API.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.122.0
|
|
6
6
|
* Contact: devs@thorchain.org
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Thornode API
|
|
3
3
|
* Thornode REST API.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.122.0
|
|
6
6
|
* Contact: devs@thorchain.org
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/lib/index.esm.js
CHANGED
|
@@ -132,6 +132,99 @@ const VaultTypeEnum = {
|
|
|
132
132
|
AsgardVault: 'AsgardVault',
|
|
133
133
|
YggdrasilVault: 'YggdrasilVault'
|
|
134
134
|
};
|
|
135
|
+
/**
|
|
136
|
+
* BlockApi - axios parameter creator
|
|
137
|
+
* @export
|
|
138
|
+
*/
|
|
139
|
+
const BlockApiAxiosParamCreator = function (configuration) {
|
|
140
|
+
return {
|
|
141
|
+
/**
|
|
142
|
+
* Returns verbose details of the block.
|
|
143
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
144
|
+
* @param {*} [options] Override http request option.
|
|
145
|
+
* @throws {RequiredError}
|
|
146
|
+
*/
|
|
147
|
+
block: (height, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
148
|
+
const localVarPath = `/thorchain/block`;
|
|
149
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
150
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
151
|
+
let baseOptions;
|
|
152
|
+
if (configuration) {
|
|
153
|
+
baseOptions = configuration.baseOptions;
|
|
154
|
+
}
|
|
155
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
156
|
+
const localVarHeaderParameter = {};
|
|
157
|
+
const localVarQueryParameter = {};
|
|
158
|
+
if (height !== undefined) {
|
|
159
|
+
localVarQueryParameter['height'] = height;
|
|
160
|
+
}
|
|
161
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
162
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
163
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
164
|
+
return {
|
|
165
|
+
url: toPathString(localVarUrlObj),
|
|
166
|
+
options: localVarRequestOptions,
|
|
167
|
+
};
|
|
168
|
+
}),
|
|
169
|
+
};
|
|
170
|
+
};
|
|
171
|
+
/**
|
|
172
|
+
* BlockApi - functional programming interface
|
|
173
|
+
* @export
|
|
174
|
+
*/
|
|
175
|
+
const BlockApiFp = function (configuration) {
|
|
176
|
+
const localVarAxiosParamCreator = BlockApiAxiosParamCreator(configuration);
|
|
177
|
+
return {
|
|
178
|
+
/**
|
|
179
|
+
* Returns verbose details of the block.
|
|
180
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
181
|
+
* @param {*} [options] Override http request option.
|
|
182
|
+
* @throws {RequiredError}
|
|
183
|
+
*/
|
|
184
|
+
block(height, options) {
|
|
185
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
186
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.block(height, options);
|
|
187
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
188
|
+
});
|
|
189
|
+
},
|
|
190
|
+
};
|
|
191
|
+
};
|
|
192
|
+
/**
|
|
193
|
+
* BlockApi - factory interface
|
|
194
|
+
* @export
|
|
195
|
+
*/
|
|
196
|
+
const BlockApiFactory = function (configuration, basePath, axios) {
|
|
197
|
+
const localVarFp = BlockApiFp(configuration);
|
|
198
|
+
return {
|
|
199
|
+
/**
|
|
200
|
+
* Returns verbose details of the block.
|
|
201
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
202
|
+
* @param {*} [options] Override http request option.
|
|
203
|
+
* @throws {RequiredError}
|
|
204
|
+
*/
|
|
205
|
+
block(height, options) {
|
|
206
|
+
return localVarFp.block(height, options).then((request) => request(axios, basePath));
|
|
207
|
+
},
|
|
208
|
+
};
|
|
209
|
+
};
|
|
210
|
+
/**
|
|
211
|
+
* BlockApi - object-oriented interface
|
|
212
|
+
* @export
|
|
213
|
+
* @class BlockApi
|
|
214
|
+
* @extends {BaseAPI}
|
|
215
|
+
*/
|
|
216
|
+
class BlockApi extends BaseAPI {
|
|
217
|
+
/**
|
|
218
|
+
* Returns verbose details of the block.
|
|
219
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
220
|
+
* @param {*} [options] Override http request option.
|
|
221
|
+
* @throws {RequiredError}
|
|
222
|
+
* @memberof BlockApi
|
|
223
|
+
*/
|
|
224
|
+
block(height, options) {
|
|
225
|
+
return BlockApiFp(this.configuration).block(height, options).then((request) => request(this.axios, this.basePath));
|
|
226
|
+
}
|
|
227
|
+
}
|
|
135
228
|
/**
|
|
136
229
|
* BorrowersApi - axios parameter creator
|
|
137
230
|
* @export
|
|
@@ -4274,7 +4367,7 @@ class VaultsApi extends BaseAPI {
|
|
|
4274
4367
|
* Thornode API
|
|
4275
4368
|
* Thornode REST API.
|
|
4276
4369
|
*
|
|
4277
|
-
* The version of the OpenAPI document: 1.
|
|
4370
|
+
* The version of the OpenAPI document: 1.122.0
|
|
4278
4371
|
* Contact: devs@thorchain.org
|
|
4279
4372
|
*
|
|
4280
4373
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4309,5 +4402,5 @@ class Configuration {
|
|
|
4309
4402
|
|
|
4310
4403
|
const THORNODE_API_9R_URL = 'https://thornode.ninerealms.com/';
|
|
4311
4404
|
|
|
4312
|
-
export { BorrowersApi, BorrowersApiAxiosParamCreator, BorrowersApiFactory, BorrowersApiFp, Configuration, HealthApi, HealthApiAxiosParamCreator, HealthApiFactory, HealthApiFp, InvariantsApi, InvariantsApiAxiosParamCreator, InvariantsApiFactory, InvariantsApiFp, LiquidityProvidersApi, LiquidityProvidersApiAxiosParamCreator, LiquidityProvidersApiFactory, LiquidityProvidersApiFp, MimirApi, MimirApiAxiosParamCreator, MimirApiFactory, MimirApiFp, NetworkApi, NetworkApiAxiosParamCreator, NetworkApiFactory, NetworkApiFp, NodeStatusEnum, NodesApi, NodesApiAxiosParamCreator, NodesApiFactory, NodesApiFp, ObservedTxStatusEnum, POLApi, POLApiAxiosParamCreator, POLApiFactory, POLApiFp, PoolsApi, PoolsApiAxiosParamCreator, PoolsApiFactory, PoolsApiFp, QueueApi, QueueApiAxiosParamCreator, QueueApiFactory, QueueApiFp, QuoteApi, QuoteApiAxiosParamCreator, QuoteApiFactory, QuoteApiFp, SaversApi, SaversApiAxiosParamCreator, SaversApiFactory, SaversApiFp, StreamingSwapApi, StreamingSwapApiAxiosParamCreator, StreamingSwapApiFactory, StreamingSwapApiFp, THORNODE_API_9R_URL, TSSApi, TSSApiAxiosParamCreator, TSSApiFactory, TSSApiFp, ThornamesApi, ThornamesApiAxiosParamCreator, ThornamesApiFactory, ThornamesApiFp, TransactionsApi, TransactionsApiAxiosParamCreator, TransactionsApiFactory, TransactionsApiFp, VaultTypeEnum, VaultsApi, VaultsApiAxiosParamCreator, VaultsApiFactory, VaultsApiFp };
|
|
4405
|
+
export { BlockApi, BlockApiAxiosParamCreator, BlockApiFactory, BlockApiFp, BorrowersApi, BorrowersApiAxiosParamCreator, BorrowersApiFactory, BorrowersApiFp, Configuration, HealthApi, HealthApiAxiosParamCreator, HealthApiFactory, HealthApiFp, InvariantsApi, InvariantsApiAxiosParamCreator, InvariantsApiFactory, InvariantsApiFp, LiquidityProvidersApi, LiquidityProvidersApiAxiosParamCreator, LiquidityProvidersApiFactory, LiquidityProvidersApiFp, MimirApi, MimirApiAxiosParamCreator, MimirApiFactory, MimirApiFp, NetworkApi, NetworkApiAxiosParamCreator, NetworkApiFactory, NetworkApiFp, NodeStatusEnum, NodesApi, NodesApiAxiosParamCreator, NodesApiFactory, NodesApiFp, ObservedTxStatusEnum, POLApi, POLApiAxiosParamCreator, POLApiFactory, POLApiFp, PoolsApi, PoolsApiAxiosParamCreator, PoolsApiFactory, PoolsApiFp, QueueApi, QueueApiAxiosParamCreator, QueueApiFactory, QueueApiFp, QuoteApi, QuoteApiAxiosParamCreator, QuoteApiFactory, QuoteApiFp, SaversApi, SaversApiAxiosParamCreator, SaversApiFactory, SaversApiFp, StreamingSwapApi, StreamingSwapApiAxiosParamCreator, StreamingSwapApiFactory, StreamingSwapApiFp, THORNODE_API_9R_URL, TSSApi, TSSApiAxiosParamCreator, TSSApiFactory, TSSApiFp, ThornamesApi, ThornamesApiAxiosParamCreator, ThornamesApiFactory, ThornamesApiFp, TransactionsApi, TransactionsApiAxiosParamCreator, TransactionsApiFactory, TransactionsApiFp, VaultTypeEnum, VaultsApi, VaultsApiAxiosParamCreator, VaultsApiFactory, VaultsApiFp };
|
|
4313
4406
|
//# sourceMappingURL=index.esm.js.map
|