@xchainjs/xchain-thornode 0.3.2 → 0.3.4

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.110.0
5
+ * The version of the OpenAPI document: 1.116.0
6
6
  * Contact: devs@thorchain.org
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -85,6 +85,12 @@ export interface BaseQuoteResponse {
85
85
  * @memberof BaseQuoteResponse
86
86
  */
87
87
  'slippage_bps'?: number;
88
+ /**
89
+ * the total streaming swap slippage in basis points
90
+ * @type {number}
91
+ * @memberof BaseQuoteResponse
92
+ */
93
+ 'streaming_slippage_bps'?: number;
88
94
  /**
89
95
  * the EVM chain router contract address
90
96
  * @type {string}
@@ -115,6 +121,12 @@ export interface BaseQuoteResponse {
115
121
  * @memberof BaseQuoteResponse
116
122
  */
117
123
  'dust_threshold'?: string;
124
+ /**
125
+ * The recommended minimum inbound amount for this transaction type & inbound asset. Sending less than this amount could result in failed refunds.
126
+ * @type {string}
127
+ * @memberof BaseQuoteResponse
128
+ */
129
+ 'recommended_min_amount_in'?: string;
118
130
  }
119
131
  /**
120
132
  *
@@ -824,6 +836,18 @@ export interface MsgSwap {
824
836
  * @memberof MsgSwap
825
837
  */
826
838
  'order_type'?: number;
839
+ /**
840
+ * number of swaps to execute in a streaming swap
841
+ * @type {number}
842
+ * @memberof MsgSwap
843
+ */
844
+ 'stream_quantity'?: number;
845
+ /**
846
+ * the interval (in blocks) to execute the streaming swap
847
+ * @type {number}
848
+ * @memberof MsgSwap
849
+ */
850
+ 'stream_interval'?: number;
827
851
  }
828
852
  /**
829
853
  *
@@ -855,6 +879,12 @@ export interface NetworkResponse {
855
879
  * @memberof NetworkResponse
856
880
  */
857
881
  'total_bond_units': string;
882
+ /**
883
+ * effective security bond used to determine maximum pooled RUNE
884
+ * @type {string}
885
+ * @memberof NetworkResponse
886
+ */
887
+ 'effective_security_bond': string;
858
888
  /**
859
889
  * total reserve RUNE
860
890
  * @type {string}
@@ -885,6 +915,30 @@ export interface NetworkResponse {
885
915
  * @memberof NetworkResponse
886
916
  */
887
917
  'outbound_fee_multiplier'?: string;
918
+ /**
919
+ * the outbound transaction fee in rune, converted from the NativeOutboundFeeUSD mimir
920
+ * @type {string}
921
+ * @memberof NetworkResponse
922
+ */
923
+ 'native_outbound_fee_rune': string;
924
+ /**
925
+ * the native transaction fee in rune, converted from the NativeTransactionFeeUSD mimir
926
+ * @type {string}
927
+ * @memberof NetworkResponse
928
+ */
929
+ 'native_tx_fee_rune': string;
930
+ /**
931
+ * the thorname register fee in rune, converted from the TNSRegisterFeeUSD mimir
932
+ * @type {string}
933
+ * @memberof NetworkResponse
934
+ */
935
+ 'tns_register_fee_rune': string;
936
+ /**
937
+ * the thorname fee per block in rune, converted from the TNSFeePerBlockUSD mimir
938
+ * @type {string}
939
+ * @memberof NetworkResponse
940
+ */
941
+ 'tns_fee_per_block_rune': string;
888
942
  }
889
943
  /**
890
944
  *
@@ -1489,7 +1543,7 @@ export interface QuoteLoanCloseResponse {
1489
1543
  * @type {string}
1490
1544
  * @memberof QuoteLoanCloseResponse
1491
1545
  */
1492
- 'inbound_address': string;
1546
+ 'inbound_address'?: string;
1493
1547
  /**
1494
1548
  * the approximate number of source chain blocks required before processing
1495
1549
  * @type {number}
@@ -1526,6 +1580,12 @@ export interface QuoteLoanCloseResponse {
1526
1580
  * @memberof QuoteLoanCloseResponse
1527
1581
  */
