@xchainjs/xchain-thornode 0.2.0 → 0.2.2

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.102.0
5
+ * The version of the OpenAPI document: 1.107.0
6
6
  * Contact: devs@thorchain.org
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -37,6 +37,68 @@ export interface BanResponse {
37
37
  */
38
38
  'signers'?: Array<string>;
39
39
  }
40
+ /**
41
+ *
42
+ * @export
43
+ * @interface Borrower
44
+ */
45
+ export interface Borrower {
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof Borrower
50
+ */
51
+ 'owner': string;
52
+ /**
53
+ *
54
+ * @type {string}
55
+ * @memberof Borrower
56
+ */
57
+ 'asset': string;
58
+ /**
59
+ *
60
+ * @type {string}
61
+ * @memberof Borrower
62
+ */
63
+ 'debt_up': string;
64
+ /**
65
+ *
66
+ * @type {string}
67
+ * @memberof Borrower
68
+ */
69
+ 'debt_down': string;
70
+ /**
71
+ *
72
+ * @type {string}
73
+ * @memberof Borrower
74
+ */
75
+ 'collateral_up': string;
76
+ /**
77
+ *
78
+ * @type {string}
79
+ * @memberof Borrower
80
+ */
81
+ 'collateral_down': string;
82
+ /**
83
+ *
84
+ * @type {number}
85
+ * @memberof Borrower
86
+ */
87
+ 'last_open_height': number;
88
+ /**
89
+ *
90
+ * @type {number}
91
+ * @memberof Borrower
92
+ */
93
+ 'last_repay_height': number;
94
+ }
95
+ /**
96
+ *
97
+ * @export
98
+ * @interface BorrowersResponse
99
+ */
100
+ export interface BorrowersResponse extends Array<Borrower> {
101
+ }
40
102
  /**
41
103
  *
42
104
  * @export
@@ -191,7 +253,7 @@ export interface InboundAddress {
191
253
  */
192
254
  'outbound_fee'?: string;
193
255
  /**
194
- * Defines the minimum transaction size for the chain in base units (sats, wei, uatom). Transctions with asset amounts lower than the dust_thresold are ignored.
256
+ * 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.
195
257
  * @type {string}
196
258
  * @memberof InboundAddress
197
259
  */
@@ -204,6 +266,44 @@ export interface InboundAddress {
204
266
  */
205
267
  export interface InboundAddressesResponse extends Array<InboundAddress> {
206
268
  }
269
+ /**
270
+ *
271
+ * @export
272
+ * @interface InvariantResponse
273
+ */
274
+ export interface InvariantResponse {
275
+ /**
276
+ * The name of the invariant.
277
+ * @type {string}
278
+ * @memberof InvariantResponse
279
+ */
280
+ 'invariant': string;
281
+ /**
282
+ * Returns true if the invariant is broken.
283
+ * @type {boolean}
284
+ * @memberof InvariantResponse
285
+ */
286
+ 'broken': boolean;
287
+ /**
288
+ * Informative message about the invariant result.
289
+ * @type {string}
290
+ * @memberof InvariantResponse
291
+ */
292
+ 'msg': string;
293
+ }
294
+ /**
295
+ *
296
+ * @export
297
+ * @interface InvariantsResponse
298
+ */
299
+ export interface InvariantsResponse {
300
+ /**
301
+ *
302
+ * @type {Array<string>}
303
+ * @memberof InvariantsResponse
304
+ */
305
+ 'invariants'?: Array<string>;
306
+ }
207
307
  /**
208
308
  *
209
309
  * @export
@@ -573,6 +673,79 @@ export interface MimirVote {
573
673
  */
574
674
  'signer'?: string;
575
675
  }
