@xchainjs/xchain-thornode 0.3.9 → 0.3.11

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.124.0
5
+ * The version of the OpenAPI document: 1.128.1
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
@@ -2702,6 +2854,82 @@ export interface ThornameAlias {
2702
2854
  */
2703
2855
  'address'?: string;
2704
2856
  }
2857
+ /**
2858
+ *
2859
+ * @export
2860
+ * @interface TradeAccountResponse
2861
+ */
2862
+ export interface TradeAccountResponse {
2863
+ /**
2864
+ * trade account asset with \"~\" separator
2865
+ * @type {string}
2866
+ * @memberof TradeAccountResponse
2867
+ */
2868
+ 'asset': string;
2869
+ /**
2870
+ * units of trade asset belonging to this owner
2871
+ * @type {string}
2872
+ * @memberof TradeAccountResponse
2873
+ */
2874
+ 'units': string;
2875
+ /**
2876
+ * thor address of trade account owner
2877
+ * @type {string}
2878
+ * @memberof TradeAccountResponse
2879
+ */
2880
+ 'owner': string;
2881
+ /**
2882
+ * last thorchain height trade assets were added to trade account
2883
+ * @type {number}
2884
+ * @memberof TradeAccountResponse
2885
+ */
2886
+ 'last_add_height'?: number;
2887
+ /**
2888
+ * last thorchain height trade assets were withdrawn from trade account
2889
+ * @type {number}
2890
+ * @memberof TradeAccountResponse
2891
+ */
2892
+ 'last_withdraw_height'?: number;
2893
+ }
2894
+ /**
2895
+ *
2896
+ * @export
2897
+ * @interface TradeAccountsResponse
2898
+ */
2899
+ export interface TradeAccountsResponse extends Array<TradeAccountResponse> {
2900
+ }
2901
+ /**
2902
+ *
2903
+ * @export
2904
+ * @interface TradeUnitResponse
2905
+ */
2906
+ export interface TradeUnitResponse {
2907
+ /**
2908
+ * trade account asset with \"~\" separator
2909
+ * @type {string}
2910
+ * @memberof TradeUnitResponse
2911
+ */
2912
+ 'asset': string;
2913
+ /**
2914
+ * total units of trade asset
2915
+ * @type {string}
2916
+ * @memberof TradeUnitResponse
2917
+ */
2918
+ 'units': string;
2919
+ /**
2920
+ * total depth of trade asset
2921
+ * @type {string}
2922
+ * @memberof TradeUnitResponse
2923
+ */
2924
+ 'depth': string;
2925
+ }
2926
+ /**
2927
+ *
2928
+ * @export
2929
+ * @interface TradeUnitsResponse
2930
+ */
2931
+ export interface TradeUnitsResponse extends Array<TradeUnitResponse> {
2932
+ }
2705
2933
  /**
2706
2934
  *
2707
2935
  * @export
@@ -2922,6 +3150,12 @@ export interface TxOutItem {
2922
3150
  * @memberof TxOutItem
2923
3151
  */
2924
3152
  'height': number;
3153
+ /**
3154
+ * clout spent in RUNE for the outbound
3155
+ * @type {string}
3156
+ * @memberof TxOutItem
3157
+ */
3158
+ 'clout_spent'?: string;
2925
3159
  }
2926
3160
  /**
2927
3161
  *
@@ -3699,6 +3933,65 @@ export declare class BorrowersApi extends BaseAPI {
3699
3933
  */
3700
3934
  borrowers(asset: string, height?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<BorrowersResponse, any>>;
3701
3935
  }