1528
1582
  'slippage_bps'?: number;
1583
+ /**
1584
+ * the total streaming swap slippage in basis points
1585
+ * @type {number}
1586
+ * @memberof QuoteLoanCloseResponse
1587
+ */
1588
+ 'streaming_slippage_bps'?: number;
1529
1589
  /**
1530
1590
  * the EVM chain router contract address
1531
1591
  * @type {string}
@@ -1556,6 +1616,12 @@ export interface QuoteLoanCloseResponse {
1556
1616
  * @memberof QuoteLoanCloseResponse
1557
1617
  */
1558
1618
  'dust_threshold'?: string;
1619
+ /**
1620
+ * The recommended minimum inbound amount for this transaction type & inbound asset. Sending less than this amount could result in failed refunds.
1621
+ * @type {string}
1622
+ * @memberof QuoteLoanCloseResponse
1623
+ */
1624
+ 'recommended_min_amount_in'?: string;
1559
1625
  /**
1560
1626
  * generated memo for the loan close
1561
1627
  * @type {string}
@@ -1592,7 +1658,7 @@ export interface QuoteLoanOpenResponse {
1592
1658
  * @type {string}
1593
1659
  * @memberof QuoteLoanOpenResponse
1594
1660
  */
1595
- 'inbound_address': string;
1661
+ 'inbound_address'?: string;
1596
1662
  /**
1597
1663
  * the approximate number of source chain blocks required before processing
1598
1664
  * @type {number}
@@ -1629,6 +1695,12 @@ export interface QuoteLoanOpenResponse {
1629
1695
  * @memberof QuoteLoanOpenResponse
1630
1696
  */
1631
1697
  'slippage_bps'?: number;
1698
+ /**
1699
+ * the total streaming swap slippage in basis points
1700
+ * @type {number}
1701
+ * @memberof QuoteLoanOpenResponse
1702
+ */
1703
+ 'streaming_slippage_bps'?: number;
1632
1704
  /**
1633
1705
  * the EVM chain router contract address
1634
1706
  * @type {string}
@@ -1659,6 +1731,12 @@ export interface QuoteLoanOpenResponse {
1659
1731
  * @memberof QuoteLoanOpenResponse
1660
1732
  */
1661
1733
  'dust_threshold'?: string;
1734
+ /**
1735
+ * The recommended minimum inbound amount for this transaction type & inbound asset. Sending less than this amount could result in failed refunds.
1736
+ * @type {string}
1737
+ * @memberof QuoteLoanOpenResponse
1738
+ */
1739
+ 'recommended_min_amount_in'?: string;
1662
1740
  /**
1663
1741
  * generated memo for the loan open
1664
1742
  * @type {string}
@@ -1738,6 +1816,12 @@ export interface QuoteSaverDepositResponse {
1738
1816
  * @memberof QuoteSaverDepositResponse
1739
1817
  */
1740
1818
  'slippage_bps': number;
1819
+ /**
1820
+ * the total streaming swap slippage in basis points
1821
+ * @type {number}
1822
+ * @memberof QuoteSaverDepositResponse
1823
+ */
1824
+ 'streaming_slippage_bps'?: number;
1741
1825
  /**
1742
1826
  * the EVM chain router contract address
1743
1827
  * @type {string}
@@ -1768,6 +1852,12 @@ export interface QuoteSaverDepositResponse {
1768
1852
  * @memberof QuoteSaverDepositResponse
1769
1853
  */
1770
1854
  'dust_threshold'?: string;
1855
+ /**
1856
+ * The recommended minimum inbound amount for this transaction type & inbound asset. Sending less than this amount could result in failed refunds.
1857
+ * @type {string}
1858
+ * @memberof QuoteSaverDepositResponse
1859
+ */
1860
+ 'recommended_min_amount_in'?: string;
1771
1861
  /**
1772
1862
  * generated memo for the deposit
1773
1863
  * @type {string}
@@ -1775,17 +1865,17 @@ export interface QuoteSaverDepositResponse {
1775
1865
  */
