@xchainjs/xchain-thornode 0.3.3 → 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.
- package/lib/generated/thornodeApi/api.d.ts +283 -5
- package/lib/generated/thornodeApi/base.d.ts +1 -1
- package/lib/generated/thornodeApi/common.d.ts +1 -1
- package/lib/generated/thornodeApi/configuration.d.ts +1 -1
- package/lib/generated/thornodeApi/index.d.ts +1 -1
- package/lib/index.esm.js +182 -9
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +185 -8
- package/lib/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Thornode API
|
|
3
3
|
* Thornode REST API.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.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}
|
|
@@ -830,6 +836,18 @@ export interface MsgSwap {
|
|
|
830
836
|
* @memberof MsgSwap
|
|
831
837
|
*/
|
|
832
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;
|
|
833
851
|
}
|
|
834
852
|
/**
|
|
835
853
|
*
|
|
@@ -861,6 +879,12 @@ export interface NetworkResponse {
|
|
|
861
879
|
* @memberof NetworkResponse
|
|
862
880
|
*/
|
|
863
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;
|
|
864
888
|
/**
|
|
865
889
|
* total reserve RUNE
|
|
866
890
|
* @type {string}
|
|
@@ -891,6 +915,30 @@ export interface NetworkResponse {
|
|
|
891
915
|
* @memberof NetworkResponse
|
|
892
916
|
*/
|
|
893
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;
|
|
894
942
|
}
|
|
895
943
|
/**
|
|
896
944
|
*
|
|
@@ -1532,6 +1580,12 @@ export interface QuoteLoanCloseResponse {
|
|
|
1532
1580
|
* @memberof QuoteLoanCloseResponse
|
|
1533
1581
|
*/
|
|
1534
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;
|
|
1535
1589
|
/**
|
|
1536
1590
|
* the EVM chain router contract address
|
|
1537
1591
|
* @type {string}
|
|
@@ -1641,6 +1695,12 @@ export interface QuoteLoanOpenResponse {
|
|
|
1641
1695
|
* @memberof QuoteLoanOpenResponse
|
|
1642
1696
|
*/
|
|
1643
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;
|
|
1644
1704
|
/**
|
|
1645
1705
|
* the EVM chain router contract address
|
|
1646
1706
|
* @type {string}
|
|
@@ -1756,6 +1816,12 @@ export interface QuoteSaverDepositResponse {
|
|
|
1756
1816
|
* @memberof QuoteSaverDepositResponse
|
|
1757
1817
|
*/
|
|
1758
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;
|
|
1759
1825
|
/**
|
|
1760
1826
|
* the EVM chain router contract address
|
|
1761
1827
|
* @type {string}
|
|
@@ -1859,6 +1925,12 @@ export interface QuoteSaverWithdrawResponse {
|
|
|
1859
1925
|
* @memberof QuoteSaverWithdrawResponse
|
|
1860
1926
|
*/
|
|
1861
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;
|
|
1862
1934
|
/**
|
|
1863
1935
|
* the EVM chain router contract address
|
|
1864
1936
|
* @type {string}
|
|
@@ -1962,6 +2034,12 @@ export interface QuoteSwapResponse {
|
|
|
1962
2034
|
* @memberof QuoteSwapResponse
|
|
1963
2035
|
*/
|
|
1964
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;
|
|
1965
2043
|
/**
|
|
1966
2044
|
* the EVM chain router contract address
|
|
1967
2045
|
* @type {string}
|
|
@@ -2010,6 +2088,36 @@ export interface QuoteSwapResponse {
|
|
|
2010
2088
|
* @memberof QuoteSwapResponse
|
|
2011
2089
|
*/
|
|
2012
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;
|
|
2013
2121
|
}
|
|
2014
2122
|
/**
|
|
2015
2123
|
*
|
|
@@ -2080,6 +2188,74 @@ export interface SaversResponse extends Array<Saver> {
|
|
|
2080
2188
|
*/
|
|
2081
2189
|
export interface ScheduledResponse extends Array<TxOutItem> {
|
|
2082
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
|
+
}
|
|
2083
2259
|
/**
|
|
2084
2260
|
*
|
|
2085
2261
|
* @export
|
|
@@ -2117,6 +2293,12 @@ export interface Thorname {
|
|
|
2117
2293
|
* @memberof Thorname
|
|
2118
2294
|
*/
|
|
2119
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;
|
|
2120
2302
|
/**
|
|
2121
2303
|
*
|
|
2122
2304
|
* @type {Array<ThornameAlias>}
|
|
@@ -4134,6 +4316,8 @@ export declare const QuoteApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
4134
4316
|
* @param {string} [toAsset] the target asset
|
|
4135
4317
|
* @param {number} [amount] the source asset amount in 1e8 decimals
|
|
4136
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
|
|
4137
4321
|
* @param {string} [fromAddress] the from address, required if the from asset is a synth
|
|
4138
4322
|
* @param {number} [toleranceBps] the maximum basis points from the current feeless swap price to set the limit in the generated memo
|
|
4139
4323
|
* @param {number} [affiliateBps] the affiliate fee in basis points
|
|
@@ -4141,7 +4325,7 @@ export declare const QuoteApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
4141
4325
|
* @param {*} [options] Override http request option.
|
|
4142
4326
|
* @throws {RequiredError}
|
|
4143
4327
|
*/
|
|
4144
|
-
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>;
|
|
4145
4329
|
};
|
|
4146
4330
|
/**
|
|
4147
4331
|
* QuoteApi - functional programming interface
|
|
@@ -4200,6 +4384,8 @@ export declare const QuoteApiFp: (configuration?: Configuration) => {
|
|
|
4200
4384
|
* @param {string} [toAsset] the target asset
|
|
4201
4385
|
* @param {number} [amount] the source asset amount in 1e8 decimals
|
|
4202
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
|
|
4203
4389
|
* @param {string} [fromAddress] the from address, required if the from asset is a synth
|
|
4204
4390
|
* @param {number} [toleranceBps] the maximum basis points from the current feeless swap price to set the limit in the generated memo
|
|
4205
4391
|
* @param {number} [affiliateBps] the affiliate fee in basis points
|
|
@@ -4207,7 +4393,7 @@ export declare const QuoteApiFp: (configuration?: Configuration) => {
|
|
|
4207
4393
|
* @param {*} [options] Override http request option.
|
|
4208
4394
|
* @throws {RequiredError}
|
|
4209
4395
|
*/
|
|
4210
|
-
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>>;
|
|
4211
4397
|
};
|
|
4212
4398
|
/**
|
|
4213
4399
|
* QuoteApi - factory interface
|
|
@@ -4266,6 +4452,8 @@ export declare const QuoteApiFactory: (configuration?: Configuration, basePath?:
|
|
|
4266
4452
|
* @param {string} [toAsset] the target asset
|
|
4267
4453
|
* @param {number} [amount] the source asset amount in 1e8 decimals
|
|
4268
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
|
|
4269
4457
|
* @param {string} [fromAddress] the from address, required if the from asset is a synth
|
|
4270
4458
|
* @param {number} [toleranceBps] the maximum basis points from the current feeless swap price to set the limit in the generated memo
|
|
4271
4459
|
* @param {number} [affiliateBps] the affiliate fee in basis points
|
|
@@ -4273,7 +4461,7 @@ export declare const QuoteApiFactory: (configuration?: Configuration, basePath?:
|
|
|
4273
4461
|
* @param {*} [options] Override http request option.
|
|
4274
4462
|
* @throws {RequiredError}
|
|
4275
4463
|
*/
|
|
4276
|
-
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>;
|
|
4277
4465
|
};
|
|
4278
4466
|
/**
|
|
4279
4467
|
* QuoteApi - object-oriented interface
|
|
@@ -4338,6 +4526,8 @@ export declare class QuoteApi extends BaseAPI {
|
|
|
4338
4526
|
* @param {string} [toAsset] the target asset
|
|
4339
4527
|
* @param {number} [amount] the source asset amount in 1e8 decimals
|
|
4340
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
|
|
4341
4531
|
* @param {string} [fromAddress] the from address, required if the from asset is a synth
|
|
4342
4532
|
* @param {number} [toleranceBps] the maximum basis points from the current feeless swap price to set the limit in the generated memo
|
|
4343
4533
|
* @param {number} [affiliateBps] the affiliate fee in basis points
|
|
@@ -4346,7 +4536,7 @@ export declare class QuoteApi extends BaseAPI {
|
|
|
4346
4536
|
* @throws {RequiredError}
|
|
4347
4537
|
* @memberof QuoteApi
|
|
4348
4538
|
*/
|
|
4349
|
-
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>>;
|
|
4350
4540
|
}
|
|
4351
4541
|
/**
|
|
4352
4542
|
* SaversApi - axios parameter creator
|
|
@@ -4444,6 +4634,94 @@ export declare class SaversApi extends BaseAPI {
|
|
|
4444
4634
|
*/
|
|
4445
4635
|
savers(asset: string, height?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<SaversResponse, any>>;
|
|
4446
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
|
+
}
|
|
4447
4725
|
/**
|
|
4448
4726
|
* TSSApi - axios parameter creator
|
|
4449
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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).
|