@xchainjs/xchain-thornode 0.3.8 → 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.
@@ -2,7 +2,7 @@
2
2
  * Thornode API
3
3
  * Thornode REST API.
4
4
  *
5
- * The version of the OpenAPI document: 1.122.0
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). Transctions with asset amounts lower than the dust_threshold are ignored.
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 accumlated slash points, reset at churn but excessive slash points may carry over
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). Transctions with asset amounts lower than the dust_threshold are ignored.
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). Transctions with asset amounts lower than the dust_threshold are ignored.
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). Transctions with asset amounts lower than the dust_threshold are ignored.
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). Transctions with asset amounts lower than the dust_threshold are ignored.
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). Transctions with asset amounts lower than the dust_threshold are ignored.
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 maxiumum amount of trades a streaming swap can do for a trade
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'?: string;
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'?: string;
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'?: string;
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'?: string;
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
@@ -3976,6 +4187,20 @@ export declare const MimirApiAxiosParamCreator: (configuration?: Configuration)
3976
4187
  * @throws {RequiredError}
3977
4188
  */
3978
4189
  mimirNodes: (height?: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
4190
+ /**
4191
+ * Returns current mimir V2 configuration.
4192
+ * @param {number} [height] optional block height, defaults to current tip
4193
+ * @param {*} [options] Override http request option.
4194
+ * @throws {RequiredError}
4195
+ */
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>;
3979
4204
  };
3980
4205
  /**
3981
4206
  * MimirApi - functional programming interface
@@ -4019,6 +4244,20 @@ export declare const MimirApiFp: (configuration?: Configuration) => {
4019
4244
  * @throws {RequiredError}
4020
4245
  */
4021
4246
  mimirNodes(height?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MimirNodesResponse>>;
4247
+ /**
4248
+ * Returns current mimir V2 configuration.
4249
+ * @param {number} [height] optional block height, defaults to current tip
4250
+ * @param {*} [options] Override http request option.
4251
+ * @throws {RequiredError}
4252
+ */
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>>;
4022
4261
  };
4023
4262
  /**
4024
4263
  * MimirApi - factory interface
@@ -4062,6 +4301,20 @@ export declare const MimirApiFactory: (configuration?: Configuration, basePath?:
4062
4301
  * @throws {RequiredError}
4063
4302
  */
4064
4303
  mimirNodes(height?: number, options?: any): AxiosPromise<MimirNodesResponse>;
4304
+ /**
4305
+ * Returns current mimir V2 configuration.
4306
+ * @param {number} [height] optional block height, defaults to current tip
4307
+ * @param {*} [options] Override http request option.
4308
+ * @throws {RequiredError}
4309
+ */
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>;
4065
4318
  };
4066
4319
  /**
4067
4320
  * MimirApi - object-oriented interface
@@ -4112,6 +4365,22 @@ export declare class MimirApi extends BaseAPI {
4112
4365
  * @memberof MimirApi
4113
4366
  */
4114
4367
  mimirNodes(height?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<MimirNodesResponse, any>>;
4368
+ /**
4369
+ * Returns current mimir V2 configuration.
4370
+ * @param {number} [height] optional block height, defaults to current tip
4371
+ * @param {*} [options] Override http request option.
4372
+ * @throws {RequiredError}
4373
+ * @memberof MimirApi
4374
+ */
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>>;
4115
4384
  }
4116
4385
  /**
4117
4386
  * NetworkApi - axios parameter creator
@@ -4823,14 +5092,14 @@ export declare const QuoteApiAxiosParamCreator: (configuration?: Configuration)
4823
5092
  * Provide a quote estimate for the provided loan close.
4824
5093
  * @param {number} [height] optional block height, defaults to current tip
4825
5094
  * @param {string} [fromAsset] the asset used to repay the loan
4826
- * @param {number} [amount] the asset amount in 1e8 decimals
5095
+ * @param {number} [repayBps] the basis points of the existing position to repay
4827
5096
  * @param {string} [toAsset] the collateral asset of the loan
4828
5097
  * @param {string} [loanOwner] the owner of the loan collateral
4829
5098
  * @param {string} [minOut] the minimum amount of the target asset to accept
4830
5099
  * @param {*} [options] Override http request option.
4831
5100
  * @throws {RequiredError}
4832
5101
  */