1776
1866
  'memo': string;
1777
1867
  /**
1778
- * migrate to expected_amount_deposit (will be deprecated in v1.104)
1868
+ * same as expected_amount_deposit, to be deprecated in favour of expected_amount_deposit
1779
1869
  * @type {string}
1780
1870
  * @memberof QuoteSaverDepositResponse
1781
1871
  */
1782
- 'expected_amount_out': string;
1872
+ 'expected_amount_out'?: string;
1783
1873
  /**
1784
1874
  * the amount of the target asset the user can expect to deposit after fees
1785
1875
  * @type {string}
1786
1876
  * @memberof QuoteSaverDepositResponse
1787
1877
  */
1788
- 'expected_amount_deposit'?: string;
1878
+ 'expected_amount_deposit': string;
1789
1879
  }
1790
1880
  /**
1791
1881
  *
@@ -1835,6 +1925,12 @@ export interface QuoteSaverWithdrawResponse {
1835
1925
  * @memberof QuoteSaverWithdrawResponse
1836
1926
  */
1837
1927
  'slippage_bps': number;
1928
+ /**
1929
+ * the total streaming swap slippage in basis points
1930
+ * @type {number}
1931
+ * @memberof QuoteSaverWithdrawResponse
1932
+ */
1933
+ 'streaming_slippage_bps'?: number;
1838
1934
  /**
1839
1935
  * the EVM chain router contract address
1840
1936
  * @type {string}
@@ -1865,6 +1961,12 @@ export interface QuoteSaverWithdrawResponse {
1865
1961
  * @memberof QuoteSaverWithdrawResponse
1866
1962
  */
1867
1963
  'dust_threshold'?: string;
1964
+ /**
1965
+ * The recommended minimum inbound amount for this transaction type & inbound asset. Sending less than this amount could result in failed refunds.
1966
+ * @type {string}
1967
+ * @memberof QuoteSaverWithdrawResponse
1968
+ */
1969
+ 'recommended_min_amount_in'?: string;
1868
1970
  /**
1869
1971
  * generated memo for the withdraw, the client can use this OR send the dust amount
1870
1972
  * @type {string}
@@ -1895,7 +1997,7 @@ export interface QuoteSwapResponse {
1895
1997
  * @type {string}
1896
1998
  * @memberof QuoteSwapResponse
1897
1999
  */
1898
- 'inbound_address': string;
2000
+ 'inbound_address'?: string;
1899
2001
  /**
1900
2002
  * the approximate number of source chain blocks required before processing
1901
2003
  * @type {number}
@@ -1932,6 +2034,12 @@ export interface QuoteSwapResponse {
1932
2034
  * @memberof QuoteSwapResponse
1933
2035
  */
1934
2036
  'slippage_bps': number;
2037
+ /**
2038
+ * the total streaming swap slippage in basis points
2039
+ * @type {number}
2040
+ * @memberof QuoteSwapResponse
2041
+ */
2042
+ 'streaming_slippage_bps': number;
1935
2043
  /**
1936
2044
  * the EVM chain router contract address
1937
2045
  * @type {string}
@@ -1962,6 +2070,12 @@ export interface QuoteSwapResponse {
1962
2070
  * @memberof QuoteSwapResponse
1963
2071
  */
1964
2072
  'dust_threshold'?: string;
2073
+ /**
2074
+ * The recommended minimum inbound amount for this transaction type & inbound asset. Sending less than this amount could result in failed refunds.
2075
+ * @type {string}
2076
+ * @memberof QuoteSwapResponse
2077
+ */
2078
+ 'recommended_min_amount_in'?: string;
1965
2079
  /**
1966
2080
  * generated memo for the swap
1967
2081
  * @type {string}
@@ -1974,6 +2088,36 @@ export interface QuoteSwapResponse {
1974
2088
  * @memberof QuoteSwapResponse
1975
2089
  */
1976
2090
  'expected_amount_out': string;