676
+ /**
677
+ *
678
+ * @export
679
+ * @interface MsgSwap
680
+ */
681
+ export interface MsgSwap {
682
+ /**
683
+ *
684
+ * @type {Tx}
685
+ * @memberof MsgSwap
686
+ */
687
+ 'tx': Tx;
688
+ /**
689
+ * the asset to be swapped to
690
+ * @type {string}
691
+ * @memberof MsgSwap
692
+ */
693
+ 'target_asset': string;
694
+ /**
695
+ * the destination address to receive the swap output
696
+ * @type {string}
697
+ * @memberof MsgSwap
698
+ */
699
+ 'destination'?: string;
700
+ /**
701
+ * the minimum amount of output asset to receive (else cancelling and refunding the swap)
702
+ * @type {string}
703
+ * @memberof MsgSwap
704
+ */
705
+ 'trade_target': string;
706
+ /**
707
+ * the affiliate address which will receive any affiliate fee
708
+ * @type {string}
709
+ * @memberof MsgSwap
710
+ */
711
+ 'affiliate_address'?: string;
712
+ /**
713
+ * the affiliate fee in basis points
714
+ * @type {string}
715
+ * @memberof MsgSwap
716
+ */
717
+ 'affiliate_basis_points': string;
718
+ /**
719
+ * the signer (sender) of the transaction
720
+ * @type {string}
721
+ * @memberof MsgSwap
722
+ */
723
+ 'signer'?: string;
724
+ /**
725
+ * the contract address if an aggregator is specified for a non-THORChain SwapOut
726
+ * @type {string}
727
+ * @memberof MsgSwap
728
+ */
729
+ 'aggregator'?: string;
730
+ /**
731
+ * the desired output asset of the aggregator SwapOut
732
+ * @type {string}
733
+ * @memberof MsgSwap
734
+ */
735
+ 'aggregator_target_address'?: string;
736
+ /**
737
+ * the minimum amount of SwapOut asset to receive (else cancelling the SwapOut and receiving THORChain\'s output)
738
+ * @type {string}
739
+ * @memberof MsgSwap
740
+ */
741
+ 'aggregator_target_limit'?: string;
742
+ /**
743
+ * 0 if a market order (immediately completed or refunded), 1 if a limit order (held until fulfillable)
744
+ * @type {number}
745
+ * @memberof MsgSwap
746
+ */
747
+ 'order_type'?: number;
748
+ }
576
749
  /**
577
750
  *
578
751
  * @export
@@ -646,6 +819,12 @@ export interface Node {
646
819
  * @memberof Node
647
820
  */
648
821
  'validator_cons_pub_key': string;
822
+ /**
823
+ * the P2PID (:6040/p2pid endpoint) of the node
824
+ * @type {string}
825
+ * @memberof Node
826
+ */
827
+ 'peer_id': string;
649
828
  /**
650
829
  * the block height at which the node became active
651
830
  * @type {number}
@@ -902,11 +1081,17 @@ export interface ObservedTx {
902
1081
  */
903
1082
  'out_hashes'?: Array<string>;
904
1083
  /**
905
- * the block height of the observed transaction on the source chain, not provided if chain is THOR
1084
+ * same as external_observed_height, to be deprecated in favour of external_observed_height
906
1085
  * @type {number}
907
1086
  * @memberof ObservedTx
908
1087
  */
909
1088
  'block_height'?: number;
1089
+ /**
1090
+ * the block height on the external source chain when the transaction was observed, not provided if chain is THOR
1091
+ * @type {number}
1092
+ * @memberof ObservedTx
1093
+ */
1094
+ 'external_observed_height'?: number;
910
1095
  /**
911
1096
  *
912
1097
  * @type {Array<string>}
@@ -926,11 +1111,17 @@ export interface ObservedTx {
926
1111
  */
927
1112
  'keysign_ms'?: number;
928
1113
  /**
929
- * the finalised height of the observed transaction on the source chain, not provided if chain is THOR
1114
+ * same as external_confirmation_delay_height, to be deprecated in favour of external_confirmation_delay_height
930
1115
  * @type {number}
931
1116
  * @memberof ObservedTx
932
1117
  */
933
1118
  'finalise_height'?: number;
1119
+ /**
1120
+ * the block height on the external source chain when confirmation counting will be complete, not provided if chain is THOR
1121
+ * @type {number}
1122
+ * @memberof ObservedTx
1123
+ */
1124
+ 'external_confirmation_delay_height'?: number;
934
1125
  /**
935
1126
  * the outbound aggregator to use, will also match a suffix
936
1127
  * @type {string}
@@ -1097,7 +1288,7 @@ export interface Pool {
1097
1288
  */
1098
1289
  'savers_units': string;
1099
1290
  /**
1100
- * whether additional synths cannot be minted (will be deprecated in v1.103)
1291
+ * whether additional synths cannot be minted
1101
1292
  * @type {boolean}
1102
1293
  * @memberof Pool
1103
1294
  */
@@ -1108,6 +1299,12 @@ export interface Pool {
1108
1299
  * @memberof Pool
1109
1300
  */
1110
1301
  'synth_supply_remaining': string;
1302
+ /**
1303
+ * the amount of collateral collects for loans
1304
+ * @type {string}
1305
+ * @memberof Pool
1306
+ */
1307
+ 'loan_collateral': string;
1111
1308
  }
