@xchainjs/xchain-thornode 0.3.9 → 0.3.10
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 +261 -21
- 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 +174 -15
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +177 -14
- package/lib/index.js.map +1 -1
- package/package.json +3 -3
|
@@ -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.126.0
|
|
6
6
|
* Contact: devs@thorchain.org
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -116,7 +116,7 @@ export interface BaseQuoteResponse {
|
|
|
116
116
|
*/
|
|
117
117
|
'notes'?: string;
|
|
118
118
|
/**
|
|
119
|
-
* Defines the minimum transaction size for the chain in base units (sats, wei, uatom).
|
|
119
|
+
* Defines the minimum transaction size for the chain in base units (sats, wei, uatom). Transactions with asset amounts lower than the dust_threshold are ignored.
|
|
120
120
|
* @type {string}
|
|
121
121
|
* @memberof BaseQuoteResponse
|
|
122
122
|
*/
|
|
@@ -1074,6 +1074,43 @@ export interface MimirNodesResponse {
|
|
|
1074
1074
|
export interface MimirResponse {
|
|
1075
1075
|
[key: string]: string;
|
|
1076
1076
|
}
|
|
1077
|
+
/**
|
|
1078
|
+
*
|
|
1079
|
+
* @export
|
|
1080
|
+
* @interface MimirV2IDsResponse
|
|
1081
|
+
*/
|
|
1082
|
+
export interface MimirV2IDsResponse {
|
|
1083
|
+
/**
|
|
1084
|
+
*
|
|
1085
|
+
* @type {number}
|
|
1086
|
+
* @memberof MimirV2IDsResponse
|
|
1087
|
+
*/
|
|
1088
|
+
'id'?: number;
|
|
1089
|
+
/**
|
|
1090
|
+
*
|
|
1091
|
+
* @type {string}
|
|
1092
|
+
* @memberof MimirV2IDsResponse
|
|
1093
|
+
*/
|
|
1094
|
+
'name'?: string;
|
|
1095
|
+
/**
|
|
1096
|
+
*
|
|
1097
|
+
* @type {string}
|
|
1098
|
+
* @memberof MimirV2IDsResponse
|
|
1099
|
+
*/
|
|
1100
|
+
'legacy_key'?: string;
|
|
1101
|
+
/**
|
|
1102
|
+
*
|
|
1103
|
+
* @type {string}
|
|
1104
|
+
* @memberof MimirV2IDsResponse
|
|
1105
|
+
*/
|
|
1106
|
+
'vote_key'?: string;
|
|
1107
|
+
/**
|
|
1108
|
+
*
|
|
1109
|
+
* @type {object}
|
|
1110
|
+
* @memberof MimirV2IDsResponse
|
|
1111
|
+
*/
|
|
1112
|
+
'votes'?: object;
|
|
1113
|
+
}
|
|
1077
1114
|
/**
|
|
1078
1115
|
*
|
|
1079
1116
|
* @export
|
|
@@ -1390,7 +1427,7 @@ export interface Node {
|
|
|
1390
1427
|
*/
|
|
1391
1428
|
'version': string;
|
|
1392
1429
|
/**
|
|
1393
|
-
* the
|
|
1430
|
+
* the accumulated slash points, reset at churn but excessive slash points may carry over
|
|
1394
1431
|
* @type {number}
|
|
1395
1432
|
* @memberof Node
|
|
1396
1433
|
*/
|
|
@@ -1797,6 +1834,12 @@ export interface Pool {
|
|
|
1797
1834
|
* @memberof Pool
|
|
1798
1835
|
*/
|
|
1799
1836
|
'loan_collateral': string;
|
|
1837
|
+
/**
|
|
1838
|
+
* the amount of remaining collateral collects for loans
|
|
1839
|
+
* @type {string}
|
|
1840
|
+
* @memberof Pool
|
|
1841
|
+
*/
|
|
1842
|
+
'loan_collateral_remaining': string;
|
|
1800
1843
|
/**
|
|
1801
1844
|
* the current loan collateralization ratio
|
|
1802
1845
|
* @type {string}
|
|
@@ -1847,6 +1890,12 @@ export interface QueueResponse {
|
|
|
1847
1890
|
* @memberof QueueResponse
|
|
1848
1891
|
*/
|
|
1849
1892
|
'scheduled_outbound_value': string;
|
|
1893
|
+
/**
|
|
1894
|
+
* scheduled outbound clout in RUNE
|
|
1895
|
+
* @type {string}
|
|
1896
|
+
* @memberof QueueResponse
|
|
1897
|
+
*/
|
|
1898
|
+
'scheduled_outbound_clout': string;
|
|
1850
1899
|
}
|
|
1851
1900
|
/**
|
|
1852
1901
|
*
|
|
@@ -1976,7 +2025,7 @@ export interface QuoteLoanCloseResponse {
|
|
|
1976
2025
|
*/
|
|
1977
2026
|
'notes': string;
|
|
1978
2027
|
/**
|
|
1979
|
-
* Defines the minimum transaction size for the chain in base units (sats, wei, uatom).
|
|
2028
|
+
* Defines the minimum transaction size for the chain in base units (sats, wei, uatom). Transactions with asset amounts lower than the dust_threshold are ignored.
|
|
1980
2029
|
* @type {string}
|
|
1981
2030
|
* @memberof QuoteLoanCloseResponse
|
|
1982
2031
|
*/
|
|
@@ -1999,6 +2048,12 @@ export interface QuoteLoanCloseResponse {
|
|
|
1999
2048
|
* @memberof QuoteLoanCloseResponse
|
|
2000
2049
|
*/
|
|
2001
2050
|
'expected_amount_out': string;
|
|
2051
|
+
/**
|
|
2052
|
+
* The quantity of the repayment asset to be sent by the user, calculated as the desired percentage of the loan\'s value, expressed in units of 1e8
|
|
2053
|
+
* @type {string}
|
|
2054
|
+
* @memberof QuoteLoanCloseResponse
|
|
2055
|
+
*/
|
|
2056
|
+
'expected_amount_in': string;
|
|
2002
2057
|
/**
|
|
2003
2058
|
* the expected amount of collateral decrease on the loan
|
|
2004
2059
|
* @type {string}
|
|
@@ -2011,6 +2066,24 @@ export interface QuoteLoanCloseResponse {
|
|
|
2011
2066
|
* @memberof QuoteLoanCloseResponse
|
|
2012
2067
|
*/
|
|
2013
2068
|
'expected_debt_repaid': string;
|
|
2069
|
+
/**
|
|
2070
|
+
* The number of blocks involved in the streaming swaps during the repayment process.
|
|
2071
|
+
* @type {number}
|
|
2072
|
+
* @memberof QuoteLoanCloseResponse
|
|
2073
|
+
*/
|
|
2074
|
+
'streaming_swap_blocks': number;
|
|
2075
|
+
/**
|
|
2076
|
+
* The approximate number of seconds taken by the streaming swaps involved in the repayment process.
|
|
2077
|
+
* @type {number}
|
|
2078
|
+
* @memberof QuoteLoanCloseResponse
|
|
2079
|
+
*/
|
|
2080
|
+
'streaming_swap_seconds': number;
|
|
2081
|
+
/**
|
|
2082
|
+
* The total expected duration for a repayment, measured in seconds, which includes the time for inbound confirmation, the duration of streaming swaps, and any outbound delays.
|
|
2083
|
+
* @type {number}
|
|
2084
|
+
* @memberof QuoteLoanCloseResponse
|
|
2085
|
+
*/
|
|
2086
|
+
'total_repay_seconds': number;
|
|
2014
2087
|
}
|
|
2015
2088
|
/**
|
|
2016
2089
|
*
|
|
@@ -2091,7 +2164,7 @@ export interface QuoteLoanOpenResponse {
|
|
|
2091
2164
|
*/
|
|
2092
2165
|
'notes': string;
|
|
2093
2166
|
/**
|
|
2094
|
-
* Defines the minimum transaction size for the chain in base units (sats, wei, uatom).
|
|
2167
|
+
* Defines the minimum transaction size for the chain in base units (sats, wei, uatom). Transactions with asset amounts lower than the dust_threshold are ignored.
|
|
2095
2168
|
* @type {string}
|
|
2096
2169
|
* @memberof QuoteLoanOpenResponse
|
|
2097
2170
|
*/
|
|
@@ -2132,6 +2205,24 @@ export interface QuoteLoanOpenResponse {
|
|
|
2132
2205
|
* @memberof QuoteLoanOpenResponse
|
|
2133
2206
|
*/
|
|
2134
2207
|
'expected_debt_issued': string;
|
|
2208
|
+
/**
|
|
2209
|
+
* The number of blocks involved in the streaming swaps during the open loan process.
|
|
2210
|
+
* @type {number}
|
|
2211
|
+
* @memberof QuoteLoanOpenResponse
|
|
2212
|
+
*/
|
|
2213
|
+
'streaming_swap_blocks': number;
|
|
2214
|
+
/**
|
|
2215
|
+
* The approximate number of seconds taken by the streaming swaps involved in the open loan process.
|
|
2216
|
+
* @type {number}
|
|
2217
|
+
* @memberof QuoteLoanOpenResponse
|
|
2218
|
+
*/
|
|
2219
|
+
'streaming_swap_seconds': number;
|
|
2220
|
+
/**
|
|
2221
|
+
* The total expected duration for a open loan, measured in seconds, which includes the time for inbound confirmation, the duration of streaming swaps, and any outbound delays.
|
|
2222
|
+
* @type {number}
|
|
2223
|
+
* @memberof QuoteLoanOpenResponse
|
|
2224
|
+
*/
|
|
2225
|
+
'total_open_loan_seconds': number;
|
|
2135
2226
|
}
|
|
2136
2227
|
/**
|
|
2137
2228
|
*
|
|
@@ -2212,7 +2303,7 @@ export interface QuoteSaverDepositResponse {
|
|
|
2212
2303
|
*/
|
|
2213
2304
|
'notes': string;
|
|
2214
2305
|
/**
|
|
2215
|
-
* Defines the minimum transaction size for the chain in base units (sats, wei, uatom).
|
|
2306
|
+
* Defines the minimum transaction size for the chain in base units (sats, wei, uatom). Transactions with asset amounts lower than the dust_threshold are ignored.
|
|
2216
2307
|
* @type {string}
|
|
2217
2308
|
* @memberof QuoteSaverDepositResponse
|
|
2218
2309
|
*/
|
|
@@ -2321,7 +2412,7 @@ export interface QuoteSaverWithdrawResponse {
|
|
|
2321
2412
|
*/
|
|
2322
2413
|
'notes': string;
|
|
2323
2414
|
/**
|
|
2324
|
-
* Defines the minimum transaction size for the chain in base units (sats, wei, uatom).
|
|
2415
|
+
* Defines the minimum transaction size for the chain in base units (sats, wei, uatom). Transactions with asset amounts lower than the dust_threshold are ignored.
|
|
2325
2416
|
* @type {string}
|
|
2326
2417
|
* @memberof QuoteSaverWithdrawResponse
|
|
2327
2418
|
*/
|
|
@@ -2430,7 +2521,7 @@ export interface QuoteSwapResponse {
|
|
|
2430
2521
|
*/
|
|
2431
2522
|
'notes': string;
|
|
2432
2523
|
/**
|
|
2433
|
-
* Defines the minimum transaction size for the chain in base units (sats, wei, uatom).
|
|
2524
|
+
* Defines the minimum transaction size for the chain in base units (sats, wei, uatom). Transactions with asset amounts lower than the dust_threshold are ignored.
|
|
2434
2525
|
* @type {string}
|
|
2435
2526
|
* @memberof QuoteSwapResponse
|
|
2436
2527
|
*/
|
|
@@ -2460,7 +2551,7 @@ export interface QuoteSwapResponse {
|
|
|
2460
2551
|
*/
|
|
2461
2552
|
'expected_amount_out_streaming': string;
|
|
2462
2553
|
/**
|
|
2463
|
-
* the
|
|
2554
|
+
* the maximum amount of trades a streaming swap can do for a trade
|
|
2464
2555
|
* @type {number}
|
|
2465
2556
|
* @memberof QuoteSwapResponse
|
|
2466
2557
|
*/
|
|
@@ -2594,25 +2685,43 @@ export interface StreamingSwap {
|
|
|
2594
2685
|
* @type {string}
|
|
2595
2686
|
* @memberof StreamingSwap
|
|
2596
2687
|
*/
|
|
2597
|
-
'trade_target'
|
|
2688
|
+
'trade_target': string;
|
|
2689
|
+
/**
|
|
2690
|
+
* the asset to be swapped from
|
|
2691
|
+
* @type {string}
|
|
2692
|
+
* @memberof StreamingSwap
|
|
2693
|
+
*/
|
|
2694
|
+
'source_asset'?: string;
|
|
2695
|
+
/**
|
|
2696
|
+
* the asset to be swapped to
|
|
2697
|
+
* @type {string}
|
|
2698
|
+
* @memberof StreamingSwap
|
|
2699
|
+
*/
|
|
2700
|
+
'target_asset'?: string;
|
|
2701
|
+
/**
|
|
2702
|
+
* the destination address to receive the swap output
|
|
2703
|
+
* @type {string}
|
|
2704
|
+
* @memberof StreamingSwap
|
|
2705
|
+
*/
|
|
2706
|
+
'destination'?: string;
|
|
2598
2707
|
/**
|
|
2599
2708
|
* the number of input tokens the swapper has deposited
|
|
2600
2709
|
* @type {string}
|
|
2601
2710
|
* @memberof StreamingSwap
|
|
2602
2711
|
*/
|
|
2603
|
-
'deposit'
|
|
2712
|
+
'deposit': string;
|
|
2604
2713
|
/**
|
|
2605
2714
|
* the amount of input tokens that have been swapped so far
|
|
2606
2715
|
* @type {string}
|
|
2607
2716
|
* @memberof StreamingSwap
|
|
2608
2717
|
*/
|
|
2609
|
-
'in'
|
|
2718
|
+
'in': string;
|
|
2610
2719
|
/**
|
|
2611
2720
|
* the amount of output tokens that have been swapped so far
|
|
2612
2721
|
* @type {string}
|
|
2613
2722
|
* @memberof StreamingSwap
|
|
2614
2723
|
*/
|
|
2615
|
-
'out'
|
|
2724
|
+
'out': string;
|
|
2616
2725
|
/**
|
|
2617
2726
|
* the list of swap indexes that failed
|
|
2618
2727
|
* @type {Array<number>}
|
|
@@ -2640,6 +2749,49 @@ export interface StreamingSwapsResponse extends Array<StreamingSwap> {
|
|
|
2640
2749
|
*/
|
|
2641
2750
|
export interface SwapQueueResponse extends Array<MsgSwap> {
|
|
2642
2751
|
}
|
|
2752
|
+
/**
|
|
2753
|
+
*
|
|
2754
|
+
* @export
|
|
2755
|
+
* @interface SwapperCloutResponse
|
|
2756
|
+
*/
|
|
2757
|
+
export interface SwapperCloutResponse {
|
|
2758
|
+
/**
|
|
2759
|
+
* address associated with this clout account
|
|
2760
|
+
* @type {string}
|
|
2761
|
+
* @memberof SwapperCloutResponse
|
|
2762
|
+
*/
|
|
2763
|
+
'address': string;
|
|
2764
|
+
/**
|
|
2765
|
+
* clout score, which is the amount of rune spent on swap fees
|
|
2766
|
+
* @type {string}
|
|
2767
|
+
* @memberof SwapperCloutResponse
|
|
2768
|
+
*/
|
|
2769
|
+
'score'?: string;
|
|
2770
|
+
/**
|
|
2771
|
+
* amount of clout that has been reclaimed in total over time (observed clout spent)
|
|
2772
|
+
* @type {string}
|
|
2773
|
+
* @memberof SwapperCloutResponse
|
|
2774
|
+
*/
|
|
2775
|
+
'reclaimed'?: string;
|
|
2776
|
+
/**
|
|
2777
|
+
* amount of clout that has been spent in total over time
|
|
2778
|
+
* @type {string}
|
|
2779
|
+
* @memberof SwapperCloutResponse
|
|
2780
|
+
*/
|
|
2781
|
+
'spent'?: string;
|
|
2782
|
+
/**
|
|
2783
|
+
* last block height that clout was spent
|
|
2784
|
+
* @type {number}
|
|
2785
|
+
* @memberof SwapperCloutResponse
|
|
2786
|
+
*/
|
|
2787
|
+
'last_spent_height'?: number;
|
|
2788
|
+
/**
|
|
2789
|
+
* last block height that clout was reclaimed
|
|
2790
|
+
* @type {number}
|
|
2791
|
+
* @memberof SwapperCloutResponse
|
|
2792
|
+
*/
|
|
2793
|
+
'last_reclaim_height'?: number;
|
|
2794
|
+
}
|
|
2643
2795
|
/**
|
|
2644
2796
|
*
|
|
2645
2797
|
* @export
|
|
@@ -3699,6 +3851,65 @@ export declare class BorrowersApi extends BaseAPI {
|
|
|
3699
3851
|
*/
|
|
3700
3852
|
borrowers(asset: string, height?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<BorrowersResponse, any>>;
|
|
3701
3853
|
}
|
|
3854
|
+
/**
|
|
3855
|
+
* CloutApi - axios parameter creator
|
|
3856
|
+
* @export
|
|
3857
|
+
*/
|
|
3858
|
+
export declare const CloutApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
3859
|
+
/**
|
|
3860
|
+
* Returns the clout score of an address
|
|
3861
|
+
* @param {string} address
|
|
3862
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
3863
|
+
* @param {*} [options] Override http request option.
|
|
3864
|
+
* @throws {RequiredError}
|
|
3865
|
+
*/
|
|
3866
|
+
swapperClout: (address: string, height?: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3867
|
+
};
|
|
3868
|
+
/**
|
|
3869
|
+
* CloutApi - functional programming interface
|
|
3870
|
+
* @export
|
|
3871
|
+
*/
|
|
3872
|
+
export declare const CloutApiFp: (configuration?: Configuration) => {
|
|
3873
|
+
/**
|
|
3874
|
+
* Returns the clout score of an address
|
|
3875
|
+
* @param {string} address
|
|
3876
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
3877
|
+
* @param {*} [options] Override http request option.
|
|
3878
|
+
* @throws {RequiredError}
|
|
3879
|
+
*/
|
|
3880
|
+
swapperClout(address: string, height?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SwapperCloutResponse>>;
|
|
3881
|
+
};
|
|
3882
|
+
/**
|
|
3883
|
+
* CloutApi - factory interface
|
|
3884
|
+
* @export
|
|
3885
|
+
*/
|
|
3886
|
+
export declare const CloutApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
3887
|
+
/**
|
|
3888
|
+
* Returns the clout score of an address
|
|
3889
|
+
* @param {string} address
|
|
3890
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
3891
|
+
* @param {*} [options] Override http request option.
|
|
3892
|
+
* @throws {RequiredError}
|
|
3893
|
+
*/
|
|
3894
|
+
swapperClout(address: string, height?: number, options?: any): AxiosPromise<SwapperCloutResponse>;
|
|
3895
|
+
};
|
|
3896
|
+
/**
|
|
3897
|
+
* CloutApi - object-oriented interface
|
|
3898
|
+
* @export
|
|
3899
|
+
* @class CloutApi
|
|
3900
|
+
* @extends {BaseAPI}
|
|
3901
|
+
*/
|
|
3902
|
+
export declare class CloutApi extends BaseAPI {
|
|
3903
|
+
/**
|
|
3904
|
+
* Returns the clout score of an address
|
|
3905
|
+
* @param {string} address
|
|
3906
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
3907
|
+
* @param {*} [options] Override http request option.
|
|
3908
|
+
* @throws {RequiredError}
|
|
3909
|
+
* @memberof CloutApi
|
|
3910
|
+
*/
|
|
3911
|
+
swapperClout(address: string, height?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<SwapperCloutResponse, any>>;
|
|
3912
|
+
}
|
|
3702
3913
|
/**
|
|
3703
3914
|
* HealthApi - axios parameter creator
|
|
3704
3915
|
* @export
|
|
@@ -3983,6 +4194,13 @@ export declare const MimirApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
3983
4194
|
* @throws {RequiredError}
|
|
3984
4195
|
*/
|
|
3985
4196
|
mimirV2: (height?: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
4197
|
+
/**
|
|
4198
|
+
* Returns mapping of mimir V2 IDs to name.
|
|
4199
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
4200
|
+
* @param {*} [options] Override http request option.
|
|
4201
|
+
* @throws {RequiredError}
|
|
4202
|
+
*/
|
|
4203
|
+
mimirV2IDs: (height?: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3986
4204
|
};
|
|
3987
4205
|
/**
|
|
3988
4206
|
* MimirApi - functional programming interface
|
|
@@ -4033,6 +4251,13 @@ export declare const MimirApiFp: (configuration?: Configuration) => {
|
|
|
4033
4251
|
* @throws {RequiredError}
|
|
4034
4252
|
*/
|
|
4035
4253
|
mimirV2(height?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MimirResponse>>;
|
|
4254
|
+
/**
|
|
4255
|
+
* Returns mapping of mimir V2 IDs to name.
|
|
4256
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
4257
|
+
* @param {*} [options] Override http request option.
|
|
4258
|
+
* @throws {RequiredError}
|
|
4259
|
+
*/
|
|
4260
|
+
mimirV2IDs(height?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MimirV2IDsResponse>>;
|
|
4036
4261
|
};
|
|
4037
4262
|
/**
|
|
4038
4263
|
* MimirApi - factory interface
|
|
@@ -4083,6 +4308,13 @@ export declare const MimirApiFactory: (configuration?: Configuration, basePath?:
|
|
|
4083
4308
|
* @throws {RequiredError}
|
|
4084
4309
|
*/
|
|
4085
4310
|
mimirV2(height?: number, options?: any): AxiosPromise<MimirResponse>;
|
|
4311
|
+
/**
|
|
4312
|
+
* Returns mapping of mimir V2 IDs to name.
|
|
4313
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
4314
|
+
* @param {*} [options] Override http request option.
|
|
4315
|
+
* @throws {RequiredError}
|
|
4316
|
+
*/
|
|
4317
|
+
mimirV2IDs(height?: number, options?: any): AxiosPromise<MimirV2IDsResponse>;
|
|
4086
4318
|
};
|
|
4087
4319
|
/**
|
|
4088
4320
|
* MimirApi - object-oriented interface
|
|
@@ -4141,6 +4373,14 @@ export declare class MimirApi extends BaseAPI {
|
|
|
4141
4373
|
* @memberof MimirApi
|
|
4142
4374
|
*/
|
|
4143
4375
|
mimirV2(height?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<MimirResponse, any>>;
|
|
4376
|
+
/**
|
|
4377
|
+
* Returns mapping of mimir V2 IDs to name.
|
|
4378
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
4379
|
+
* @param {*} [options] Override http request option.
|
|
4380
|
+
* @throws {RequiredError}
|
|
4381
|
+
* @memberof MimirApi
|
|
4382
|
+
*/
|
|
4383
|
+
mimirV2IDs(height?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<MimirV2IDsResponse, any>>;
|
|
4144
4384
|
}
|
|
4145
4385
|
/**
|
|
4146
4386
|
* NetworkApi - axios parameter creator
|
|
@@ -4852,14 +5092,14 @@ export declare const QuoteApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
4852
5092
|
* Provide a quote estimate for the provided loan close.
|
|
4853
5093
|
* @param {number} [height] optional block height, defaults to current tip
|
|
4854
5094
|
* @param {string} [fromAsset] the asset used to repay the loan
|
|
4855
|
-
* @param {number} [
|
|
5095
|
+
* @param {number} [repayBps] the basis points of the existing position to repay
|
|
4856
5096
|
* @param {string} [toAsset] the collateral asset of the loan
|
|
4857
5097
|
* @param {string} [loanOwner] the owner of the loan collateral
|
|
4858
5098
|
* @param {string} [minOut] the minimum amount of the target asset to accept
|
|
4859
5099
|
* @param {*} [options] Override http request option.
|
|
4860
5100
|
* @throws {RequiredError}
|
|
4861
5101
|
*/
|
|
4862
|
-
quoteloanclose: (height?: number, fromAsset?: string,
|
|
5102
|
+
quoteloanclose: (height?: number, fromAsset?: string, repayBps?: number, toAsset?: string, loanOwner?: string, minOut?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
4863
5103
|
/**
|
|
4864
5104
|
* Provide a quote estimate for the provided loan open.
|
|
4865
5105
|
* @param {number} [height] optional block height, defaults to current tip
|
|
@@ -4919,14 +5159,14 @@ export declare const QuoteApiFp: (configuration?: Configuration) => {
|
|
|
4919
5159
|
* Provide a quote estimate for the provided loan close.
|
|
4920
5160
|
* @param {number} [height] optional block height, defaults to current tip
|
|
4921
5161
|
* @param {string} [fromAsset] the asset used to repay the loan
|
|
4922
|
-
* @param {number} [
|
|
5162
|
+
* @param {number} [repayBps] the basis points of the existing position to repay
|
|
4923
5163
|
* @param {string} [toAsset] the collateral asset of the loan
|
|
4924
5164
|
* @param {string} [loanOwner] the owner of the loan collateral
|
|
4925
5165
|
* @param {string} [minOut] the minimum amount of the target asset to accept
|
|
4926
5166
|
* @param {*} [options] Override http request option.
|
|
4927
5167
|
* @throws {RequiredError}
|
|
4928
5168
|
*/
|
|
4929
|
-
quoteloanclose(height?: number, fromAsset?: string,
|
|
5169
|
+
quoteloanclose(height?: number, fromAsset?: string, repayBps?: number, toAsset?: string, loanOwner?: string, minOut?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<QuoteLoanCloseResponse>>;
|
|
4930
5170
|
/**
|
|
4931
5171
|
* Provide a quote estimate for the provided loan open.
|
|
4932
5172
|
* @param {number} [height] optional block height, defaults to current tip
|
|
@@ -4986,14 +5226,14 @@ export declare const QuoteApiFactory: (configuration?: Configuration, basePath?:
|
|
|
4986
5226
|
* Provide a quote estimate for the provided loan close.
|
|
4987
5227
|
* @param {number} [height] optional block height, defaults to current tip
|
|
4988
5228
|
* @param {string} [fromAsset] the asset used to repay the loan
|
|
4989
|
-
* @param {number} [
|
|
5229
|
+
* @param {number} [repayBps] the basis points of the existing position to repay
|
|
4990
5230
|
* @param {string} [toAsset] the collateral asset of the loan
|
|
4991
5231
|
* @param {string} [loanOwner] the owner of the loan collateral
|
|
4992
5232
|
* @param {string} [minOut] the minimum amount of the target asset to accept
|
|
4993
5233
|
* @param {*} [options] Override http request option.
|
|
4994
5234
|
* @throws {RequiredError}
|
|
4995
5235
|
*/
|
|
4996
|
-
quoteloanclose(height?: number, fromAsset?: string,
|
|
5236
|
+
quoteloanclose(height?: number, fromAsset?: string, repayBps?: number, toAsset?: string, loanOwner?: string, minOut?: string, options?: any): AxiosPromise<QuoteLoanCloseResponse>;
|
|
4997
5237
|
/**
|
|
4998
5238
|
* Provide a quote estimate for the provided loan open.
|
|
4999
5239
|
* @param {number} [height] optional block height, defaults to current tip
|
|
@@ -5055,7 +5295,7 @@ export declare class QuoteApi extends BaseAPI {
|
|
|
5055
5295
|
* Provide a quote estimate for the provided loan close.
|
|
5056
5296
|
* @param {number} [height] optional block height, defaults to current tip
|
|
5057
5297
|
* @param {string} [fromAsset] the asset used to repay the loan
|
|
5058
|
-
* @param {number} [
|
|
5298
|
+
* @param {number} [repayBps] the basis points of the existing position to repay
|
|
5059
5299
|
* @param {string} [toAsset] the collateral asset of the loan
|
|
5060
5300
|
* @param {string} [loanOwner] the owner of the loan collateral
|
|
5061
5301
|
* @param {string} [minOut] the minimum amount of the target asset to accept
|
|
@@ -5063,7 +5303,7 @@ export declare class QuoteApi extends BaseAPI {
|
|
|
5063
5303
|
* @throws {RequiredError}
|
|
5064
5304
|
* @memberof QuoteApi
|
|
5065
5305
|
*/
|
|
5066
|
-
quoteloanclose(height?: number, fromAsset?: string,
|
|
5306
|
+
quoteloanclose(height?: number, fromAsset?: string, repayBps?: number, toAsset?: string, loanOwner?: string, minOut?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<QuoteLoanCloseResponse, any>>;
|
|
5067
5307
|
/**
|
|
5068
5308
|
* Provide a quote estimate for the provided loan open.
|
|
5069
5309
|
* @param {number} [height] optional block height, defaults to current tip
|
|
@@ -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.126.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.126.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.126.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.126.0
|
|
6
6
|
* Contact: devs@thorchain.org
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|