2091
+ /**
2092
+ * the amount of the target asset the user can expect to receive after fees for a streaming swap
2093
+ * @type {string}
2094
+ * @memberof QuoteSwapResponse
2095
+ */
2096
+ 'expected_amount_out_streaming': string;
2097
+ /**
2098
+ * the maxiumum amount of trades a streaming swap can do for a trade
2099
+ * @type {number}
2100
+ * @memberof QuoteSwapResponse
2101
+ */
2102
+ 'max_streaming_quantity'?: number;
2103
+ /**
2104
+ * the number of blocks the streaming swap will execute over
2105
+ * @type {number}
2106
+ * @memberof QuoteSwapResponse
2107
+ */
2108
+ 'streaming_swap_blocks'?: number;
2109
+ /**
2110
+ * approx the number of seconds the streaming swap will execute over
2111
+ * @type {number}
2112
+ * @memberof QuoteSwapResponse
2113
+ */
2114
+ 'streaming_swap_seconds'?: number;
2115
+ /**
2116
+ * total number of seconds a swap is expected to take (inbound conf + streaming swap + outbound delay)
2117
+ * @type {number}
2118
+ * @memberof QuoteSwapResponse
2119
+ */
2120
+ 'total_swap_seconds'?: number;
1977
2121
  }
1978
2122
  /**
1979
2123
  *
@@ -2044,6 +2188,74 @@ export interface SaversResponse extends Array<Saver> {
2044
2188
  */
2045
2189
  export interface ScheduledResponse extends Array<TxOutItem> {
2046
2190
  }
2191
+ /**
2192
+ *
2193
+ * @export
2194
+ * @interface StreamingSwap
2195
+ */
2196
+ export interface StreamingSwap {
2197
+ /**
2198
+ * the hash of a transaction
2199
+ * @type {string}
2200
+ * @memberof StreamingSwap
2201
+ */
2202
+ 'tx_id'?: string;
2203
+ /**
2204
+ * how often each swap is made, in blocks
2205
+ * @type {number}
2206
+ * @memberof StreamingSwap
2207
+ */
2208
+ 'interval'?: number;
2209
+ /**
2210
+ * the total number of swaps in a streaming swaps
2211
+ * @type {number}
2212
+ * @memberof StreamingSwap
2213
+ */
2214
+ 'quantity'?: number;
2215
+ /**
2216
+ * the amount of swap attempts so far
2217
+ * @type {number}
2218
+ * @memberof StreamingSwap
2219
+ */
2220
+ 'count'?: number;
2221
+ /**
2222
+ * the block height of the latest swap
2223
+ * @type {number}
2224
+ * @memberof StreamingSwap
2225
+ */
2226
+ 'last_height'?: number;
2227
+ /**
2228
+ * the total number of tokens the swapper wants to receive of the output asset
2229
+ * @type {string}
2230
+ * @memberof StreamingSwap
2231
+ */
2232
+ 'trade_target'?: string;
2233
+ /**
2234
+ * the number of input tokens the swapper has deposited
2235
+ * @type {string}
2236
+ * @memberof StreamingSwap
2237
+ */
2238
+ 'deposit'?: string;
2239
+ /**
2240
+ * the amount of input tokens that have been swapped so far
2241
+ * @type {string}
2242
+ * @memberof StreamingSwap
2243
+ */
2244
+ 'in'?: string;
2245
+ /**
2246
+ * the amount of output tokens that have been swapped so far
2247
+ * @type {string}
2248
+ * @memberof StreamingSwap
2249
+ */
2250
+ 'out'?: string;
2251
+ }
2252
+ /**
2253
+ *
2254
+ * @export
2255
+ * @interface StreamingSwapsResponse
2256
+ */
2257
+ export interface StreamingSwapsResponse extends Array<StreamingSwap> {
2258
+ }
2047
2259
  /**
2048
2260
  *
2049
2261
  * @export
@@ -2081,6 +2293,12 @@ export interface Thorname {
2081
2293
  * @memberof Thorname
2082
2294
  */
2083
2295
  'preferred_asset': string;