1112
1309
  /**
1113
1310
  *
@@ -1191,11 +1388,17 @@ export interface QuoteSaverDepositResponse {
1191
1388
  */
1192
1389
  'memo': string;
1193
1390
  /**
1194
- * the minimum amount of the target asset the user can expect to deposit after fees
1391
+ * migrate to expected_amount_deposit (will be deprecated in v1.104)
1195
1392
  * @type {string}
1196
1393
  * @memberof QuoteSaverDepositResponse
1197
1394
  */
1198
1395
  'expected_amount_out': string;
1396
+ /**
1397
+ * the minimum amount of the target asset the user can expect to deposit after fees
1398
+ * @type {string}
1399
+ * @memberof QuoteSaverDepositResponse
1400
+ */
1401
+ 'expected_amount_deposit'?: string;
1199
1402
  /**
1200
1403
  * the approximate number of source chain blocks required before processing
1201
1404
  * @type {number}
@@ -1220,6 +1423,30 @@ export interface QuoteSaverDepositResponse {
1220
1423
  * @memberof QuoteSaverDepositResponse
1221
1424
  */
1222
1425
  'slippage_bps': number;
1426
+ /**
1427
+ * expiration timestamp in unix seconds
1428
+ * @type {number}
1429
+ * @memberof QuoteSaverDepositResponse
1430
+ */
1431
+ 'expiry': number;
1432
+ /**
1433
+ * static warning message
1434
+ * @type {string}
1435
+ * @memberof QuoteSaverDepositResponse
1436
+ */
1437
+ 'warning': string;
1438
+ /**
1439
+ * chain specific quote notes
1440
+ * @type {string}
1441
+ * @memberof QuoteSaverDepositResponse
1442
+ */
1443
+ 'notes': string;
1444
+ /**
1445
+ * 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.
1446
+ * @type {string}
1447
+ * @memberof QuoteSaverDepositResponse
1448
+ */
1449
+ 'dust_threshold'?: string;
1223
1450
  }
1224
1451
  /**
1225
1452
  *
@@ -1275,6 +1502,30 @@ export interface QuoteSaverWithdrawResponse {
1275
1502
  * @memberof QuoteSaverWithdrawResponse
1276
1503
  */
1277
1504
  'slippage_bps': number;
1505
+ /**
1506
+ * expiration timestamp in unix seconds
1507
+ * @type {number}
1508
+ * @memberof QuoteSaverWithdrawResponse
1509
+ */
1510
+ 'expiry': number;
1511
+ /**
1512
+ * static warning message
1513
+ * @type {string}
1514
+ * @memberof QuoteSaverWithdrawResponse
1515
+ */
1516
+ 'warning': string;
1517
+ /**
1518
+ * chain specific quote notes
1519
+ * @type {string}
1520
+ * @memberof QuoteSaverWithdrawResponse
1521
+ */
1522
+ 'notes': string;
1523
+ /**
1524
+ * 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.
1525
+ * @type {string}
1526
+ * @memberof QuoteSaverWithdrawResponse
1527
+ */
1528
+ 'dust_threshold'?: string;
1278
1529
  }
1279
1530
  /**
1280
1531
  *
@@ -1336,6 +1587,36 @@ export interface QuoteSwapResponse {
1336
1587
  * @memberof QuoteSwapResponse
1337
1588
  */
1338
1589
  'slippage_bps': number;
1590
+ /**
1591
+ * the EVM chain router contract address
1592
+ * @type {string}
1593
+ * @memberof QuoteSwapResponse
1594
+ */
1595
+ 'router'?: string;
1596
+ /**
1597
+ * expiration timestamp in unix seconds
1598
+ * @type {number}
1599
+ * @memberof QuoteSwapResponse
1600
+ */
1601
+ 'expiry': number;
1602
+ /**
1603
+ * static warning message
1604
+ * @type {string}
1605
+ * @memberof QuoteSwapResponse
1606
+ */
1607
+ 'warning': string;
1608
+ /**
1609
+ * chain specific quote notes
1610
+ * @type {string}
1611
+ * @memberof QuoteSwapResponse
1612
+ */
1613
+ 'notes': string;
1614
+ /**
1615
+ * 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.
1616
+ * @type {string}
1617
+ * @memberof QuoteSwapResponse
1618
+ */
1619
+ 'dust_threshold'?: string;
1339
1620
  }