4833
- quoteloanclose: (height?: number, fromAsset?: string, amount?: number, toAsset?: string, loanOwner?: string, minOut?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
5102
+ quoteloanclose: (height?: number, fromAsset?: string, repayBps?: number, toAsset?: string, loanOwner?: string, minOut?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
4834
5103
  /**
4835
5104
  * Provide a quote estimate for the provided loan open.
4836
5105
  * @param {number} [height] optional block height, defaults to current tip
@@ -4873,14 +5142,13 @@ export declare const QuoteApiAxiosParamCreator: (configuration?: Configuration)
4873
5142
  * @param {string} [destination] the destination address, required to generate memo
4874
5143
  * @param {number} [streamingInterval] the interval in which streaming swaps are swapped
4875
5144
  * @param {number} [streamingQuantity] the quantity of swaps within a streaming swap
4876
- * @param {string} [fromAddress] the from address, required if the from asset is a synth
4877
5145
  * @param {number} [toleranceBps] the maximum basis points from the current feeless swap price to set the limit in the generated memo
4878
5146
  * @param {number} [affiliateBps] the affiliate fee in basis points
4879
5147
  * @param {string} [affiliate] the affiliate (address or thorname)
4880
5148
  * @param {*} [options] Override http request option.
4881
5149
  * @throws {RequiredError}
4882
5150
  */
4883
- quoteswap: (height?: number, fromAsset?: string, toAsset?: string, amount?: number, destination?: string, streamingInterval?: number, streamingQuantity?: number, fromAddress?: string, toleranceBps?: number, affiliateBps?: number, affiliate?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
5151
+ quoteswap: (height?: number, fromAsset?: string, toAsset?: string, amount?: number, destination?: string, streamingInterval?: number, streamingQuantity?: number, toleranceBps?: number, affiliateBps?: number, affiliate?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
4884
5152
  };
4885
5153
  /**
4886
5154
  * QuoteApi - functional programming interface
@@ -4891,14 +5159,14 @@ export declare const QuoteApiFp: (configuration?: Configuration) => {
4891
5159
  * Provide a quote estimate for the provided loan close.
4892
5160
  * @param {number} [height] optional block height, defaults to current tip
4893
5161
  * @param {string} [fromAsset] the asset used to repay the loan
4894
- * @param {number} [amount] the asset amount in 1e8 decimals
5162
+ * @param {number} [repayBps] the basis points of the existing position to repay
4895
5163
  * @param {string} [toAsset] the collateral asset of the loan
4896
5164
  * @param {string} [loanOwner] the owner of the loan collateral
4897
5165
  * @param {string} [minOut] the minimum amount of the target asset to accept
4898
5166
  * @param {*} [options] Override http request option.
4899
5167
  * @throws {RequiredError}
4900
5168
  */
4901
- quoteloanclose(height?: number, fromAsset?: string, amount?: number, toAsset?: string, loanOwner?: string, minOut?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<QuoteLoanCloseResponse>>;
5169
+ quoteloanclose(height?: number, fromAsset?: string, repayBps?: number, toAsset?: string, loanOwner?: string, minOut?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<QuoteLoanCloseResponse>>;
4902
5170
  /**
4903
5171
  * Provide a quote estimate for the provided loan open.
4904
5172
  * @param {number} [height] optional block height, defaults to current tip
@@ -4941,14 +5209,13 @@ export declare const QuoteApiFp: (configuration?: Configuration) => {
4941
5209
  * @param {string} [destination] the destination address, required to generate memo
4942
5210
  * @param {number} [streamingInterval] the interval in which streaming swaps are swapped
4943
5211
  * @param {number} [streamingQuantity] the quantity of swaps within a streaming swap
4944
- * @param {string} [fromAddress] the from address, required if the from asset is a synth
4945
5212
  * @param {number} [toleranceBps] the maximum basis points from the current feeless swap price to set the limit in the generated memo
4946
5213
  * @param {number} [affiliateBps] the affiliate fee in basis points
4947
5214
  * @param {string} [affiliate] the affiliate (address or thorname)
4948
5215
  * @param {*} [options] Override http request option.
4949
5216
  * @throws {RequiredError}
4950
5217
  */
4951
- quoteswap(height?: number, fromAsset?: string, toAsset?: string, amount?: number, destination?: string, streamingInterval?: number, streamingQuantity?: number, fromAddress?: string, toleranceBps?: number, affiliateBps?: number, affiliate?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<QuoteSwapResponse>>;
5218
+ quoteswap(height?: number, fromAsset?: string, toAsset?: string, amount?: number, destination?: string, streamingInterval?: number, streamingQuantity?: number, toleranceBps?: number, affiliateBps?: number, affiliate?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<QuoteSwapResponse>>;
4952
5219
  };
4953
5220
  /**
4954
5221
  * QuoteApi - factory interface
@@ -4959,14 +5226,14 @@ export declare const QuoteApiFactory: (configuration?: Configuration, basePath?:
4959
5226
  * Provide a quote estimate for the provided loan close.
4960
5227
  * @param {number} [height] optional block height, defaults to current tip
4961
5228
  * @param {string} [fromAsset] the asset used to repay the loan
4962
- * @param {number} [amount] the asset amount in 1e8 decimals
5229
+ * @param {number} [repayBps] the basis points of the existing position to repay
4963
5230
  * @param {string} [toAsset] the collateral asset of the loan
4964
5231
  * @param {string} [loanOwner] the owner of the loan collateral
4965
5232
  * @param {string} [minOut] the minimum amount of the target asset to accept
4966
5233
  * @param {*} [options] Override http request option.
4967
5234
  * @throws {RequiredError}
4968
5235
  */
4969
- quoteloanclose(height?: number, fromAsset?: string, amount?: number, toAsset?: string, loanOwner?: string, minOut?: string, options?: any): AxiosPromise<QuoteLoanCloseResponse>;
5236
+ quoteloanclose(height?: number, fromAsset?: string, repayBps?: number, toAsset?: string, loanOwner?: string, minOut?: string, options?: any): AxiosPromise<QuoteLoanCloseResponse>;
4970
5237
  /**
4971
5238
  * Provide a quote estimate for the provided loan open.
4972
5239
  * @param {number} [height] optional block height, defaults to current tip
@@ -5009,14 +5276,13 @@ export declare const QuoteApiFactory: (configuration?: Configuration, basePath?:
5009
5276
  * @param {string} [destination] the destination address, required to generate memo
5010
5277
  * @param {number} [streamingInterval] the interval in which streaming swaps are swapped
5011
5278
  * @param {number} [streamingQuantity] the quantity of swaps within a streaming swap
5012
- * @param {string} [fromAddress] the from address, required if the from asset is a synth
5013
5279
  * @param {number} [toleranceBps] the maximum basis points from the current feeless swap price to set the limit in the generated memo
5014
5280
  * @param {number} [affiliateBps] the affiliate fee in basis points
5015
5281
  * @param {string} [affiliate] the affiliate (address or thorname)
5016
5282
  * @param {*} [options] Override http request option.
5017
5283
  * @throws {RequiredError}
5018
5284
  */
5019
- quoteswap(height?: number, fromAsset?: string, toAsset?: string, amount?: number, destination?: string, streamingInterval?: number, streamingQuantity?: number, fromAddress?: string, toleranceBps?: number, affiliateBps?: number, affiliate?: string, options?: any): AxiosPromise<QuoteSwapResponse>;
5285
+ quoteswap(height?: number, fromAsset?: string, toAsset?: string, amount?: number, destination?: string, streamingInterval?: number, streamingQuantity?: number, toleranceBps?: number, affiliateBps?: number, affiliate?: string, options?: any): AxiosPromise<QuoteSwapResponse>;
5020
5286
  };
5021
5287
  /**
5022
5288
  * QuoteApi - object-oriented interface
@@ -5029,7 +5295,7 @@ export declare class QuoteApi extends BaseAPI {
5029
5295
  * Provide a quote estimate for the provided loan close.
5030
5296
  * @param {number} [height] optional block height, defaults to current tip
5031
5297
  * @param {string} [fromAsset] the asset used to repay the loan
5032
- * @param {number} [amount] the asset amount in 1e8 decimals
5298
+ * @param {number} [repayBps] the basis points of the existing position to repay
5033
5299
  * @param {string} [toAsset] the collateral asset of the loan
5034
5300
  * @param {string} [loanOwner] the owner of the loan collateral
5035
5301
  * @param {string} [minOut] the minimum amount of the target asset to accept
@@ -5037,7 +5303,7 @@ export declare class QuoteApi extends BaseAPI {
5037
5303
  * @throws {RequiredError}
5038
5304
  * @memberof QuoteApi
5039
5305
  */
5040
- quoteloanclose(height?: number, fromAsset?: string, amount?: number, toAsset?: string, loanOwner?: string, minOut?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<QuoteLoanCloseResponse, any>>;
5306
+ quoteloanclose(height?: number, fromAsset?: string, repayBps?: number, toAsset?: string, loanOwner?: string, minOut?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<QuoteLoanCloseResponse, any>>;
5041
5307
  /**
5042
5308
  * Provide a quote estimate for the provided loan open.
5043
5309
  * @param {number} [height] optional block height, defaults to current tip
@@ -5083,7 +5349,6 @@ export declare class QuoteApi extends BaseAPI {
5083
5349
  * @param {string} [destination] the destination address, required to generate memo
5084
5350
  * @param {number} [streamingInterval] the interval in which streaming swaps are swapped
5085
5351
  * @param {number} [streamingQuantity] the quantity of swaps within a streaming swap
5086
- * @param {string} [fromAddress] the from address, required if the from asset is a synth
5087
5352
  * @param {number} [toleranceBps] the maximum basis points from the current feeless swap price to set the limit in the generated memo
5088
5353
  * @param {number} [affiliateBps] the affiliate fee in basis points
5089
5354
  * @param {string} [affiliate] the affiliate (address or thorname)
@@ -5091,7 +5356,7 @@ export declare class QuoteApi extends BaseAPI {
5091
5356
  * @throws {RequiredError}
5092
5357
  * @memberof QuoteApi
5093
5358
  */
5094
- quoteswap(height?: number, fromAsset?: string, toAsset?: string, amount?: number, destination?: string, streamingInterval?: number, streamingQuantity?: number, fromAddress?: string, toleranceBps?: number, affiliateBps?: number, affiliate?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<QuoteSwapResponse, any>>;
5359
+ quoteswap(height?: number, fromAsset?: string, toAsset?: string, amount?: number, destination?: string, streamingInterval?: number, streamingQuantity?: number, toleranceBps?: number, affiliateBps?: number, affiliate?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<QuoteSwapResponse, any>>;
5095
5360
  }
5096
5361
  /**
5097
5362
  * SaversApi - 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.122.0
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.122.0
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.122.0
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.122.0
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).