2296
+ /**
2297
+ * Amount of RUNE currently accrued by this thorname in affiliate fees waiting to be swapped to preferred asset.
2298
+ * @type {string}
2299
+ * @memberof Thorname
2300
+ */
2301
+ 'affiliate_collector_rune'?: string;
2084
2302
  /**
2085
2303
  *
2086
2304
  * @type {Array<ThornameAlias>}
@@ -2828,6 +3046,12 @@ export interface VaultPubkeysResponse {
2828
3046
  * @memberof VaultPubkeysResponse
2829
3047
  */
2830
3048
  'yggdrasil': Array<VaultInfo>;
3049
+ /**
3050
+ *
3051
+ * @type {Array<VaultInfo>}
3052
+ * @memberof VaultPubkeysResponse
3053
+ */
3054
+ 'inactive': Array<VaultInfo>;
2831
3055
  }
2832
3056
  /**
2833
3057
  *
@@ -4045,14 +4269,13 @@ export declare const QuoteApiAxiosParamCreator: (configuration?: Configuration)
4045
4269
  * @param {number} [height] optional block height, defaults to current tip
4046
4270
  * @param {string} [asset] the asset used to repay the loan
4047
4271
  * @param {number} [amount] the asset amount in 1e8 decimals
4048
- * @param {string} [fromAddress] the address that is paying off the loan
4049
4272
  * @param {string} [loanAsset] the collateral asset of the loan
4050
4273
  * @param {string} [loanOwner] the owner of the loan collateral
4051
4274
  * @param {string} [minOut] the minimum amount of the target asset to accept
4052
4275
  * @param {*} [options] Override http request option.
4053
4276
  * @throws {RequiredError}
4054
4277
  */