1340
1621
  /**
1341
1622
  *
@@ -1406,6 +1687,13 @@ export interface SaversResponse extends Array<Saver> {
1406
1687
  */
1407
1688
  export interface ScheduledResponse extends Array<TxOutItem> {
1408
1689
  }
1690
+ /**
1691
+ *
1692
+ * @export
1693
+ * @interface SwapQueueResponse
1694
+ */
1695
+ export interface SwapQueueResponse extends Array<MsgSwap> {
1696
+ }
1409
1697
  /**
1410
1698
  *
1411
1699
  * @export
@@ -1617,7 +1905,7 @@ export interface TxDetailsResponse {
1617
1905
  */
1618
1906
  'reverted'?: boolean;
1619
1907
  /**
1620
- *
1908
+ * the thorchain height for which the outbound was scheduled
1621
1909
  * @type {number}
1622
1910
  * @memberof TxDetailsResponse
1623
1911
  */
@@ -1702,6 +1990,18 @@ export interface TxResponse {
1702
1990
  * @memberof TxResponse
1703
1991
  */
1704
1992
  'observed_tx'?: ObservedTx;
1993
+ /**
1994
+ * the thorchain height at which the outbound was finalised
1995
+ * @type {number}
1996
+ * @memberof TxResponse
1997
+ */
1998
+ 'finalised_height'?: number;
1999
+ /**
2000
+ * the thorchain height for which the outbound was scheduled
2001
+ * @type {number}
2002
+ * @memberof TxResponse
2003
+ */
2004
+ 'outbound_height'?: number;
1705
2005
  /**
1706
2006
  *
1707
2007
  * @type {TssKeysignMetric}
@@ -1770,7 +2070,7 @@ export interface TxSignersResponse {
1770
2070
  */
1771
2071
  'reverted'?: boolean;
1772
2072
  /**
1773
- *
2073
+ * the thorchain height for which the outbound was scheduled
1774
2074
  * @type {number}
1775
2075
  * @memberof TxSignersResponse
1776
2076
  */
@@ -1800,6 +2100,12 @@ export interface TxStagesResponse {
1800
2100
  * @memberof TxStagesResponse
1801
2101
  */
1802
2102
  'inbound_finalised': TxStagesResponseInboundFinalised;
2103
+ /**
2104
+ *
2105
+ * @type {TxStagesResponseSwapFinalised}
2106
+ * @memberof TxStagesResponse
2107
+ */
2108
+ 'swap_finalised'?: TxStagesResponseSwapFinalised;
1803
2109
  /**
1804
2110
  *
1805
2111
  * @type {TxStagesResponseOutboundDelay}
@@ -1938,6 +2244,19 @@ export interface TxStagesResponseOutboundSigned {
1938
2244
  */
1939
2245
  'completed': boolean;
1940
2246
  }
2247
+ /**
2248
+ *
2249
+ * @export
2250
+ * @interface TxStagesResponseSwapFinalised
2251
+ */
2252
+ export interface TxStagesResponseSwapFinalised {
2253
+ /**
2254
+ * returns true if an inbound transaction\'s swap (successful or refunded) is no longer pending
2255
+ * @type {boolean}
2256
+ * @memberof TxStagesResponseSwapFinalised
2257
+ */
2258
+ 'completed': boolean;
2259
+ }
1941
2260
  /**
1942
2261
  *
1943
2262
  * @export
@@ -1993,6 +2312,12 @@ export interface TxStatusResponsePlannedOutTxsInner {
1993
2312
  * @memberof TxStatusResponsePlannedOutTxsInner
1994
2313
  */
1995
2314
  'coin': Coin;
2315
+ /**
2316
+ * returns true if the planned transaction has a refund memo
2317
+ * @type {boolean}
2318
+ * @memberof TxStatusResponsePlannedOutTxsInner
2319
+ */
2320
+ 'refund': boolean;
1996
2321
  }
1997
2322
  /**
1998
2323
  *
@@ -2192,6 +2517,102 @@ export interface VersionResponse {
2192
2517
  */
2193
2518
  'querier': string;
2194
2519
  }