3936
+ /**
3937
+ * CloutApi - axios parameter creator
3938
+ * @export
3939
+ */
3940
+ export declare const CloutApiAxiosParamCreator: (configuration?: Configuration) => {
3941
+ /**
3942
+ * Returns the clout score of an address
3943
+ * @param {string} address
3944
+ * @param {number} [height] optional block height, defaults to current tip
3945
+ * @param {*} [options] Override http request option.
3946
+ * @throws {RequiredError}
3947
+ */
3948
+ swapperClout: (address: string, height?: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
3949
+ };
3950
+ /**
3951
+ * CloutApi - functional programming interface
3952
+ * @export
3953
+ */
3954
+ export declare const CloutApiFp: (configuration?: Configuration) => {
3955
+ /**
3956
+ * Returns the clout score of an address
3957
+ * @param {string} address
3958
+ * @param {number} [height] optional block height, defaults to current tip
3959
+ * @param {*} [options] Override http request option.
3960
+ * @throws {RequiredError}
3961
+ */
3962
+ swapperClout(address: string, height?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SwapperCloutResponse>>;
3963
+ };
3964
+ /**
3965
+ * CloutApi - factory interface
3966
+ * @export
3967
+ */
3968
+ export declare const CloutApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
3969
+ /**
3970
+ * Returns the clout score of an address
3971
+ * @param {string} address
3972
+ * @param {number} [height] optional block height, defaults to current tip
3973
+ * @param {*} [options] Override http request option.
3974
+ * @throws {RequiredError}
3975
+ */
3976
+ swapperClout(address: string, height?: number, options?: any): AxiosPromise<SwapperCloutResponse>;
3977
+ };
3978
+ /**
3979
+ * CloutApi - object-oriented interface
3980
+ * @export
3981
+ * @class CloutApi
3982
+ * @extends {BaseAPI}
3983
+ */
3984
+ export declare class CloutApi extends BaseAPI {
3985
+ /**
3986
+ * Returns the clout score of an address
3987
+ * @param {string} address
3988
+ * @param {number} [height] optional block height, defaults to current tip
3989
+ * @param {*} [options] Override http request option.
3990
+ * @throws {RequiredError}
3991
+ * @memberof CloutApi
3992
+ */
3993
+ swapperClout(address: string, height?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<SwapperCloutResponse, any>>;
3994
+ }
3702
3995
  /**
3703
3996
  * HealthApi - axios parameter creator
3704
3997
  * @export
@@ -3983,6 +4276,13 @@ export declare const MimirApiAxiosParamCreator: (configuration?: Configuration)
3983
4276
  * @throws {RequiredError}
3984
4277
  */
3985
4278
  mimirV2: (height?: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
4279
+ /**
4280
+ * Returns mapping of mimir V2 IDs to name.
4281
+ * @param {number} [height] optional block height, defaults to current tip
4282
+ * @param {*} [options] Override http request option.
4283
+ * @throws {RequiredError}
4284
+ */
4285
+ mimirV2IDs: (height?: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
3986
4286
  };
3987
4287
  /**
3988
4288
  * MimirApi - functional programming interface
@@ -4033,6 +4333,13 @@ export declare const MimirApiFp: (configuration?: Configuration) => {
4033
4333
  * @throws {RequiredError}
4034
4334
  */
4035
4335
  mimirV2(height?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MimirResponse>>;
4336
+ /**
4337
+ * Returns mapping of mimir V2 IDs to name.
4338
+ * @param {number} [height] optional block height, defaults to current tip
4339
+ * @param {*} [options] Override http request option.
4340
+ * @throws {RequiredError}
4341
+ */
4342
+ mimirV2IDs(height?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MimirV2IDsResponse>>;
4036
4343
  };
4037
4344
  /**
4038
4345
  * MimirApi - factory interface
@@ -4083,6 +4390,13 @@ export declare const MimirApiFactory: (configuration?: Configuration, basePath?:
4083
4390
  * @throws {RequiredError}
4084
4391
  */
4085
4392
  mimirV2(height?: number, options?: any): AxiosPromise<MimirResponse>;
4393
+ /**
4394
+ * Returns mapping of mimir V2 IDs to name.
4395
+ * @param {number} [height] optional block height, defaults to current tip
4396
+ * @param {*} [options] Override http request option.
4397
+ * @throws {RequiredError}
4398
+ */
4399
+ mimirV2IDs(height?: number, options?: any): AxiosPromise<MimirV2IDsResponse>;
4086
4400
  };
4087
4401
  /**
4088
4402
  * MimirApi - object-oriented interface
@@ -4141,6 +4455,14 @@ export declare class MimirApi extends BaseAPI {
4141
4455
  * @memberof MimirApi
4142
4456
  */
4143
4457
  mimirV2(height?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<MimirResponse, any>>;
4458
+ /**
4459
+ * Returns mapping of mimir V2 IDs to name.
4460
+ * @param {number} [height] optional block height, defaults to current tip
4461
+ * @param {*} [options] Override http request option.
4462
+ * @throws {RequiredError}
4463
+ * @memberof MimirApi
4464
+ */
4465
+ mimirV2IDs(height?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<MimirV2IDsResponse, any>>;
4144
4466
  }
4145
4467
  /**
4146
4468
  * NetworkApi - axios parameter creator
@@ -4852,14 +5174,14 @@ export declare const QuoteApiAxiosParamCreator: (configuration?: Configuration)
4852
5174
  * Provide a quote estimate for the provided loan close.
4853
5175
  * @param {number} [height] optional block height, defaults to current tip
4854
5176
  * @param {string} [fromAsset] the asset used to repay the loan
4855
- * @param {number} [amount] the asset amount in 1e8 decimals
5177
+ * @param {number} [repayBps] the basis points of the existing position to repay
4856
5178
  * @param {string} [toAsset] the collateral asset of the loan
4857
5179
  * @param {string} [loanOwner] the owner of the loan collateral
4858
5180
  * @param {string} [minOut] the minimum amount of the target asset to accept
4859
5181
  * @param {*} [options] Override http request option.
4860
5182
  * @throws {RequiredError}
4861
5183
  */
4862
- quoteloanclose: (height?: number, fromAsset?: string, amount?: number, toAsset?: string, loanOwner?: string, minOut?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
5184
+ quoteloanclose: (height?: number, fromAsset?: string, repayBps?: number, toAsset?: string, loanOwner?: string, minOut?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
4863
5185
  /**
4864
5186
  * Provide a quote estimate for the provided loan open.
4865
5187
  * @param {number} [height] optional block height, defaults to current tip
@@ -4900,6 +5222,7 @@ export declare const QuoteApiAxiosParamCreator: (configuration?: Configuration)
4900
5222
  * @param {string} [toAsset] the target asset
4901
5223
  * @param {number} [amount] the source asset amount in 1e8 decimals
4902
5224
  * @param {string} [destination] the destination address, required to generate memo
5225
+ * @param {string} [refundAddress] the refund address, refunds will be sent here if the swap fails
4903
5226
  * @param {number} [streamingInterval] the interval in which streaming swaps are swapped
4904
5227
  * @param {number} [streamingQuantity] the quantity of swaps within a streaming swap
4905
5228
  * @param {number} [toleranceBps] the maximum basis points from the current feeless swap price to set the limit in the generated memo
@@ -4908,7 +5231,7 @@ export declare const QuoteApiAxiosParamCreator: (configuration?: Configuration)
4908
5231
  * @param {*} [options] Override http request option.
4909
5232
  * @throws {RequiredError}
4910
5233
  */
4911
- 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>;
5234
+ quoteswap: (height?: number, fromAsset?: string, toAsset?: string, amount?: number, destination?: string, refundAddress?: string, streamingInterval?: number, streamingQuantity?: number, toleranceBps?: number, affiliateBps?: number, affiliate?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
4912
5235
  };
4913
5236
  /**
4914
5237
  * QuoteApi - functional programming interface
@@ -4919,14 +5242,14 @@ export declare const QuoteApiFp: (configuration?: Configuration) => {
4919
5242
  * Provide a quote estimate for the provided loan close.
4920
5243
  * @param {number} [height] optional block height, defaults to current tip
4921
5244
  * @param {string} [fromAsset] the asset used to repay the loan
4922
- * @param {number} [amount] the asset amount in 1e8 decimals
5245
+ * @param {number} [repayBps] the basis points of the existing position to repay
4923
5246
  * @param {string} [toAsset] the collateral asset of the loan
4924
5247
  * @param {string} [loanOwner] the owner of the loan collateral
4925
5248
  * @param {string} [minOut] the minimum amount of the target asset to accept
4926
5249
  * @param {*} [options] Override http request option.
4927
5250
  * @throws {RequiredError}
4928
5251
  */
4929
- quoteloanclose(height?: number, fromAsset?: string, amount?: number, toAsset?: string, loanOwner?: string, minOut?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<QuoteLoanCloseResponse>>;
5252
+ quoteloanclose(height?: number, fromAsset?: string, repayBps?: number, toAsset?: string, loanOwner?: string, minOut?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<QuoteLoanCloseResponse>>;
4930
5253
  /**
4931
5254
  * Provide a quote estimate for the provided loan open.
4932
5255
  * @param {number} [height] optional block height, defaults to current tip
@@ -4967,6 +5290,7 @@ export declare const QuoteApiFp: (configuration?: Configuration) => {
4967
5290
  * @param {string} [toAsset] the target asset
4968
5291
  * @param {number} [amount] the source asset amount in 1e8 decimals
4969
5292
  * @param {string} [destination] the destination address, required to generate memo
5293
+ * @param {string} [refundAddress] the refund address, refunds will be sent here if the swap fails
4970
5294
  * @param {number} [streamingInterval] the interval in which streaming swaps are swapped
4971
5295
  * @param {number} [streamingQuantity] the quantity of swaps within a streaming swap
4972
5296
  * @param {number} [toleranceBps] the maximum basis points from the current feeless swap price to set the limit in the generated memo
@@ -4975,7 +5299,7 @@ export declare const QuoteApiFp: (configuration?: Configuration) => {
4975
5299
  * @param {*} [options] Override http request option.
4976
5300
  * @throws {RequiredError}
4977
5301
  */
4978
- 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>>;
5302
+ quoteswap(height?: number, fromAsset?: string, toAsset?: string, amount?: number, destination?: string, refundAddress?: string, streamingInterval?: number, streamingQuantity?: number, toleranceBps?: number, affiliateBps?: number, affiliate?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<QuoteSwapResponse>>;
4979
5303
  };
4980
5304
  /**
4981
5305
  * QuoteApi - factory interface
@@ -4986,14 +5310,14 @@ export declare const QuoteApiFactory: (configuration?: Configuration, basePath?:
4986
5310
  * Provide a quote estimate for the provided loan close.
4987
5311
  * @param {number} [height] optional block height, defaults to current tip
4988
5312
  * @param {string} [fromAsset] the asset used to repay the loan
4989
- * @param {number} [amount] the asset amount in 1e8 decimals
5313
+ * @param {number} [repayBps] the basis points of the existing position to repay
4990
5314
  * @param {string} [toAsset] the collateral asset of the loan
4991
5315
  * @param {string} [loanOwner] the owner of the loan collateral
4992
5316
  * @param {string} [minOut] the minimum amount of the target asset to accept
4993
5317
  * @param {*} [options] Override http request option.
4994
5318
  * @throws {RequiredError}
4995
5319
  */
4996
- quoteloanclose(height?: number, fromAsset?: string, amount?: number, toAsset?: string, loanOwner?: string, minOut?: string, options?: any): AxiosPromise<QuoteLoanCloseResponse>;
5320
+ quoteloanclose(height?: number, fromAsset?: string, repayBps?: number, toAsset?: string, loanOwner?: string, minOut?: string, options?: any): AxiosPromise<QuoteLoanCloseResponse>;
4997
5321
  /**
4998
5322
  * Provide a quote estimate for the provided loan open.
4999
5323
  * @param {number} [height] optional block height, defaults to current tip
@@ -5034,6 +5358,7 @@ export declare const QuoteApiFactory: (configuration?: Configuration, basePath?:
5034
5358
  * @param {string} [toAsset] the target asset
5035
5359
  * @param {number} [amount] the source asset amount in 1e8 decimals
5036
5360
  * @param {string} [destination] the destination address, required to generate memo
5361
+ * @param {string} [refundAddress] the refund address, refunds will be sent here if the swap fails
5037
5362
  * @param {number} [streamingInterval] the interval in which streaming swaps are swapped
5038
5363
  * @param {number} [streamingQuantity] the quantity of swaps within a streaming swap
5039
5364
  * @param {number} [toleranceBps] the maximum basis points from the current feeless swap price to set the limit in the generated memo
@@ -5042,7 +5367,7 @@ export declare const QuoteApiFactory: (configuration?: Configuration, basePath?:
5042
5367
  * @param {*} [options] Override http request option.
5043
5368
  * @throws {RequiredError}
5044
5369
  */
5045
- 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>;
5370
+ quoteswap(height?: number, fromAsset?: string, toAsset?: string, amount?: number, destination?: string, refundAddress?: string, streamingInterval?: number, streamingQuantity?: number, toleranceBps?: number, affiliateBps?: number, affiliate?: string, options?: any): AxiosPromise<QuoteSwapResponse>;
5046
5371
  };
5047
5372
  /**
5048
5373
  * QuoteApi - object-oriented interface
@@ -5055,7 +5380,7 @@ export declare class QuoteApi extends BaseAPI {
5055
5380
  * Provide a quote estimate for the provided loan close.
5056
5381
  * @param {number} [height] optional block height, defaults to current tip
5057
5382
  * @param {string} [fromAsset] the asset used to repay the loan
5058
- * @param {number} [amount] the asset amount in 1e8 decimals
5383
+ * @param {number} [repayBps] the basis points of the existing position to repay
5059
5384
  * @param {string} [toAsset] the collateral asset of the loan
5060
5385
  * @param {string} [loanOwner] the owner of the loan collateral
5061
5386
  * @param {string} [minOut] the minimum amount of the target asset to accept
@@ -5063,7 +5388,7 @@ export declare class QuoteApi extends BaseAPI {
5063
5388
  * @throws {RequiredError}
5064
5389
  * @memberof QuoteApi
5065
5390
  */
5066
- quoteloanclose(height?: number, fromAsset?: string, amount?: number, toAsset?: string, loanOwner?: string, minOut?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<QuoteLoanCloseResponse, any>>;
5391
+ quoteloanclose(height?: number, fromAsset?: string, repayBps?: number, toAsset?: string, loanOwner?: string, minOut?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<QuoteLoanCloseResponse, any>>;
5067
5392
  /**
5068
5393
  * Provide a quote estimate for the provided loan open.
5069
5394
  * @param {number} [height] optional block height, defaults to current tip
@@ -5107,6 +5432,7 @@ export declare class QuoteApi extends BaseAPI {
5107
5432
  * @param {string} [toAsset] the target asset
5108
5433
  * @param {number} [amount] the source asset amount in 1e8 decimals
5109
5434
  * @param {string} [destination] the destination address, required to generate memo
5435
+ * @param {string} [refundAddress] the refund address, refunds will be sent here if the swap fails
5110
5436
  * @param {number} [streamingInterval] the interval in which streaming swaps are swapped
5111
5437
  * @param {number} [streamingQuantity] the quantity of swaps within a streaming swap
5112
5438
  * @param {number} [toleranceBps] the maximum basis points from the current feeless swap price to set the limit in the generated memo
@@ -5116,7 +5442,7 @@ export declare class QuoteApi extends BaseAPI {
5116
5442
  * @throws {RequiredError}
5117
5443
  * @memberof QuoteApi
5118
5444
  */
5119
- 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>>;
5445
+ quoteswap(height?: number, fromAsset?: string, toAsset?: string, amount?: number, destination?: string, refundAddress?: string, streamingInterval?: number, streamingQuantity?: number, toleranceBps?: number, affiliateBps?: number, affiliate?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<QuoteSwapResponse, any>>;
5120
5446
  }
5121
5447
  /**
5122
5448
  * SaversApi - axios parameter creator
@@ -5511,6 +5837,238 @@ export declare class ThornamesApi extends BaseAPI {
5511
5837
  */
5512
5838
  thorname(name: string, height?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Thorname, any>>;
5513
5839
  }
5840
+ /**
5841
+ * TradeAccountApi - axios parameter creator
5842
+ * @export
5843
+ */
5844
+ export declare const TradeAccountApiAxiosParamCreator: (configuration?: Configuration) => {
5845
+ /**
5846
+ * Returns the units and depth of a trade account
5847
+ * @param {string} address
5848
+ * @param {number} [height] optional block height, defaults to current tip
5849
+ * @param {*} [options] Override http request option.
5850
+ * @throws {RequiredError}
5851
+ */
5852
+ tradeAccount: (address: string, height?: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
5853
+ };
5854
+ /**
5855
+ * TradeAccountApi - functional programming interface
5856
+ * @export
5857
+ */
5858
+ export declare const TradeAccountApiFp: (configuration?: Configuration) => {
5859
+ /**
5860
+ * Returns the units and depth of a trade account
5861
+ * @param {string} address
5862
+ * @param {number} [height] optional block height, defaults to current tip
5863
+ * @param {*} [options] Override http request option.
5864
+ * @throws {RequiredError}
5865
+ */
5866
+ tradeAccount(address: string, height?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TradeAccountResponse>>;
5867
+ };
5868
+ /**
5869
+ * TradeAccountApi - factory interface
5870
+ * @export
5871
+ */
5872
+ export declare const TradeAccountApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
5873
+ /**
5874
+ * Returns the units and depth of a trade account
5875
+ * @param {string} address
5876
+ * @param {number} [height] optional block height, defaults to current tip
5877
+ * @param {*} [options] Override http request option.
5878
+ * @throws {RequiredError}
5879
+ */
5880
+ tradeAccount(address: string, height?: number, options?: any): AxiosPromise<TradeAccountResponse>;
5881
+ };
5882
+ /**
5883
+ * TradeAccountApi - object-oriented interface
5884
+ * @export
5885
+ * @class TradeAccountApi
5886
+ * @extends {BaseAPI}
5887
+ */
5888
+ export declare class TradeAccountApi extends BaseAPI {
5889
+ /**
5890
+ * Returns the units and depth of a trade account
5891
+ * @param {string} address
5892
+ * @param {number} [height] optional block height, defaults to current tip
5893
+ * @param {*} [options] Override http request option.
5894
+ * @throws {RequiredError}
5895
+ * @memberof TradeAccountApi
5896
+ */
5897
+ tradeAccount(address: string, height?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<TradeAccountResponse, any>>;
5898
+ }
5899
+ /**
5900
+ * TradeAccountsApi - axios parameter creator
5901
+ * @export
5902
+ */
5903
+ export declare const TradeAccountsApiAxiosParamCreator: (configuration?: Configuration) => {
5904
+ /**
5905
+ * Returns all trade accounts for an asset
5906
+ * @param {string} asset
5907
+ * @param {number} [height] optional block height, defaults to current tip
5908
+ * @param {*} [options] Override http request option.
5909
+ * @throws {RequiredError}
5910
+ */
5911
+ tradeAccounts: (asset: string, height?: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
5912
+ };
5913
+ /**
5914
+ * TradeAccountsApi - functional programming interface
5915
+ * @export
5916
+ */
5917
+ export declare const TradeAccountsApiFp: (configuration?: Configuration) => {
5918
+ /**
5919
+ * Returns all trade accounts for an asset
5920
+ * @param {string} asset
5921
+ * @param {number} [height] optional block height, defaults to current tip
5922
+ * @param {*} [options] Override http request option.
5923
+ * @throws {RequiredError}
5924
+ */
5925
+ tradeAccounts(asset: string, height?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TradeAccountsResponse>>;
5926
+ };
5927
+ /**
5928
+ * TradeAccountsApi - factory interface
5929
+ * @export
5930
+ */
5931
+ export declare const TradeAccountsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
5932
+ /**
5933
+ * Returns all trade accounts for an asset
5934
+ * @param {string} asset
5935
+ * @param {number} [height] optional block height, defaults to current tip
5936
+ * @param {*} [options] Override http request option.
5937
+ * @throws {RequiredError}
5938
+ */
5939
+ tradeAccounts(asset: string, height?: number, options?: any): AxiosPromise<TradeAccountsResponse>;
5940
+ };
5941
+ /**
5942
+ * TradeAccountsApi - object-oriented interface
5943
+ * @export
5944
+ * @class TradeAccountsApi
5945
+ * @extends {BaseAPI}
5946
+ */
5947
+ export declare class TradeAccountsApi extends BaseAPI {
5948
+ /**
5949
+ * Returns all trade accounts for an asset
5950
+ * @param {string} asset
5951
+ * @param {number} [height] optional block height, defaults to current tip
5952
+ * @param {*} [options] Override http request option.
5953
+ * @throws {RequiredError}
5954
+ * @memberof TradeAccountsApi
5955
+ */
5956
+ tradeAccounts(asset: string, height?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<TradeAccountsResponse, any>>;
5957
+ }
5958
+ /**
5959
+ * TradeUnitApi - axios parameter creator
5960
+ * @export
5961
+ */
5962
+ export declare const TradeUnitApiAxiosParamCreator: (configuration?: Configuration) => {
5963
+ /**
5964
+ * Returns the total units and depth of a trade asset
5965
+ * @param {string} asset
5966
+ * @param {number} [height] optional block height, defaults to current tip
5967
+ * @param {*} [options] Override http request option.
5968
+ * @throws {RequiredError}
5969
+ */
5970
+ tradeUnit: (asset: string, height?: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
5971
+ };
5972
+ /**
5973
+ * TradeUnitApi - functional programming interface
5974
+ * @export
5975
+ */
5976
+ export declare const TradeUnitApiFp: (configuration?: Configuration) => {
5977
+ /**
5978
+ * Returns the total units and depth of a trade asset
5979
+ * @param {string} asset
5980
+ * @param {number} [height] optional block height, defaults to current tip
5981
+ * @param {*} [options] Override http request option.
5982
+ * @throws {RequiredError}
5983
+ */
5984
+ tradeUnit(asset: string, height?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TradeUnitResponse>>;
5985
+ };
5986
+ /**
5987
+ * TradeUnitApi - factory interface
5988
+ * @export
5989
+ */
5990
+ export declare const TradeUnitApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
5991
+ /**
5992
+ * Returns the total units and depth of a trade asset
5993
+ * @param {string} asset
5994
+ * @param {number} [height] optional block height, defaults to current tip
5995
+ * @param {*} [options] Override http request option.
5996
+ * @throws {RequiredError}
5997
+ */
5998
+ tradeUnit(asset: string, height?: number, options?: any): AxiosPromise<TradeUnitResponse>;
5999
+ };
6000
+ /**
6001
+ * TradeUnitApi - object-oriented interface
6002
+ * @export
6003
+ * @class TradeUnitApi
6004
+ * @extends {BaseAPI}
6005
+ */
6006
+ export declare class TradeUnitApi extends BaseAPI {
6007
+ /**
6008
+ * Returns the total units and depth of a trade asset
6009
+ * @param {string} asset
6010
+ * @param {number} [height] optional block height, defaults to current tip
6011
+ * @param {*} [options] Override http request option.
6012
+ * @throws {RequiredError}
6013
+ * @memberof TradeUnitApi
6014
+ */
6015
+ tradeUnit(asset: string, height?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<TradeUnitResponse, any>>;
6016
+ }
6017
+ /**
6018
+ * TradeUnitsApi - axios parameter creator
6019
+ * @export
6020
+ */
6021
+ export declare const TradeUnitsApiAxiosParamCreator: (configuration?: Configuration) => {
6022
+ /**
6023
+ * Returns the total units and depth for each trade asset
6024
+ * @param {number} [height] optional block height, defaults to current tip
6025
+ * @param {*} [options] Override http request option.
6026
+ * @throws {RequiredError}
6027
+ */
6028
+ tradeUnits: (height?: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
6029
+ };
6030
+ /**
6031
+ * TradeUnitsApi - functional programming interface
6032
+ * @export
6033
+ */
6034
+ export declare const TradeUnitsApiFp: (configuration?: Configuration) => {
6035
+ /**
6036
+ * Returns the total units and depth for each trade asset
6037
+ * @param {number} [height] optional block height, defaults to current tip
6038
+ * @param {*} [options] Override http request option.
6039
+ * @throws {RequiredError}
6040
+ */
6041
+ tradeUnits(height?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TradeUnitsResponse>>;
6042
+ };
6043
+ /**
6044
+ * TradeUnitsApi - factory interface
6045
+ * @export
6046
+ */
6047
+ export declare const TradeUnitsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
6048
+ /**
6049
+ * Returns the total units and depth for each trade asset
6050
+ * @param {number} [height] optional block height, defaults to current tip
6051
+ * @param {*} [options] Override http request option.
6052
+ * @throws {RequiredError}
6053
+ */
6054
+ tradeUnits(height?: number, options?: any): AxiosPromise<TradeUnitsResponse>;
6055
+ };
6056
+ /**
6057
+ * TradeUnitsApi - object-oriented interface
6058
+ * @export
6059
+ * @class TradeUnitsApi
6060
+ * @extends {BaseAPI}
6061
+ */
6062
+ export declare class TradeUnitsApi extends BaseAPI {
6063
+ /**
6064
+ * Returns the total units and depth for each trade asset
6065
+ * @param {number} [height] optional block height, defaults to current tip
6066
+ * @param {*} [options] Override http request option.
6067
+ * @throws {RequiredError}
6068
+ * @memberof TradeUnitsApi
6069
+ */
6070
+ tradeUnits(height?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<TradeUnitsResponse, any>>;
6071
+ }
5514
6072
  /**
5515
6073
  * TransactionsApi - axios parameter creator
5516
6074
  * @export