4055
- quoteloanclose: (height?: number, asset?: string, amount?: number, fromAddress?: string, loanAsset?: string, loanOwner?: string, minOut?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
4278
+ quoteloanclose: (height?: number, asset?: string, amount?: number, loanAsset?: string, loanOwner?: string, minOut?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
4056
4279
  /**
4057
4280
  * Provide a quote estimate for the provided loan open.
4058
4281
  * @param {number} [height] optional block height, defaults to current tip
@@ -4093,6 +4316,8 @@ export declare const QuoteApiAxiosParamCreator: (configuration?: Configuration)
4093
4316
  * @param {string} [toAsset] the target asset
4094
4317
  * @param {number} [amount] the source asset amount in 1e8 decimals
4095
4318
  * @param {string} [destination] the destination address, required to generate memo
4319
+ * @param {number} [streamingInterval] the interval in which streaming swaps are swapped
4320
+ * @param {number} [streamingQuantity] the quantity of swaps within a streaming swap
4096
4321
  * @param {string} [fromAddress] the from address, required if the from asset is a synth
4097
4322
  * @param {number} [toleranceBps] the maximum basis points from the current feeless swap price to set the limit in the generated memo
4098
4323
  * @param {number} [affiliateBps] the affiliate fee in basis points
@@ -4100,7 +4325,7 @@ export declare const QuoteApiAxiosParamCreator: (configuration?: Configuration)
4100
4325
  * @param {*} [options] Override http request option.
4101
4326
  * @throws {RequiredError}
4102
4327
  */
4103
- quoteswap: (height?: number, fromAsset?: string, toAsset?: string, amount?: number, destination?: string, fromAddress?: string, toleranceBps?: number, affiliateBps?: number, affiliate?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
4328
+ 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>;
4104
4329
  };
4105
4330
  /**
4106
4331
  * QuoteApi - functional programming interface
@@ -4112,14 +4337,13 @@ export declare const QuoteApiFp: (configuration?: Configuration) => {
4112
4337
  * @param {number} [height] optional block height, defaults to current tip
4113
4338
  * @param {string} [asset] the asset used to repay the loan
4114
4339
  * @param {number} [amount] the asset amount in 1e8 decimals
4115
- * @param {string} [fromAddress] the address that is paying off the loan
4116
4340
  * @param {string} [loanAsset] the collateral asset of the loan
4117
4341
  * @param {string} [loanOwner] the owner of the loan collateral
4118
4342
  * @param {string} [minOut] the minimum amount of the target asset to accept
4119
4343
  * @param {*} [options] Override http request option.
4120
4344
  * @throws {RequiredError}
4121
4345
  */
4122
- quoteloanclose(height?: number, asset?: string, amount?: number, fromAddress?: string, loanAsset?: string, loanOwner?: string, minOut?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<QuoteLoanCloseResponse>>;
4346
+ quoteloanclose(height?: number, asset?: string, amount?: number, loanAsset?: string, loanOwner?: string, minOut?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<QuoteLoanCloseResponse>>;
4123
4347
  /**
4124
4348
  * Provide a quote estimate for the provided loan open.
4125
4349
  * @param {number} [height] optional block height, defaults to current tip
@@ -4160,6 +4384,8 @@ export declare const QuoteApiFp: (configuration?: Configuration) => {
4160
4384
  * @param {string} [toAsset] the target asset
4161
4385
  * @param {number} [amount] the source asset amount in 1e8 decimals
4162
4386
  * @param {string} [destination] the destination address, required to generate memo
4387
+ * @param {number} [streamingInterval] the interval in which streaming swaps are swapped
4388
+ * @param {number} [streamingQuantity] the quantity of swaps within a streaming swap
4163
4389
  * @param {string} [fromAddress] the from address, required if the from asset is a synth
4164
4390
  * @param {number} [toleranceBps] the maximum basis points from the current feeless swap price to set the limit in the generated memo
4165
4391
  * @param {number} [affiliateBps] the affiliate fee in basis points
@@ -4167,7 +4393,7 @@ export declare const QuoteApiFp: (configuration?: Configuration) => {
4167
4393
  * @param {*} [options] Override http request option.
4168
4394
  * @throws {RequiredError}
4169
4395
  */
4170
- quoteswap(height?: number, fromAsset?: string, toAsset?: string, amount?: number, destination?: string, fromAddress?: string, toleranceBps?: number, affiliateBps?: number, affiliate?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<QuoteSwapResponse>>;
4396
+ 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>>;
4171
4397
  };
4172
4398
  /**
4173
4399
  * QuoteApi - factory interface
@@ -4179,14 +4405,13 @@ export declare const QuoteApiFactory: (configuration?: Configuration, basePath?:
4179
4405
  * @param {number} [height] optional block height, defaults to current tip
4180
4406
  * @param {string} [asset] the asset used to repay the loan
4181
4407
  * @param {number} [amount] the asset amount in 1e8 decimals
4182
- * @param {string} [fromAddress] the address that is paying off the loan
4183
4408
  * @param {string} [loanAsset] the collateral asset of the loan
4184
4409
  * @param {string} [loanOwner] the owner of the loan collateral
4185
4410
  * @param {string} [minOut] the minimum amount of the target asset to accept
4186
4411
  * @param {*} [options] Override http request option.
4187
4412
  * @throws {RequiredError}
4188
4413
  */
4189
- quoteloanclose(height?: number, asset?: string, amount?: number, fromAddress?: string, loanAsset?: string, loanOwner?: string, minOut?: string, options?: any): AxiosPromise<QuoteLoanCloseResponse>;
4414
+ quoteloanclose(height?: number, asset?: string, amount?: number, loanAsset?: string, loanOwner?: string, minOut?: string, options?: any): AxiosPromise<QuoteLoanCloseResponse>;
4190
4415
  /**
4191
4416
  * Provide a quote estimate for the provided loan open.
4192
4417
  * @param {number} [height] optional block height, defaults to current tip
@@ -4227,6 +4452,8 @@ export declare const QuoteApiFactory: (configuration?: Configuration, basePath?:
4227
4452
  * @param {string} [toAsset] the target asset
4228
4453
  * @param {number} [amount] the source asset amount in 1e8 decimals
4229
4454
  * @param {string} [destination] the destination address, required to generate memo
4455
+ * @param {number} [streamingInterval] the interval in which streaming swaps are swapped
4456
+ * @param {number} [streamingQuantity] the quantity of swaps within a streaming swap
4230
4457
  * @param {string} [fromAddress] the from address, required if the from asset is a synth
4231
4458
  * @param {number} [toleranceBps] the maximum basis points from the current feeless swap price to set the limit in the generated memo
4232
4459
  * @param {number} [affiliateBps] the affiliate fee in basis points
@@ -4234,7 +4461,7 @@ export declare const QuoteApiFactory: (configuration?: Configuration, basePath?:
4234
4461
  * @param {*} [options] Override http request option.
4235
4462
  * @throws {RequiredError}
4236
4463
  */
4237
- quoteswap(height?: number, fromAsset?: string, toAsset?: string, amount?: number, destination?: string, fromAddress?: string, toleranceBps?: number, affiliateBps?: number, affiliate?: string, options?: any): AxiosPromise<QuoteSwapResponse>;
4464
+ 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>;
4238
4465
  };
4239
4466
  /**
4240
4467
  * QuoteApi - object-oriented interface
@@ -4248,7 +4475,6 @@ export declare class QuoteApi extends BaseAPI {
4248
4475
  * @param {number} [height] optional block height, defaults to current tip
4249
4476
  * @param {string} [asset] the asset used to repay the loan
4250
4477
  * @param {number} [amount] the asset amount in 1e8 decimals
4251
- * @param {string} [fromAddress] the address that is paying off the loan
4252
4478
  * @param {string} [loanAsset] the collateral asset of the loan
4253
4479
  * @param {string} [loanOwner] the owner of the loan collateral
4254
4480
  * @param {string} [minOut] the minimum amount of the target asset to accept
@@ -4256,7 +4482,7 @@ export declare class QuoteApi extends BaseAPI {
4256
4482
  * @throws {RequiredError}
4257
4483
  * @memberof QuoteApi
4258
4484
  */
4259
- quoteloanclose(height?: number, asset?: string, amount?: number, fromAddress?: string, loanAsset?: string, loanOwner?: string, minOut?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<QuoteLoanCloseResponse, any>>;
4485
+ quoteloanclose(height?: number, asset?: string, amount?: number, loanAsset?: string, loanOwner?: string, minOut?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<QuoteLoanCloseResponse, any>>;
4260
4486
  /**
4261
4487
  * Provide a quote estimate for the provided loan open.
4262
4488
  * @param {number} [height] optional block height, defaults to current tip
@@ -4300,6 +4526,8 @@ export declare class QuoteApi extends BaseAPI {
4300
4526
  * @param {string} [toAsset] the target asset
4301
4527
  * @param {number} [amount] the source asset amount in 1e8 decimals
4302
4528
  * @param {string} [destination] the destination address, required to generate memo
4529
+ * @param {number} [streamingInterval] the interval in which streaming swaps are swapped
4530
+ * @param {number} [streamingQuantity] the quantity of swaps within a streaming swap
4303
4531
  * @param {string} [fromAddress] the from address, required if the from asset is a synth
4304
4532
  * @param {number} [toleranceBps] the maximum basis points from the current feeless swap price to set the limit in the generated memo
4305
4533
  * @param {number} [affiliateBps] the affiliate fee in basis points
@@ -4308,7 +4536,7 @@ export declare class QuoteApi extends BaseAPI {
4308
4536
  * @throws {RequiredError}
4309
4537
  * @memberof QuoteApi
4310
4538
  */
4311
- quoteswap(height?: number, fromAsset?: string, toAsset?: string, amount?: number, destination?: string, fromAddress?: string, toleranceBps?: number, affiliateBps?: number, affiliate?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<QuoteSwapResponse, any>>;
4539
+ 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>>;
4312
4540
  }
4313
4541
  /**
4314
4542
  * SaversApi - axios parameter creator
@@ -4406,6 +4634,94 @@ export declare class SaversApi extends BaseAPI {
4406
4634
  */
4407
4635
  savers(asset: string, height?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<SaversResponse, any>>;
4408
4636
  }
4637
+ /**
4638
+ * StreamingSwapApi - axios parameter creator
4639
+ * @export
4640
+ */
4641
+ export declare const StreamingSwapApiAxiosParamCreator: (configuration?: Configuration) => {
4642
+ /**
4643
+ * Returns the state of a streaming swap
4644
+ * @param {string} hash
4645
+ * @param {number} [height] optional block height, defaults to current tip
4646
+ * @param {*} [options] Override http request option.
4647
+ * @throws {RequiredError}
4648
+ */
4649
+ streamSwap: (hash: string, height?: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
4650
+ /**
4651
+ * Returns the state of all streaming swaps
4652
+ * @param {number} [height] optional block height, defaults to current tip
4653
+ * @param {*} [options] Override http request option.
4654
+ * @throws {RequiredError}
4655
+ */
4656
+ streamSwaps: (height?: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
4657
+ };
4658
+ /**
4659
+ * StreamingSwapApi - functional programming interface
4660
+ * @export
4661
+ */
4662
+ export declare const StreamingSwapApiFp: (configuration?: Configuration) => {
4663
+ /**
4664
+ * Returns the state of a streaming swap
4665
+ * @param {string} hash
4666
+ * @param {number} [height] optional block height, defaults to current tip
4667
+ * @param {*} [options] Override http request option.
4668
+ * @throws {RequiredError}
4669
+ */
4670
+ streamSwap(hash: string, height?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StreamingSwap>>;
4671
+ /**
4672
+ * Returns the state of all streaming swaps
4673
+ * @param {number} [height] optional block height, defaults to current tip
4674
+ * @param {*} [options] Override http request option.
4675
+ * @throws {RequiredError}
4676
+ */
4677
+ streamSwaps(height?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StreamingSwapsResponse>>;
4678
+ };
4679
+ /**
4680
+ * StreamingSwapApi - factory interface
4681
+ * @export
4682
+ */
4683
+ export declare const StreamingSwapApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
4684
+ /**
4685
+ * Returns the state of a streaming swap
4686
+ * @param {string} hash
4687
+ * @param {number} [height] optional block height, defaults to current tip
4688
+ * @param {*} [options] Override http request option.
4689
+ * @throws {RequiredError}
4690
+ */
4691
+ streamSwap(hash: string, height?: number, options?: any): AxiosPromise<StreamingSwap>;
4692
+ /**
4693
+ * Returns the state of all streaming swaps
4694
+ * @param {number} [height] optional block height, defaults to current tip
4695
+ * @param {*} [options] Override http request option.
4696
+ * @throws {RequiredError}
4697
+ */
4698
+ streamSwaps(height?: number, options?: any): AxiosPromise<StreamingSwapsResponse>;
4699
+ };
4700
+ /**
4701
+ * StreamingSwapApi - object-oriented interface
4702
+ * @export
4703
+ * @class StreamingSwapApi
4704
+ * @extends {BaseAPI}
4705
+ */
4706
+ export declare class StreamingSwapApi extends BaseAPI {
4707
+ /**
4708
+ * Returns the state of a streaming swap
4709
+ * @param {string} hash
4710
+ * @param {number} [height] optional block height, defaults to current tip
4711
+ * @param {*} [options] Override http request option.
4712
+ * @throws {RequiredError}
4713
+ * @memberof StreamingSwapApi
4714
+ */
4715
+ streamSwap(hash: string, height?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<StreamingSwap, any>>;
4716
+ /**
4717
+ * Returns the state of all streaming swaps
4718
+ * @param {number} [height] optional block height, defaults to current tip
4719
+ * @param {*} [options] Override http request option.
4720
+ * @throws {RequiredError}
4721
+ * @memberof StreamingSwapApi
4722
+ */
4723
+ streamSwaps(height?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<StreamingSwapsResponse, any>>;
4724
+ }
4409
4725
  /**
4410
4726
  * TSSApi - axios parameter creator
4411
4727
  * @export
@@ -2,7 +2,7 @@
2
2
  * Thornode API
3
3
  * Thornode REST API.
4
4
  *
5
- * The version of the OpenAPI document: 1.110.0
5
+ * The version of the OpenAPI document: 1.116.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.110.0
5
+ * The version of the OpenAPI document: 1.116.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.110.0
5
+ * The version of the OpenAPI document: 1.116.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.110.0
5
+ * The version of the OpenAPI document: 1.116.0
6
6
  * Contact: devs@thorchain.org
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).