2520
+ /**
2521
+ * BorrowersApi - axios parameter creator
2522
+ * @export
2523
+ */
2524
+ export declare const BorrowersApiAxiosParamCreator: (configuration?: Configuration | undefined) => {
2525
+ /**
2526
+ * Returns the borrower position given the pool and address.
2527
+ * @param {string} asset
2528
+ * @param {string} address
2529
+ * @param {number} [height] optional block height, defaults to current tip
2530
+ * @param {*} [options] Override http request option.
2531
+ * @throws {RequiredError}
2532
+ */
2533
+ borrower: (asset: string, address: string, height?: number | undefined, options?: AxiosRequestConfig) => Promise<RequestArgs>;
2534
+ /**
2535
+ * Returns all borrowers for the given pool.
2536
+ * @param {string} asset
2537
+ * @param {number} [height] optional block height, defaults to current tip
2538
+ * @param {*} [options] Override http request option.
2539
+ * @throws {RequiredError}
2540
+ */
2541
+ borrowers: (asset: string, height?: number | undefined, options?: AxiosRequestConfig) => Promise<RequestArgs>;
2542
+ };
2543
+ /**
2544
+ * BorrowersApi - functional programming interface
2545
+ * @export
2546
+ */
2547
+ export declare const BorrowersApiFp: (configuration?: Configuration | undefined) => {
2548
+ /**
2549
+ * Returns the borrower position given the pool and address.
2550
+ * @param {string} asset
2551
+ * @param {string} address
2552
+ * @param {number} [height] optional block height, defaults to current tip
2553
+ * @param {*} [options] Override http request option.
2554
+ * @throws {RequiredError}
2555
+ */
2556
+ borrower(asset: string, address: string, height?: number | undefined, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<Borrower>>;
2557
+ /**
2558
+ * Returns all borrowers for the given pool.
2559
+ * @param {string} asset
2560
+ * @param {number} [height] optional block height, defaults to current tip
2561
+ * @param {*} [options] Override http request option.
2562
+ * @throws {RequiredError}
2563
+ */
2564
+ borrowers(asset: string, height?: number | undefined, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<BorrowersResponse>>;
2565
+ };
2566
+ /**
2567
+ * BorrowersApi - factory interface
2568
+ * @export
2569
+ */
2570
+ export declare const BorrowersApiFactory: (configuration?: Configuration | undefined, basePath?: string | undefined, axios?: AxiosInstance | undefined) => {
2571
+ /**
2572
+ * Returns the borrower position given the pool and address.
2573
+ * @param {string} asset
2574
+ * @param {string} address
2575
+ * @param {number} [height] optional block height, defaults to current tip
2576
+ * @param {*} [options] Override http request option.
2577
+ * @throws {RequiredError}
2578
+ */
2579
+ borrower(asset: string, address: string, height?: number | undefined, options?: any): AxiosPromise<Borrower>;
2580
+ /**
2581
+ * Returns all borrowers for the given pool.
2582
+ * @param {string} asset
2583
+ * @param {number} [height] optional block height, defaults to current tip
2584
+ * @param {*} [options] Override http request option.
2585
+ * @throws {RequiredError}
2586
+ */
2587
+ borrowers(asset: string, height?: number | undefined, options?: any): AxiosPromise<BorrowersResponse>;
2588
+ };
2589
+ /**
2590
+ * BorrowersApi - object-oriented interface
2591
+ * @export
2592
+ * @class BorrowersApi
2593
+ * @extends {BaseAPI}
2594
+ */
2595
+ export declare class BorrowersApi extends BaseAPI {
2596
+ /**
2597
+ * Returns the borrower position given the pool and address.
2598
+ * @param {string} asset
2599
+ * @param {string} address
2600
+ * @param {number} [height] optional block height, defaults to current tip
2601
+ * @param {*} [options] Override http request option.
2602
+ * @throws {RequiredError}
2603
+ * @memberof BorrowersApi
2604
+ */
2605
+ borrower(asset: string, address: string, height?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Borrower, any>>;
2606
+ /**
2607
+ * Returns all borrowers for the given pool.
2608
+ * @param {string} asset
2609
+ * @param {number} [height] optional block height, defaults to current tip
2610
+ * @param {*} [options] Override http request option.
2611
+ * @throws {RequiredError}
2612
+ * @memberof BorrowersApi
2613
+ */
2614
+ borrowers(asset: string, height?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<BorrowersResponse, any>>;
2615
+ }
2195
2616
  /**
2196
2617
  * HealthApi - axios parameter creator
2197
2618
  * @export
@@ -2243,6 +2664,94 @@ export declare class HealthApi extends BaseAPI {
2243
2664
  */
2244
2665
  ping(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Ping, any>>;
2245
2666
  }
2667
+ /**
2668
+ * InvariantsApi - axios parameter creator
2669
+ * @export
2670
+ */
2671
+ export declare const InvariantsApiAxiosParamCreator: (configuration?: Configuration | undefined) => {
2672
+ /**
2673
+ * Returns result of running the given invariant.
2674
+ * @param {string} invariant
2675
+ * @param {number} [height] optional block height, defaults to current tip
2676
+ * @param {*} [options] Override http request option.
2677
+ * @throws {RequiredError}
2678
+ */
2679
+ invariant: (invariant: string, height?: number | undefined, options?: AxiosRequestConfig) => Promise<RequestArgs>;
2680
+ /**
2681
+ * Returns a list of available invariants.
2682
+ * @param {number} [height] optional block height, defaults to current tip
2683
+ * @param {*} [options] Override http request option.
2684
+ * @throws {RequiredError}
2685
+ */
2686
+ invariants: (height?: number | undefined, options?: AxiosRequestConfig) => Promise<RequestArgs>;
2687
+ };
2688
+ /**
2689
+ * InvariantsApi - functional programming interface
2690
+ * @export
2691
+ */
2692
+ export declare const InvariantsApiFp: (configuration?: Configuration | undefined) => {
2693
+ /**
2694
+ * Returns result of running the given invariant.
2695
+ * @param {string} invariant
2696
+ * @param {number} [height] optional block height, defaults to current tip
2697
+ * @param {*} [options] Override http request option.
2698
+ * @throws {RequiredError}
2699
+ */
2700
+ invariant(invariant: string, height?: number | undefined, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<InvariantResponse>>;
2701
+ /**
2702
+ * Returns a list of available invariants.
2703
+ * @param {number} [height] optional block height, defaults to current tip
2704
+ * @param {*} [options] Override http request option.
2705
+ * @throws {RequiredError}
2706
+ */
2707
+ invariants(height?: number | undefined, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<InvariantsResponse>>;
2708
+ };
2709
+ /**
2710
+ * InvariantsApi - factory interface
2711
+ * @export
2712
+ */
2713
+ export declare const InvariantsApiFactory: (configuration?: Configuration | undefined, basePath?: string | undefined, axios?: AxiosInstance | undefined) => {
2714
+ /**
2715
+ * Returns result of running the given invariant.
2716
+ * @param {string} invariant
2717
+ * @param {number} [height] optional block height, defaults to current tip
2718
+ * @param {*} [options] Override http request option.
2719
+ * @throws {RequiredError}
2720
+ */
2721
+ invariant(invariant: string, height?: number | undefined, options?: any): AxiosPromise<InvariantResponse>;
2722
+ /**
2723
+ * Returns a list of available invariants.
2724
+ * @param {number} [height] optional block height, defaults to current tip
2725
+ * @param {*} [options] Override http request option.
2726
+ * @throws {RequiredError}
2727
+ */
2728
+ invariants(height?: number | undefined, options?: any): AxiosPromise<InvariantsResponse>;
2729
+ };
2730
+ /**
2731
+ * InvariantsApi - object-oriented interface
2732
+ * @export
2733
+ * @class InvariantsApi
2734
+ * @extends {BaseAPI}
2735
+ */
2736
+ export declare class InvariantsApi extends BaseAPI {
2737
+ /**
2738
+ * Returns result of running the given invariant.
2739
+ * @param {string} invariant
2740
+ * @param {number} [height] optional block height, defaults to current tip
2741
+ * @param {*} [options] Override http request option.
2742
+ * @throws {RequiredError}
2743
+ * @memberof InvariantsApi
2744
+ */
2745
+ invariant(invariant: string, height?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InvariantResponse, any>>;
2746
+ /**
2747
+ * Returns a list of available invariants.
2748
+ * @param {number} [height] optional block height, defaults to current tip
2749
+ * @param {*} [options] Override http request option.
2750
+ * @throws {RequiredError}
2751
+ * @memberof InvariantsApi
2752
+ */
2753
+ invariants(height?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InvariantsResponse, any>>;
2754
+ }
2246
2755
  /**
2247
2756
  * LiquidityProvidersApi - axios parameter creator
2248
2757
  * @export
@@ -3041,6 +3550,13 @@ export declare const QueueApiAxiosParamCreator: (configuration?: Configuration |
3041
3550
  * @throws {RequiredError}
3042
3551
  */
3043
3552
  queueScheduled: (height?: number | undefined, options?: AxiosRequestConfig) => Promise<RequestArgs>;
3553
+ /**
3554
+ * Returns the swap queue.
3555
+ * @param {number} [height] optional block height, defaults to current tip
3556
+ * @param {*} [options] Override http request option.
3557
+ * @throws {RequiredError}
3558
+ */
3559
+ queueSwap: (height?: number | undefined, options?: AxiosRequestConfig) => Promise<RequestArgs>;
3044
3560
  };
3045
3561
  /**
3046
3562
  * QueueApi - functional programming interface
@@ -3068,6 +3584,13 @@ export declare const QueueApiFp: (configuration?: Configuration | undefined) =>
3068
3584
  * @throws {RequiredError}
3069
3585
  */
3070
3586
  queueScheduled(height?: number | undefined, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<ScheduledResponse>>;
3587
+ /**
3588
+ * Returns the swap queue.
3589
+ * @param {number} [height] optional block height, defaults to current tip
3590
+ * @param {*} [options] Override http request option.
3591
+ * @throws {RequiredError}
3592
+ */
3593
+ queueSwap(height?: number | undefined, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<SwapQueueResponse>>;
3071
3594
  };
3072
3595
  /**
3073
3596
  * QueueApi - factory interface
@@ -3095,6 +3618,13 @@ export declare const QueueApiFactory: (configuration?: Configuration | undefined
3095
3618
  * @throws {RequiredError}
3096
3619
  */
3097
3620
  queueScheduled(height?: number | undefined, options?: any): AxiosPromise<ScheduledResponse>;
3621
+ /**
3622
+ * Returns the swap queue.
3623
+ * @param {number} [height] optional block height, defaults to current tip
3624
+ * @param {*} [options] Override http request option.
3625
+ * @throws {RequiredError}
3626
+ */
3627
+ queueSwap(height?: number | undefined, options?: any): AxiosPromise<SwapQueueResponse>;
3098
3628
  };
3099
3629
  /**
3100
3630
  * QueueApi - object-oriented interface
@@ -3127,6 +3657,14 @@ export declare class QueueApi extends BaseAPI {
3127
3657
  * @memberof QueueApi
3128
3658
  */
3129
3659
  queueScheduled(height?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ScheduledResponse, any>>;
3660
+ /**
3661
+ * Returns the swap queue.
3662
+ * @param {number} [height] optional block height, defaults to current tip
3663
+ * @param {*} [options] Override http request option.
3664
+ * @throws {RequiredError}
3665
+ * @memberof QueueApi
3666
+ */
3667
+ queueSwap(height?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<SwapQueueResponse, any>>;
3130
3668
  }
3131
3669
  /**
3132
3670
  * QuoteApi - axios parameter creator
@@ -3159,13 +3697,14 @@ export declare const QuoteApiAxiosParamCreator: (configuration?: Configuration |
3159
3697
  * @param {string} [toAsset] the target asset
3160
3698
  * @param {number} [amount] the source asset amount in 1e8 decimals
3161
3699
  * @param {string} [destination] the destination address, required to generate memo
3700
+ * @param {string} [fromAddress] the from address, required if the from asset is a synth
3162
3701
  * @param {number} [toleranceBps] the maximum basis points from the current feeless swap price to set the limit in the generated memo
3163
3702
  * @param {number} [affiliateBps] the affiliate fee in basis points
3164
3703
  * @param {string} [affiliate] the affiliate (address or thorname)
3165
3704
  * @param {*} [options] Override http request option.
3166
3705
  * @throws {RequiredError}
3167
3706
  */
3168
- quoteswap: (height?: number | undefined, fromAsset?: string | undefined, toAsset?: string | undefined, amount?: number | undefined, destination?: string | undefined, toleranceBps?: number | undefined, affiliateBps?: number | undefined, affiliate?: string | undefined, options?: AxiosRequestConfig) => Promise<RequestArgs>;
3707
+ quoteswap: (height?: number | undefined, fromAsset?: string | undefined, toAsset?: string | undefined, amount?: number | undefined, destination?: string | undefined, fromAddress?: string | undefined, toleranceBps?: number | undefined, affiliateBps?: number | undefined, affiliate?: string | undefined, options?: AxiosRequestConfig) => Promise<RequestArgs>;
3169
3708
  };
3170
3709
  /**
3171
3710
  * QuoteApi - functional programming interface
@@ -3198,13 +3737,14 @@ export declare const QuoteApiFp: (configuration?: Configuration | undefined) =>
3198
3737
  * @param {string} [toAsset] the target asset
3199
3738
  * @param {number} [amount] the source asset amount in 1e8 decimals
3200
3739
  * @param {string} [destination] the destination address, required to generate memo
3740
+ * @param {string} [fromAddress] the from address, required if the from asset is a synth
3201
3741
  * @param {number} [toleranceBps] the maximum basis points from the current feeless swap price to set the limit in the generated memo
3202
3742
  * @param {number} [affiliateBps] the affiliate fee in basis points
3203
3743
  * @param {string} [affiliate] the affiliate (address or thorname)
3204
3744
  * @param {*} [options] Override http request option.
3205
3745
  * @throws {RequiredError}
3206
3746
  */
3207
- quoteswap(height?: number | undefined, fromAsset?: string | undefined, toAsset?: string | undefined, amount?: number | undefined, destination?: string | undefined, toleranceBps?: number | undefined, affiliateBps?: number | undefined, affiliate?: string | undefined, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<QuoteSwapResponse>>;
3747
+ quoteswap(height?: number | undefined, fromAsset?: string | undefined, toAsset?: string | undefined, amount?: number | undefined, destination?: string | undefined, fromAddress?: string | undefined, toleranceBps?: number | undefined, affiliateBps?: number | undefined, affiliate?: string | undefined, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<QuoteSwapResponse>>;
3208
3748
  };
3209
3749
  /**
3210
3750
  * QuoteApi - factory interface
@@ -3237,13 +3777,14 @@ export declare const QuoteApiFactory: (configuration?: Configuration | undefined
3237
3777
  * @param {string} [toAsset] the target asset
3238
3778
  * @param {number} [amount] the source asset amount in 1e8 decimals
3239
3779
  * @param {string} [destination] the destination address, required to generate memo
3780
+ * @param {string} [fromAddress] the from address, required if the from asset is a synth
3240
3781
  * @param {number} [toleranceBps] the maximum basis points from the current feeless swap price to set the limit in the generated memo
3241
3782
  * @param {number} [affiliateBps] the affiliate fee in basis points
3242
3783
  * @param {string} [affiliate] the affiliate (address or thorname)
3243
3784
  * @param {*} [options] Override http request option.
3244
3785
  * @throws {RequiredError}
3245
3786
  */
3246
- quoteswap(height?: number | undefined, fromAsset?: string | undefined, toAsset?: string | undefined, amount?: number | undefined, destination?: string | undefined, toleranceBps?: number | undefined, affiliateBps?: number | undefined, affiliate?: string | undefined, options?: any): AxiosPromise<QuoteSwapResponse>;
3787
+ quoteswap(height?: number | undefined, fromAsset?: string | undefined, toAsset?: string | undefined, amount?: number | undefined, destination?: string | undefined, fromAddress?: string | undefined, toleranceBps?: number | undefined, affiliateBps?: number | undefined, affiliate?: string | undefined, options?: any): AxiosPromise<QuoteSwapResponse>;
3247
3788
  };
3248
3789
  /**
3249
3790
  * QuoteApi - object-oriented interface
@@ -3280,6 +3821,7 @@ export declare class QuoteApi extends BaseAPI {
3280
3821
  * @param {string} [toAsset] the target asset
3281
3822
  * @param {number} [amount] the source asset amount in 1e8 decimals
3282
3823
  * @param {string} [destination] the destination address, required to generate memo
3824
+ * @param {string} [fromAddress] the from address, required if the from asset is a synth
3283
3825
  * @param {number} [toleranceBps] the maximum basis points from the current feeless swap price to set the limit in the generated memo
3284
3826
  * @param {number} [affiliateBps] the affiliate fee in basis points
3285
3827
  * @param {string} [affiliate] the affiliate (address or thorname)
@@ -3287,7 +3829,7 @@ export declare class QuoteApi extends BaseAPI {
3287
3829
  * @throws {RequiredError}
3288
3830
  * @memberof QuoteApi
3289
3831
  */
3290
- quoteswap(height?: number, fromAsset?: string, toAsset?: string, amount?: number, destination?: string, toleranceBps?: number, affiliateBps?: number, affiliate?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<QuoteSwapResponse, any>>;
3832
+ 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>>;
3291
3833
  }
3292
3834
  /**
3293
3835
  * SaversApi - axios parameter creator