@xchainjs/xchain-thornode 0.2.1 → 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.
- package/lib/generated/thornodeApi/api.d.ts +440 -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 +394 -3
- package/lib/index.js +401 -2
- 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.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
|
|
@@ -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
|
-
*
|
|
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
|
-
*
|
|
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}
|
|
@@ -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
|
*
|
|
@@ -1490,6 +1687,13 @@ export interface SaversResponse extends Array<Saver> {
|
|
|
1490
1687
|
*/
|
|
1491
1688
|
export interface ScheduledResponse extends Array<TxOutItem> {
|
|
1492
1689
|
}
|
|
1690
|
+
/**
|
|
1691
|
+
*
|
|
1692
|
+
* @export
|
|
1693
|
+
* @interface SwapQueueResponse
|
|
1694
|
+
*/
|
|
1695
|
+
export interface SwapQueueResponse extends Array<MsgSwap> {
|
|
1696
|
+
}
|
|
1493
1697
|
/**
|
|
1494
1698
|
*
|
|
1495
1699
|
* @export
|
|
@@ -1701,7 +1905,7 @@ export interface TxDetailsResponse {
|
|
|
1701
1905
|
*/
|
|
1702
1906
|
'reverted'?: boolean;
|
|
1703
1907
|
/**
|
|
1704
|
-
*
|
|
1908
|
+
* the thorchain height for which the outbound was scheduled
|
|
1705
1909
|
* @type {number}
|
|
1706
1910
|
* @memberof TxDetailsResponse
|
|
1707
1911
|
*/
|
|
@@ -1786,6 +1990,18 @@ export interface TxResponse {
|
|
|
1786
1990
|
* @memberof TxResponse
|
|
1787
1991
|
*/
|
|
1788
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;
|
|
1789
2005
|
/**
|
|
1790
2006
|
*
|
|
1791
2007
|
* @type {TssKeysignMetric}
|
|
@@ -1854,7 +2070,7 @@ export interface TxSignersResponse {
|
|
|
1854
2070
|
*/
|
|
1855
2071
|
'reverted'?: boolean;
|
|
1856
2072
|
/**
|
|
1857
|
-
*
|
|
2073
|
+
* the thorchain height for which the outbound was scheduled
|
|
1858
2074
|
* @type {number}
|
|
1859
2075
|
* @memberof TxSignersResponse
|
|
1860
2076
|
*/
|
|
@@ -2096,6 +2312,12 @@ export interface TxStatusResponsePlannedOutTxsInner {
|
|
|
2096
2312
|
* @memberof TxStatusResponsePlannedOutTxsInner
|
|
2097
2313
|
*/
|
|
2098
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;
|
|
2099
2321
|
}
|
|
2100
2322
|
/**
|
|
2101
2323
|
*
|
|
@@ -2295,6 +2517,102 @@ export interface VersionResponse {
|
|
|
2295
2517
|
*/
|
|
2296
2518
|
'querier': string;
|
|
2297
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
|
+
}
|
|
2298
2616
|
/**
|
|
2299
2617
|
* HealthApi - axios parameter creator
|
|
2300
2618
|
* @export
|
|
@@ -2346,6 +2664,94 @@ export declare class HealthApi extends BaseAPI {
|
|
|
2346
2664
|
*/
|
|
2347
2665
|
ping(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Ping, any>>;
|
|
2348
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
|
+
}
|
|
2349
2755
|
/**
|
|
2350
2756
|
* LiquidityProvidersApi - axios parameter creator
|
|
2351
2757
|
* @export
|
|
@@ -3144,6 +3550,13 @@ export declare const QueueApiAxiosParamCreator: (configuration?: Configuration |
|
|
|
3144
3550
|
* @throws {RequiredError}
|
|
3145
3551
|
*/
|
|
3146
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>;
|
|
3147
3560
|
};
|
|
3148
3561
|
/**
|
|
3149
3562
|
* QueueApi - functional programming interface
|
|
@@ -3171,6 +3584,13 @@ export declare const QueueApiFp: (configuration?: Configuration | undefined) =>
|
|
|
3171
3584
|
* @throws {RequiredError}
|
|
3172
3585
|
*/
|
|
3173
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>>;
|
|
3174
3594
|
};
|
|
3175
3595
|
/**
|
|
3176
3596
|
* QueueApi - factory interface
|
|
@@ -3198,6 +3618,13 @@ export declare const QueueApiFactory: (configuration?: Configuration | undefined
|
|
|
3198
3618
|
* @throws {RequiredError}
|
|
3199
3619
|
*/
|
|
3200
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>;
|
|
3201
3628
|
};
|
|
3202
3629
|
/**
|
|
3203
3630
|
* QueueApi - object-oriented interface
|
|
@@ -3230,6 +3657,14 @@ export declare class QueueApi extends BaseAPI {
|
|
|
3230
3657
|
* @memberof QueueApi
|
|
3231
3658
|
*/
|
|
3232
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>>;
|
|
3233
3668
|
}
|
|
3234
3669
|
/**
|
|
3235
3670
|
* QuoteApi - axios parameter creator
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Thornode API
|
|
3
3
|
* Thornode REST API.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
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).
|
|
@@ -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.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).
|
|
@@ -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.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).
|
|
@@ -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.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).
|