@xchainjs/xchain-thornode 0.1.3 → 0.1.5
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/README.md +22 -0
- package/lib/generated/thornodeApi/api.d.ts +160 -51
- 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 +1 -9
- package/lib/index.js +1 -9
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -28,6 +28,7 @@ Request data from MimirApi
|
|
|
28
28
|
console.log(mimirResponse.data)
|
|
29
29
|
|
|
30
30
|
```
|
|
31
|
+
|
|
31
32
|
## Example - set custom header
|
|
32
33
|
|
|
33
34
|
Request data from MimirApi
|
|
@@ -49,3 +50,24 @@ Request data from MimirApi
|
|
|
49
50
|
## Documentation
|
|
50
51
|
|
|
51
52
|
[`Thornode NineRelms endpoint`](https://thornode.ninerealms.com/)
|
|
53
|
+
|
|
54
|
+
### Setting Headers for Nine Realms endpoints
|
|
55
|
+
|
|
56
|
+
If you plan on using the publically accessible endpoints provided by Nine Realms(listed below), ensure that you add a valid 'x-client-id' to all requests
|
|
57
|
+
|
|
58
|
+
- https://midgard.ninerealms.com
|
|
59
|
+
- https://haskoin.ninerealms.com (BTC/BCH/LTC)
|
|
60
|
+
- https://thornode.ninerealms.com
|
|
61
|
+
|
|
62
|
+
Example
|
|
63
|
+
|
|
64
|
+
```typescript
|
|
65
|
+
import cosmosclient from '@cosmos-client/core'
|
|
66
|
+
import axios from 'axios'
|
|
67
|
+
import { register9Rheader } from '@xchainjs/xchain-util'
|
|
68
|
+
|
|
69
|
+
register9Rheader(axios)
|
|
70
|
+
register9Rheader(cosmosclient.config.globalAxios)
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
For a complete example please see this [test](https://github.com/xchainjs/xchainjs-lib/blob/master/packages/xchain-thorchain-amm/__e2e__/wallet.e2e.ts)
|
|
@@ -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.101.0
|
|
6
6
|
* Contact: devs@thorchain.org
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -92,7 +92,7 @@ export interface ConstantsResponse {
|
|
|
92
92
|
* @type {{ [key: string]: string; }}
|
|
93
93
|
* @memberof ConstantsResponse
|
|
94
94
|
*/
|
|
95
|
-
'
|
|
95
|
+
'int_64_values'?: {
|
|
96
96
|
[key: string]: string;
|
|
97
97
|
};
|
|
98
98
|
/**
|
|
@@ -384,7 +384,7 @@ export interface LiquidityProvider {
|
|
|
384
384
|
* @type {string}
|
|
385
385
|
* @memberof LiquidityProvider
|
|
386
386
|
*/
|
|
387
|
-
'
|
|
387
|
+
'pending_tx_id'?: string;
|
|
388
388
|
/**
|
|
389
389
|
*
|
|
390
390
|
* @type {string}
|
|
@@ -397,13 +397,116 @@ export interface LiquidityProvider {
|
|
|
397
397
|
* @memberof LiquidityProvider
|
|
398
398
|
*/
|
|
399
399
|
'asset_deposit_value': string;
|
|
400
|
+
/**
|
|
401
|
+
*
|
|
402
|
+
* @type {string}
|
|
403
|
+
* @memberof LiquidityProvider
|
|
404
|
+
*/
|
|
405
|
+
'rune_redeem_value': string;
|
|
406
|
+
/**
|
|
407
|
+
*
|
|
408
|
+
* @type {string}
|
|
409
|
+
* @memberof LiquidityProvider
|
|
410
|
+
*/
|
|
411
|
+
'asset_redeem_value': string;
|
|
412
|
+
/**
|
|
413
|
+
*
|
|
414
|
+
* @type {string}
|
|
415
|
+
* @memberof LiquidityProvider
|
|
416
|
+
*/
|
|
417
|
+
'luvi_deposit_value': string;
|
|
418
|
+
/**
|
|
419
|
+
*
|
|
420
|
+
* @type {string}
|
|
421
|
+
* @memberof LiquidityProvider
|
|
422
|
+
*/
|
|
423
|
+
'luvi_redeem_value': string;
|
|
424
|
+
/**
|
|
425
|
+
*
|
|
426
|
+
* @type {string}
|
|
427
|
+
* @memberof LiquidityProvider
|
|
428
|
+
*/
|
|
429
|
+
'luvi_growth_pct': string;
|
|
430
|
+
}
|
|
431
|
+
/**
|
|
432
|
+
*
|
|
433
|
+
* @export
|
|
434
|
+
* @interface LiquidityProviderSummary
|
|
435
|
+
*/
|
|
436
|
+
export interface LiquidityProviderSummary {
|
|
437
|
+
/**
|
|
438
|
+
*
|
|
439
|
+
* @type {string}
|
|
440
|
+
* @memberof LiquidityProviderSummary
|
|
441
|
+
*/
|
|
442
|
+
'asset': string;
|
|
443
|
+
/**
|
|
444
|
+
*
|
|
445
|
+
* @type {string}
|
|
446
|
+
* @memberof LiquidityProviderSummary
|
|
447
|
+
*/
|
|
448
|
+
'rune_address'?: string;
|
|
449
|
+
/**
|
|
450
|
+
*
|
|
451
|
+
* @type {string}
|
|
452
|
+
* @memberof LiquidityProviderSummary
|
|
453
|
+
*/
|
|
454
|
+
'asset_address'?: string;
|
|
455
|
+
/**
|
|
456
|
+
*
|
|
457
|
+
* @type {number}
|
|
458
|
+
* @memberof LiquidityProviderSummary
|
|
459
|
+
*/
|
|
460
|
+
'last_add_height'?: number;
|
|
461
|
+
/**
|
|
462
|
+
*
|
|
463
|
+
* @type {number}
|
|
464
|
+
* @memberof LiquidityProviderSummary
|
|
465
|
+
*/
|
|
466
|
+
'last_withdraw_height'?: number;
|
|
467
|
+
/**
|
|
468
|
+
*
|
|
469
|
+
* @type {string}
|
|
470
|
+
* @memberof LiquidityProviderSummary
|
|
471
|
+
*/
|
|
472
|
+
'units': string;
|
|
473
|
+
/**
|
|
474
|
+
*
|
|
475
|
+
* @type {string}
|
|
476
|
+
* @memberof LiquidityProviderSummary
|
|
477
|
+
*/
|
|
478
|
+
'pending_rune': string;
|
|
479
|
+
/**
|
|
480
|
+
*
|
|
481
|
+
* @type {string}
|
|
482
|
+
* @memberof LiquidityProviderSummary
|
|
483
|
+
*/
|
|
484
|
+
'pending_asset': string;
|
|
485
|
+
/**
|
|
486
|
+
*
|
|
487
|
+
* @type {string}
|
|
488
|
+
* @memberof LiquidityProviderSummary
|
|
489
|
+
*/
|
|
490
|
+
'pending_tx_id'?: string;
|
|
491
|
+
/**
|
|
492
|
+
*
|
|
493
|
+
* @type {string}
|
|
494
|
+
* @memberof LiquidityProviderSummary
|
|
495
|
+
*/
|
|
496
|
+
'rune_deposit_value': string;
|
|
497
|
+
/**
|
|
498
|
+
*
|
|
499
|
+
* @type {string}
|
|
500
|
+
* @memberof LiquidityProviderSummary
|
|
501
|
+
*/
|
|
502
|
+
'asset_deposit_value': string;
|
|
400
503
|
}
|
|
401
504
|
/**
|
|
402
505
|
*
|
|
403
506
|
* @export
|
|
404
|
-
* @interface
|
|
507
|
+
* @interface LiquidityProvidersResponse
|
|
405
508
|
*/
|
|
406
|
-
export interface
|
|
509
|
+
export interface LiquidityProvidersResponse extends Array<LiquidityProviderSummary> {
|
|
407
510
|
}
|
|
408
511
|
/**
|
|
409
512
|
*
|
|
@@ -483,29 +586,35 @@ export interface NetworkResponse {
|
|
|
483
586
|
*/
|
|
484
587
|
'bond_reward_rune': string;
|
|
485
588
|
/**
|
|
486
|
-
* total
|
|
589
|
+
* total of burned BEP2 RUNE
|
|
487
590
|
* @type {string}
|
|
488
591
|
* @memberof NetworkResponse
|
|
489
592
|
*/
|
|
490
|
-
'
|
|
593
|
+
'burned_bep_2_rune': string;
|
|
491
594
|
/**
|
|
492
|
-
* total
|
|
595
|
+
* total of burned ERC20 RUNE
|
|
493
596
|
* @type {string}
|
|
494
597
|
* @memberof NetworkResponse
|
|
495
598
|
*/
|
|
496
|
-
'
|
|
599
|
+
'burned_erc_20_rune': string;
|
|
497
600
|
/**
|
|
498
|
-
* total
|
|
601
|
+
* total bonded RUNE
|
|
499
602
|
* @type {string}
|
|
500
603
|
* @memberof NetworkResponse
|
|
501
604
|
*/
|
|
502
|
-
'
|
|
605
|
+
'total_bond_units': string;
|
|
503
606
|
/**
|
|
504
|
-
* total
|
|
607
|
+
* total reserve RUNE
|
|
505
608
|
* @type {string}
|
|
506
609
|
* @memberof NetworkResponse
|
|
507
610
|
*/
|
|
508
|
-
'
|
|
611
|
+
'total_reserve': string;
|
|
612
|
+
/**
|
|
613
|
+
* Returns true if there exist RetiringVaults which have not finished migrating funds to new ActiveVaults
|
|
614
|
+
* @type {boolean}
|
|
615
|
+
* @memberof NetworkResponse
|
|
616
|
+
*/
|
|
617
|
+
'vaults_migrating': boolean;
|
|
509
618
|
}
|
|
510
619
|
/**
|
|
511
620
|
*
|
|
@@ -538,29 +647,35 @@ export interface Node {
|
|
|
538
647
|
*/
|
|
539
648
|
'validator_cons_pub_key': string;
|
|
540
649
|
/**
|
|
541
|
-
*
|
|
542
|
-
* @type {
|
|
650
|
+
* the block height at which the node became active
|
|
651
|
+
* @type {number}
|
|
543
652
|
* @memberof Node
|
|
544
653
|
*/
|
|
545
|
-
'
|
|
654
|
+
'active_block_height': number;
|
|
546
655
|
/**
|
|
547
|
-
* the block height
|
|
656
|
+
* the block height of the current provided information for the node
|
|
548
657
|
* @type {number}
|
|
549
658
|
* @memberof Node
|
|
550
659
|
*/
|
|
551
|
-
'
|
|
660
|
+
'status_since': number;
|
|
552
661
|
/**
|
|
553
662
|
*
|
|
554
663
|
* @type {string}
|
|
555
664
|
* @memberof Node
|
|
556
665
|
*/
|
|
557
|
-
'
|
|
666
|
+
'node_operator_address': string;
|
|
558
667
|
/**
|
|
559
|
-
*
|
|
560
|
-
* @type {
|
|
668
|
+
* current node bond
|
|
669
|
+
* @type {string}
|
|
561
670
|
* @memberof Node
|
|
562
671
|
*/
|
|
563
|
-
'
|
|
672
|
+
'total_bond': string;
|
|
673
|
+
/**
|
|
674
|
+
*
|
|
675
|
+
* @type {NodeBondProviders}
|
|
676
|
+
* @memberof Node
|
|
677
|
+
*/
|
|
678
|
+
'bond_providers': NodeBondProviders;
|
|
564
679
|
/**
|
|
565
680
|
* the set of vault public keys of which the node is a member
|
|
566
681
|
* @type {Array<string>}
|
|
@@ -627,12 +742,6 @@ export interface Node {
|
|
|
627
742
|
* @memberof Node
|
|
628
743
|
*/
|
|
629
744
|
'preflight_status': NodePreflightStatus;
|
|
630
|
-
/**
|
|
631
|
-
*
|
|
632
|
-
* @type {NodeBondProviders}
|
|
633
|
-
* @memberof Node
|
|
634
|
-
*/
|
|
635
|
-
'bond_providers': NodeBondProviders;
|
|
636
745
|
}
|
|
637
746
|
export declare const NodeStatusEnum: {
|
|
638
747
|
readonly Active: "Active";
|
|
@@ -667,13 +776,7 @@ export interface NodeBondProvider {
|
|
|
667
776
|
*/
|
|
668
777
|
export interface NodeBondProviders {
|
|
669
778
|
/**
|
|
670
|
-
*
|
|
671
|
-
* @type {string}
|
|
672
|
-
* @memberof NodeBondProviders
|
|
673
|
-
*/
|
|
674
|
-
'node_address'?: string;
|
|
675
|
-
/**
|
|
676
|
-
*
|
|
779
|
+
* node operator fee in basis points
|
|
677
780
|
* @type {string}
|
|
678
781
|
* @memberof NodeBondProviders
|
|
679
782
|
*/
|
|
@@ -691,12 +794,6 @@ export interface NodeBondProviders {
|
|
|
691
794
|
* @interface NodeJail
|
|
692
795
|
*/
|
|
693
796
|
export interface NodeJail {
|
|
694
|
-
/**
|
|
695
|
-
*
|
|
696
|
-
* @type {string}
|
|
697
|
-
* @memberof NodeJail
|
|
698
|
-
*/
|
|
699
|
-
'node_address'?: string;
|
|
700
797
|
/**
|
|
701
798
|
*
|
|
702
799
|
* @type {number}
|
|
@@ -1276,6 +1373,18 @@ export interface Saver {
|
|
|
1276
1373
|
* @memberof Saver
|
|
1277
1374
|
*/
|
|
1278
1375
|
'asset_deposit_value': string;
|
|
1376
|
+
/**
|
|
1377
|
+
*
|
|
1378
|
+
* @type {string}
|
|
1379
|
+
* @memberof Saver
|
|
1380
|
+
*/
|
|
1381
|
+
'asset_redeem_value': string;
|
|
1382
|
+
/**
|
|
1383
|
+
*
|
|
1384
|
+
* @type {string}
|
|
1385
|
+
* @memberof Saver
|
|
1386
|
+
*/
|
|
1387
|
+
'growth_pct': string;
|
|
1279
1388
|
}
|
|
1280
1389
|
/**
|
|
1281
1390
|
*
|
|
@@ -1559,16 +1668,16 @@ export interface TxSignersResponse {
|
|
|
1559
1668
|
'txs': Array<ObservedTx>;
|
|
1560
1669
|
/**
|
|
1561
1670
|
*
|
|
1562
|
-
* @type {Array<
|
|
1671
|
+
* @type {Array<TxOutItem>}
|
|
1563
1672
|
* @memberof TxSignersResponse
|
|
1564
1673
|
*/
|
|
1565
|
-
'actions': Array<
|
|
1674
|
+
'actions': Array<TxOutItem>;
|
|
1566
1675
|
/**
|
|
1567
1676
|
*
|
|
1568
|
-
* @type {Array<
|
|
1677
|
+
* @type {Array<Tx>}
|
|
1569
1678
|
* @memberof TxSignersResponse
|
|
1570
1679
|
*/
|
|
1571
|
-
'out_txs': Array<
|
|
1680
|
+
'out_txs': Array<Tx>;
|
|
1572
1681
|
/**
|
|
1573
1682
|
* the thorchain height at which the outbound was finalised
|
|
1574
1683
|
* @type {number}
|
|
@@ -1879,7 +1988,7 @@ export declare const LiquidityProvidersApiFp: (configuration?: Configuration | u
|
|
|
1879
1988
|
* @param {*} [options] Override http request option.
|
|
1880
1989
|
* @throws {RequiredError}
|
|
1881
1990
|
*/
|
|
1882
|
-
liquidityProvider(asset: string, address: string, height?: number | undefined, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<
|
|
1991
|
+
liquidityProvider(asset: string, address: string, height?: number | undefined, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<LiquidityProvider>>;
|
|
1883
1992
|
/**
|
|
1884
1993
|
* Returns all liquidity provider information for an asset.
|
|
1885
1994
|
* @param {string} asset
|
|
@@ -1887,7 +1996,7 @@ export declare const LiquidityProvidersApiFp: (configuration?: Configuration | u
|
|
|
1887
1996
|
* @param {*} [options] Override http request option.
|
|
1888
1997
|
* @throws {RequiredError}
|
|
1889
1998
|
*/
|
|
1890
|
-
liquidityProviders(asset: string, height?: number | undefined, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<
|
|
1999
|
+
liquidityProviders(asset: string, height?: number | undefined, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<LiquidityProvidersResponse>>;
|
|
1891
2000
|
};
|
|
1892
2001
|
/**
|
|
1893
2002
|
* LiquidityProvidersApi - factory interface
|
|
@@ -1902,7 +2011,7 @@ export declare const LiquidityProvidersApiFactory: (configuration?: Configuratio
|
|
|
1902
2011
|
* @param {*} [options] Override http request option.
|
|
1903
2012
|
* @throws {RequiredError}
|
|
1904
2013
|
*/
|
|
1905
|
-
liquidityProvider(asset: string, address: string, height?: number | undefined, options?: any): AxiosPromise<
|
|
2014
|
+
liquidityProvider(asset: string, address: string, height?: number | undefined, options?: any): AxiosPromise<LiquidityProvider>;
|
|
1906
2015
|
/**
|
|
1907
2016
|
* Returns all liquidity provider information for an asset.
|
|
1908
2017
|
* @param {string} asset
|
|
@@ -1910,7 +2019,7 @@ export declare const LiquidityProvidersApiFactory: (configuration?: Configuratio
|
|
|
1910
2019
|
* @param {*} [options] Override http request option.
|
|
1911
2020
|
* @throws {RequiredError}
|
|
1912
2021
|
*/
|
|
1913
|
-
liquidityProviders(asset: string, height?: number | undefined, options?: any): AxiosPromise<
|
|
2022
|
+
liquidityProviders(asset: string, height?: number | undefined, options?: any): AxiosPromise<LiquidityProvidersResponse>;
|
|
1914
2023
|
};
|
|
1915
2024
|
/**
|
|
1916
2025
|
* LiquidityProvidersApi - object-oriented interface
|
|
@@ -1928,7 +2037,7 @@ export declare class LiquidityProvidersApi extends BaseAPI {
|
|
|
1928
2037
|
* @throws {RequiredError}
|
|
1929
2038
|
* @memberof LiquidityProvidersApi
|
|
1930
2039
|
*/
|
|
1931
|
-
liquidityProvider(asset: string, address: string, height?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
2040
|
+
liquidityProvider(asset: string, address: string, height?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<LiquidityProvider, any>>;
|
|
1932
2041
|
/**
|
|
1933
2042
|
* Returns all liquidity provider information for an asset.
|
|
1934
2043
|
* @param {string} asset
|
|
@@ -1937,7 +2046,7 @@ export declare class LiquidityProvidersApi extends BaseAPI {
|
|
|
1937
2046
|
* @throws {RequiredError}
|
|
1938
2047
|
* @memberof LiquidityProvidersApi
|
|
1939
2048
|
*/
|
|
1940
|
-
liquidityProviders(asset: string, height?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
2049
|
+
liquidityProviders(asset: string, height?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<LiquidityProvidersResponse, any>>;
|
|
1941
2050
|
}
|
|
1942
2051
|
/**
|
|
1943
2052
|
* MimirApi - 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.101.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.101.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.101.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.101.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
|
@@ -39,14 +39,6 @@ class BaseAPI {
|
|
|
39
39
|
if (configuration) {
|
|
40
40
|
this.configuration = configuration;
|
|
41
41
|
this.basePath = configuration.basePath || this.basePath;
|
|
42
|
-
if (this.basePath.includes('thornode.ninerealms.com')) {
|
|
43
|
-
if (!this.configuration.baseOptions)
|
|
44
|
-
this.configuration.baseOptions = {};
|
|
45
|
-
if (!this.configuration.baseOptions.headers)
|
|
46
|
-
this.configuration.baseOptions.headers = {};
|
|
47
|
-
if (!this.configuration.baseOptions.headers['x-client-id'])
|
|
48
|
-
this.configuration.baseOptions.headers['x-client-id'] = 'xchainjs-client';
|
|
49
|
-
}
|
|
50
42
|
}
|
|
51
43
|
}
|
|
52
44
|
}
|
|
@@ -3186,7 +3178,7 @@ class VaultsApi extends BaseAPI {
|
|
|
3186
3178
|
* Thornode API
|
|
3187
3179
|
* Thornode REST API.
|
|
3188
3180
|
*
|
|
3189
|
-
* The version of the OpenAPI document: 1.
|
|
3181
|
+
* The version of the OpenAPI document: 1.101.0
|
|
3190
3182
|
* Contact: devs@thorchain.org
|
|
3191
3183
|
*
|
|
3192
3184
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/lib/index.js
CHANGED
|
@@ -47,14 +47,6 @@ class BaseAPI {
|
|
|
47
47
|
if (configuration) {
|
|
48
48
|
this.configuration = configuration;
|
|
49
49
|
this.basePath = configuration.basePath || this.basePath;
|
|
50
|
-
if (this.basePath.includes('thornode.ninerealms.com')) {
|
|
51
|
-
if (!this.configuration.baseOptions)
|
|
52
|
-
this.configuration.baseOptions = {};
|
|
53
|
-
if (!this.configuration.baseOptions.headers)
|
|
54
|
-
this.configuration.baseOptions.headers = {};
|
|
55
|
-
if (!this.configuration.baseOptions.headers['x-client-id'])
|
|
56
|
-
this.configuration.baseOptions.headers['x-client-id'] = 'xchainjs-client';
|
|
57
|
-
}
|
|
58
50
|
}
|
|
59
51
|
}
|
|
60
52
|
}
|
|
@@ -3194,7 +3186,7 @@ class VaultsApi extends BaseAPI {
|
|
|
3194
3186
|
* Thornode API
|
|
3195
3187
|
* Thornode REST API.
|
|
3196
3188
|
*
|
|
3197
|
-
* The version of the OpenAPI document: 1.
|
|
3189
|
+
* The version of the OpenAPI document: 1.101.0
|
|
3198
3190
|
* Contact: devs@thorchain.org
|
|
3199
3191
|
*
|
|
3200
3192
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xchainjs/xchain-thornode",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Thornode module that exposes all thornode functions using openapi-generator-cli",
|
|
6
6
|
"keywords": [
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"lint": "eslint \"{src,__tests__}/**/*.ts\" --fix --max-warnings 0",
|
|
30
30
|
"prepublishOnly": "yarn run build",
|
|
31
31
|
"test": "jest --passWithNoTests",
|
|
32
|
-
"generate:types": "yarn clean:types:thornode && yarn generate:types:thornode
|
|
33
|
-
"generate:types:thornode": "TS_POST_PROCESS_FILE=./node_modules/.bin/prettier openapi-generator-cli generate -i https://gitlab.com/thorchain/thornode/-/raw/release-1.
|
|
32
|
+
"generate:types": "yarn clean:types:thornode && yarn generate:types:thornode",
|
|
33
|
+
"generate:types:thornode": "TS_POST_PROCESS_FILE=./node_modules/.bin/prettier openapi-generator-cli generate -i https://gitlab.com/thorchain/thornode/-/raw/release-1.101.0/openapi/openapi.yaml -g typescript-axios -o ./src/generated/thornodeApi --skip-validate-spec --generate-alias-as-model",
|
|
34
34
|
"clean:types:thornode": "rimraf ./src/generated/thornodeApi"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|