@xchainjs/xchain-thornode 0.1.0 → 0.1.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.97.2
5
+ * The version of the OpenAPI document: 1.99.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,44 +37,6 @@ export interface BanResponse {
37
37
  */
38
38
  'signers'?: Array<string>;
39
39
  }
40
- /**
41
- *
42
- * @export
43
- * @interface Bucket
44
- */
45
- export interface Bucket {
46
- /**
47
- *
48
- * @type {string}
49
- * @memberof Bucket
50
- */
51
- 'balance_asset': string;
52
- /**
53
- *
54
- * @type {string}
55
- * @memberof Bucket
56
- */
57
- 'asset': string;
58
- /**
59
- * the total pool liquidity provider units
60
- * @type {string}
61
- * @memberof Bucket
62
- */
63
- 'LP_units': string;
64
- /**
65
- *
66
- * @type {string}
67
- * @memberof Bucket
68
- */
69
- 'status': string;
70
- }
71
- /**
72
- *
73
- * @export
74
- * @interface BucketsResponse
75
- */
76
- export interface BucketsResponse extends Array<Bucket> {
77
- }
78
40
  /**
79
41
  *
80
42
  * @export
@@ -181,13 +143,31 @@ export interface InboundAddress {
181
143
  */
182
144
  'router'?: string;
183
145
  /**
184
- *
146
+ * Returns true if trading is unavailable for this chain, either because trading is halted globally or specifically for this chain
185
147
  * @type {boolean}
186
148
  * @memberof InboundAddress
187
149
  */
188
150
  'halted': boolean;
189
151
  /**
190
- * The minimum fee rate used by vaults to send outbound TXs. The actual fee rate may be higher.
152
+ * Returns true if trading is paused globally
153
+ * @type {boolean}
154
+ * @memberof InboundAddress
155
+ */
156
+ 'global_trading_paused'?: boolean;
157
+ /**
158
+ * Returns true if trading is paused for this chain
159
+ * @type {boolean}
160
+ * @memberof InboundAddress
161
+ */
162
+ 'chain_trading_paused'?: boolean;
163
+ /**
164
+ * Returns true if LP actions are paused for this chain
165
+ * @type {boolean}
166
+ * @memberof InboundAddress
167
+ */
168
+ 'chain_lp_actions_paused'?: boolean;
169
+ /**
170
+ * The minimum fee rate used by vaults to send outbound TXs. The actual fee rate may be higher. For EVM chains this is returned in gwei (1e9).
191
171
  * @type {string}
192
172
  * @memberof InboundAddress
193
173
  */
@@ -205,11 +185,17 @@ export interface InboundAddress {
205
185
  */
206
186
  'outbound_tx_size'?: string;
207
187
  /**
208
- * The total outbound fee charged to the user for outbound txs on each chain
188
+ * The total outbound fee charged to the user for outbound txs in the gas asset of the chain.
209
189
  * @type {string}
210
190
  * @memberof InboundAddress
211
191
  */
212
192
  'outbound_fee'?: string;
193
+ /**
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.
195
+ * @type {string}
196
+ * @memberof InboundAddress
197
+ */
198
+ 'dust_threshold'?: string;
213
199
  }
214
200
  /**
215
201
  *
@@ -1001,6 +987,24 @@ export interface Pool {
1001
987
  * @memberof Pool
1002
988
  */
1003
989
  'pending_inbound_asset': string;
990
+ /**
991
+ * the balance of L1 asset deposited into the Savers Vault
992
+ * @type {string}
993
+ * @memberof Pool
994
+ */
995
+ 'savers_depth': string;
996
+ /**
997
+ * the number of units owned by Savers
998
+ * @type {string}
999
+ * @memberof Pool
1000
+ */
1001
+ 'savers_units': string;
1002
+ /**
1003
+ * whether additional synths cannot be minted
1004
+ * @type {boolean}
1005
+ * @memberof Pool
1006
+ */
1007
+ 'synth_mint_paused': boolean;
1004
1008
  }
1005
1009
  /**
1006
1010
  *
@@ -1040,6 +1044,196 @@ export interface QueueResponse {
1040
1044
  */
1041
1045
  'scheduled_outbound_value': string;
1042
1046
  }
1047
+ /**
1048
+ *
1049
+ * @export
1050
+ * @interface QuoteFees
1051
+ */
1052
+ export interface QuoteFees {
1053
+ /**
1054
+ *
1055
+ * @type {string}
1056
+ * @memberof QuoteFees
1057
+ */
1058
+ 'asset': string;
1059
+ /**
1060
+ *
1061
+ * @type {string}
1062
+ * @memberof QuoteFees
1063
+ */
1064
+ 'affiliate': string;
1065
+ /**
1066
+ *
1067
+ * @type {string}
1068
+ * @memberof QuoteFees
1069
+ */
1070
+ 'outbound': string;
1071
+ }
1072
+ /**
1073
+ *
1074
+ * @export
1075
+ * @interface QuoteSaverDepositResponse
1076
+ */
1077
+ export interface QuoteSaverDepositResponse {
1078
+ /**
1079
+ * the inbound address for the transaction on the source chain
1080
+ * @type {string}
1081
+ * @memberof QuoteSaverDepositResponse
1082
+ */
1083
+ 'inbound_address': string;
1084
+ /**
1085
+ * generated memo for the deposit
1086
+ * @type {string}
1087
+ * @memberof QuoteSaverDepositResponse
1088
+ */
1089
+ 'memo': string;
1090
+ /**
1091
+ * the minimum amount of the target asset the user can expect to deposit after fees
1092
+ * @type {string}
1093
+ * @memberof QuoteSaverDepositResponse
1094
+ */
1095
+ 'expected_amount_out': string;
1096
+ /**
1097
+ * the approximate number of source chain blocks required before processing
1098
+ * @type {number}
1099
+ * @memberof QuoteSaverDepositResponse
1100
+ */
1101
+ 'inbound_confirmation_blocks'?: number;
1102
+ /**
1103
+ * the approximate seconds for block confirmations required before processing
1104
+ * @type {number}
1105
+ * @memberof QuoteSaverDepositResponse
1106
+ */
1107
+ 'inbound_confirmation_seconds'?: number;
1108
+ /**
1109
+ *
1110
+ * @type {QuoteFees}
1111
+ * @memberof QuoteSaverDepositResponse
1112
+ */
1113
+ 'fees': QuoteFees;
1114
+ /**
1115
+ * the swap slippage in basis points
1116
+ * @type {number}
1117
+ * @memberof QuoteSaverDepositResponse
1118
+ */
1119
+ 'slippage_bps': number;
1120
+ }
1121
+ /**
1122
+ *
1123
+ * @export
1124
+ * @interface QuoteSaverWithdrawResponse
1125
+ */
1126
+ export interface QuoteSaverWithdrawResponse {
1127
+ /**
1128
+ * the inbound address for the transaction on the source chain
1129
+ * @type {string}
1130
+ * @memberof QuoteSaverWithdrawResponse
1131
+ */
1132
+ 'inbound_address': string;
1133
+ /**
1134
+ * generated memo for the withdraw, the client can use this OR send the dust amount
1135
+ * @type {string}
1136
+ * @memberof QuoteSaverWithdrawResponse
1137
+ */
1138
+ 'memo': string;
1139
+ /**
1140
+ * the dust amount of the target asset the user should send to initialize the withdraw, the client can send this OR provide the memo
1141
+ * @type {string}
1142
+ * @memberof QuoteSaverWithdrawResponse
1143
+ */
1144
+ 'dust_amount': string;
1145
+ /**
1146
+ * the minimum amount of the target asset the user can expect to withdraw after fees in 1e8 decimals
1147
+ * @type {string}
1148
+ * @memberof QuoteSaverWithdrawResponse
1149
+ */
1150
+ 'expected_amount_out': string;
1151
+ /**
1152
+ * the number of thorchain blocks the outbound will be delayed
1153
+ * @type {number}
1154
+ * @memberof QuoteSaverWithdrawResponse
1155
+ */
1156
+ 'outbound_delay_blocks': number;
1157
+ /**
1158
+ * the approximate seconds for the outbound delay before it will be sent
1159
+ * @type {number}
1160
+ * @memberof QuoteSaverWithdrawResponse
1161
+ */
1162
+ 'outbound_delay_seconds': number;
1163
+ /**
1164
+ *
1165
+ * @type {QuoteFees}
1166
+ * @memberof QuoteSaverWithdrawResponse
1167
+ */
1168
+ 'fees': QuoteFees;
1169
+ /**
1170
+ * the swap slippage in basis points
1171
+ * @type {number}
1172
+ * @memberof QuoteSaverWithdrawResponse
1173
+ */
1174
+ 'slippage_bps': number;
1175
+ }
1176
+ /**
1177
+ *
1178
+ * @export
1179
+ * @interface QuoteSwapResponse
1180
+ */
1181
+ export interface QuoteSwapResponse {
1182
+ /**
1183
+ * the inbound address for the transaction on the source chain
1184
+ * @type {string}
1185
+ * @memberof QuoteSwapResponse
1186
+ */
1187
+ 'inbound_address': string;
1188
+ /**
1189
+ * generated memo for the swap
1190
+ * @type {string}
1191
+ * @memberof QuoteSwapResponse
1192
+ */
1193
+ 'memo'?: string;
1194
+ /**
1195
+ * the minimum amount of the target asset the user can expect to receive after fees
1196
+ * @type {string}
1197
+ * @memberof QuoteSwapResponse
1198
+ */
1199
+ 'expected_amount_out': string;
1200
+ /**
1201
+ * the approximate number of source chain blocks required before processing
1202
+ * @type {number}
1203
+ * @memberof QuoteSwapResponse
1204
+ */
1205
+ 'inbound_confirmation_blocks'?: number;
1206
+ /**
1207
+ * the approximate seconds for block confirmations required before processing
1208
+ * @type {number}
1209
+ * @memberof QuoteSwapResponse
1210
+ */
1211
+ 'inbound_confirmation_seconds'?: number;
1212
+ /**
1213
+ * the number of thorchain blocks the outbound will be delayed
1214
+ * @type {number}
1215
+ * @memberof QuoteSwapResponse
1216
+ */
1217
+ 'outbound_delay_blocks': number;
1218
+ /**
1219
+ * the approximate seconds for the outbound delay before it will be sent
1220
+ * @type {number}
1221
+ * @memberof QuoteSwapResponse
1222
+ */
1223
+ 'outbound_delay_seconds': number;
1224
+ /**
1225
+ *
1226
+ * @type {QuoteFees}
1227
+ * @memberof QuoteSwapResponse
1228
+ */
1229
+ 'fees': QuoteFees;
1230
+ /**
1231
+ * the swap slippage in basis points
1232
+ * @type {number}
1233
+ * @memberof QuoteSwapResponse
1234
+ */
1235
+ 'slippage_bps': number;
1236
+ }
1043
1237
  /**
1044
1238
  *
1045
1239
  * @export
@@ -1059,24 +1253,49 @@ export interface Thorname {
1059
1253
  * @memberof Thorname
1060
1254
  */
1061
1255
  'name'?: string;
1256
+ /**
1257
+ *
1258
+ * @type {number}
1259
+ * @memberof Thorname
1260
+ */
1261
+ 'expire_block_height'?: number;
1062
1262
  /**
1063
1263
  *
1064
1264
  * @type {string}
1065
1265
  * @memberof Thorname
1066
1266
  */
1067
- 'chain'?: string;
1267
+ 'owner'?: string;
1068
1268
  /**
1069
1269
  *
1070
1270
  * @type {string}
1071
1271
  * @memberof Thorname
1072
1272
  */
1073
- 'address'?: string;
1273
+ 'preferred_asset': string;
1074
1274
  /**
1075
1275
  *
1076
- * @type {number}
1276
+ * @type {Array<ThornameAlias>}
1077
1277
  * @memberof Thorname
1078
1278
  */
1079
- 'expire_block_height'?: number;
1279
+ 'aliases': Array<ThornameAlias>;
1280
+ }
1281
+ /**
1282
+ *
1283
+ * @export
1284
+ * @interface ThornameAlias
1285
+ */
1286
+ export interface ThornameAlias {
1287
+ /**
1288
+ *
1289
+ * @type {string}
1290
+ * @memberof ThornameAlias
1291
+ */
1292
+ 'chain'?: string;
1293
+ /**
1294
+ *
1295
+ * @type {string}
1296
+ * @memberof ThornameAlias
1297
+ */
1298
+ 'address'?: string;
1080
1299
  }
1081
1300
  /**
1082
1301
  *
@@ -1523,94 +1742,6 @@ export interface VersionResponse {
1523
1742
  */
1524
1743
  'querier': string;
1525
1744
  }
1526
- /**
1527
- * BucketsApi - axios parameter creator
1528
- * @export
1529
- */
1530
- export declare const BucketsApiAxiosParamCreator: (configuration?: Configuration | undefined) => {
1531
- /**
1532
- * Returns the bucket information for the provided asset.
1533
- * @param {string} asset
1534
- * @param {number} [height] optional block height, defaults to current tip
1535
- * @param {*} [options] Override http request option.
1536
- * @throws {RequiredError}
1537
- */
1538
- bucket: (asset: string, height?: number | undefined, options?: AxiosRequestConfig) => Promise<RequestArgs>;
1539
- /**
1540
- * Returns the bucket information for all assets.
1541
- * @param {number} [height] optional block height, defaults to current tip
1542
- * @param {*} [options] Override http request option.
1543
- * @throws {RequiredError}
1544
- */
1545
- buckets: (height?: number | undefined, options?: AxiosRequestConfig) => Promise<RequestArgs>;
1546
- };
1547
- /**
1548
- * BucketsApi - functional programming interface
1549
- * @export
1550
- */
1551
- export declare const BucketsApiFp: (configuration?: Configuration | undefined) => {
1552
- /**
1553
- * Returns the bucket information for the provided asset.
1554
- * @param {string} asset
1555
- * @param {number} [height] optional block height, defaults to current tip
1556
- * @param {*} [options] Override http request option.
1557
- * @throws {RequiredError}
1558
- */
1559
- bucket(asset: string, height?: number | undefined, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<Bucket>>;
1560
- /**
1561
- * Returns the bucket information for all assets.
1562
- * @param {number} [height] optional block height, defaults to current tip
1563
- * @param {*} [options] Override http request option.
1564
- * @throws {RequiredError}
1565
- */
1566
- buckets(height?: number | undefined, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<BucketsResponse>>;
1567
- };
1568
- /**
1569
- * BucketsApi - factory interface
1570
- * @export
1571
- */
1572
- export declare const BucketsApiFactory: (configuration?: Configuration | undefined, basePath?: string | undefined, axios?: AxiosInstance | undefined) => {
1573
- /**
1574
- * Returns the bucket information for the provided asset.
1575
- * @param {string} asset
1576
- * @param {number} [height] optional block height, defaults to current tip
1577
- * @param {*} [options] Override http request option.
1578
- * @throws {RequiredError}
1579
- */
1580
- bucket(asset: string, height?: number | undefined, options?: any): AxiosPromise<Bucket>;
1581
- /**
1582
- * Returns the bucket information for all assets.
1583
- * @param {number} [height] optional block height, defaults to current tip
1584
- * @param {*} [options] Override http request option.
1585
- * @throws {RequiredError}
1586
- */
1587
- buckets(height?: number | undefined, options?: any): AxiosPromise<BucketsResponse>;
1588
- };
1589
- /**
1590
- * BucketsApi - object-oriented interface
1591
- * @export
1592
- * @class BucketsApi
1593
- * @extends {BaseAPI}
1594
- */
1595
- export declare class BucketsApi extends BaseAPI {
1596
- /**
1597
- * Returns the bucket information for the provided asset.
1598
- * @param {string} asset
1599
- * @param {number} [height] optional block height, defaults to current tip
1600
- * @param {*} [options] Override http request option.
1601
- * @throws {RequiredError}
1602
- * @memberof BucketsApi
1603
- */
1604
- bucket(asset: string, height?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Bucket, any>>;
1605
- /**
1606
- * Returns the bucket information for all assets.
1607
- * @param {number} [height] optional block height, defaults to current tip
1608
- * @param {*} [options] Override http request option.
1609
- * @throws {RequiredError}
1610
- * @memberof BucketsApi
1611
- */
1612
- buckets(height?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<BucketsResponse, any>>;
1613
- }
1614
1745
  /**
1615
1746
  * HealthApi - axios parameter creator
1616
1747
  * @export
@@ -2547,6 +2678,263 @@ export declare class QueueApi extends BaseAPI {
2547
2678
  */
2548
2679
  queueScheduled(height?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ScheduledResponse, any>>;
2549
2680
  }
2681
+ /**
2682
+ * QuoteApi - axios parameter creator
2683
+ * @export
2684
+ */
2685
+ export declare const QuoteApiAxiosParamCreator: (configuration?: Configuration | undefined) => {
2686
+ /**
2687
+ * Provide a quote estimate for the provided saver deposit.
2688
+ * @param {number} [height] optional block height, defaults to current tip
2689
+ * @param {string} [asset] the asset to deposit
2690
+ * @param {number} [amount] the source asset amount in 1e8 decimals
2691
+ * @param {*} [options] Override http request option.
2692
+ * @throws {RequiredError}
2693
+ */
2694
+ quotesaverdeposit: (height?: number | undefined, asset?: string | undefined, amount?: number | undefined, options?: AxiosRequestConfig) => Promise<RequestArgs>;
2695
+ /**
2696
+ * Provide a quote estimate for the provided saver withdraw.
2697
+ * @param {number} [height] optional block height, defaults to current tip
2698
+ * @param {string} [asset] the asset to withdraw
2699
+ * @param {string} [address] the address for the position
2700
+ * @param {number} [withdrawBps] the basis points of the existing position to withdraw
2701
+ * @param {*} [options] Override http request option.
2702
+ * @throws {RequiredError}
2703
+ */
2704
+ quotesaverwithdraw: (height?: number | undefined, asset?: string | undefined, address?: string | undefined, withdrawBps?: number | undefined, options?: AxiosRequestConfig) => Promise<RequestArgs>;
2705
+ /**
2706
+ * Provide a quote estimate for the provided swap.
2707
+ * @param {number} [height] optional block height, defaults to current tip
2708
+ * @param {string} [fromAsset] the source asset
2709
+ * @param {string} [toAsset] the target asset
2710
+ * @param {number} [amount] the source asset amount in 1e8 decimals
2711
+ * @param {string} [destination] the destination address, required to generate memo
2712
+ * @param {number} [toleranceBps] the maximum basis points from the current feeless swap price to set the limit in the generated memo
2713
+ * @param {number} [affiliateBps] the affiliate fee in basis points
2714
+ * @param {string} [affiliate] the affiliate (address or thorname)
2715
+ * @param {*} [options] Override http request option.
2716
+ * @throws {RequiredError}
2717
+ */
2718
+ 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>;
2719
+ };
2720
+ /**
2721
+ * QuoteApi - functional programming interface
2722
+ * @export
2723
+ */
2724
+ export declare const QuoteApiFp: (configuration?: Configuration | undefined) => {
2725
+ /**
2726
+ * Provide a quote estimate for the provided saver deposit.
2727
+ * @param {number} [height] optional block height, defaults to current tip
2728
+ * @param {string} [asset] the asset to deposit
2729
+ * @param {number} [amount] the source asset amount in 1e8 decimals
2730
+ * @param {*} [options] Override http request option.
2731
+ * @throws {RequiredError}
2732
+ */
2733
+ quotesaverdeposit(height?: number | undefined, asset?: string | undefined, amount?: number | undefined, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<QuoteSaverDepositResponse>>;
2734
+ /**
2735
+ * Provide a quote estimate for the provided saver withdraw.
2736
+ * @param {number} [height] optional block height, defaults to current tip
2737
+ * @param {string} [asset] the asset to withdraw
2738
+ * @param {string} [address] the address for the position
2739
+ * @param {number} [withdrawBps] the basis points of the existing position to withdraw
2740
+ * @param {*} [options] Override http request option.
2741
+ * @throws {RequiredError}
2742
+ */
2743
+ quotesaverwithdraw(height?: number | undefined, asset?: string | undefined, address?: string | undefined, withdrawBps?: number | undefined, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<QuoteSaverWithdrawResponse>>;
2744
+ /**
2745
+ * Provide a quote estimate for the provided swap.
2746
+ * @param {number} [height] optional block height, defaults to current tip
2747
+ * @param {string} [fromAsset] the source asset
2748
+ * @param {string} [toAsset] the target asset
2749
+ * @param {number} [amount] the source asset amount in 1e8 decimals
2750
+ * @param {string} [destination] the destination address, required to generate memo
2751
+ * @param {number} [toleranceBps] the maximum basis points from the current feeless swap price to set the limit in the generated memo
2752
+ * @param {number} [affiliateBps] the affiliate fee in basis points
2753
+ * @param {string} [affiliate] the affiliate (address or thorname)
2754
+ * @param {*} [options] Override http request option.
2755
+ * @throws {RequiredError}
2756
+ */
2757
+ 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>>;
2758
+ };
2759
+ /**
2760
+ * QuoteApi - factory interface
2761
+ * @export
2762
+ */
2763
+ export declare const QuoteApiFactory: (configuration?: Configuration | undefined, basePath?: string | undefined, axios?: AxiosInstance | undefined) => {
2764
+ /**
2765
+ * Provide a quote estimate for the provided saver deposit.
2766
+ * @param {number} [height] optional block height, defaults to current tip
2767
+ * @param {string} [asset] the asset to deposit
2768
+ * @param {number} [amount] the source asset amount in 1e8 decimals
2769
+ * @param {*} [options] Override http request option.
2770
+ * @throws {RequiredError}
2771
+ */
2772
+ quotesaverdeposit(height?: number | undefined, asset?: string | undefined, amount?: number | undefined, options?: any): AxiosPromise<QuoteSaverDepositResponse>;
2773
+ /**
2774
+ * Provide a quote estimate for the provided saver withdraw.
2775
+ * @param {number} [height] optional block height, defaults to current tip
2776
+ * @param {string} [asset] the asset to withdraw
2777
+ * @param {string} [address] the address for the position
2778
+ * @param {number} [withdrawBps] the basis points of the existing position to withdraw
2779
+ * @param {*} [options] Override http request option.
2780
+ * @throws {RequiredError}
2781
+ */
2782
+ quotesaverwithdraw(height?: number | undefined, asset?: string | undefined, address?: string | undefined, withdrawBps?: number | undefined, options?: any): AxiosPromise<QuoteSaverWithdrawResponse>;
2783
+ /**
2784
+ * Provide a quote estimate for the provided swap.
2785
+ * @param {number} [height] optional block height, defaults to current tip
2786
+ * @param {string} [fromAsset] the source asset
2787
+ * @param {string} [toAsset] the target asset
2788
+ * @param {number} [amount] the source asset amount in 1e8 decimals
2789
+ * @param {string} [destination] the destination address, required to generate memo
2790
+ * @param {number} [toleranceBps] the maximum basis points from the current feeless swap price to set the limit in the generated memo
2791
+ * @param {number} [affiliateBps] the affiliate fee in basis points
2792
+ * @param {string} [affiliate] the affiliate (address or thorname)
2793
+ * @param {*} [options] Override http request option.
2794
+ * @throws {RequiredError}
2795
+ */
2796
+ 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>;
2797
+ };
2798
+ /**
2799
+ * QuoteApi - object-oriented interface
2800
+ * @export
2801
+ * @class QuoteApi
2802
+ * @extends {BaseAPI}
2803
+ */
2804
+ export declare class QuoteApi extends BaseAPI {
2805
+ /**
2806
+ * Provide a quote estimate for the provided saver deposit.
2807
+ * @param {number} [height] optional block height, defaults to current tip
2808
+ * @param {string} [asset] the asset to deposit
2809
+ * @param {number} [amount] the source asset amount in 1e8 decimals
2810
+ * @param {*} [options] Override http request option.
2811
+ * @throws {RequiredError}
2812
+ * @memberof QuoteApi
2813
+ */
2814
+ quotesaverdeposit(height?: number, asset?: string, amount?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<QuoteSaverDepositResponse, any>>;
2815
+ /**
2816
+ * Provide a quote estimate for the provided saver withdraw.
2817
+ * @param {number} [height] optional block height, defaults to current tip
2818
+ * @param {string} [asset] the asset to withdraw
2819
+ * @param {string} [address] the address for the position
2820
+ * @param {number} [withdrawBps] the basis points of the existing position to withdraw
2821
+ * @param {*} [options] Override http request option.
2822
+ * @throws {RequiredError}
2823
+ * @memberof QuoteApi
2824
+ */
2825
+ quotesaverwithdraw(height?: number, asset?: string, address?: string, withdrawBps?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<QuoteSaverWithdrawResponse, any>>;
2826
+ /**
2827
+ * Provide a quote estimate for the provided swap.
2828
+ * @param {number} [height] optional block height, defaults to current tip
2829
+ * @param {string} [fromAsset] the source asset
2830
+ * @param {string} [toAsset] the target asset
2831
+ * @param {number} [amount] the source asset amount in 1e8 decimals
2832
+ * @param {string} [destination] the destination address, required to generate memo
2833
+ * @param {number} [toleranceBps] the maximum basis points from the current feeless swap price to set the limit in the generated memo
2834
+ * @param {number} [affiliateBps] the affiliate fee in basis points
2835
+ * @param {string} [affiliate] the affiliate (address or thorname)
2836
+ * @param {*} [options] Override http request option.
2837
+ * @throws {RequiredError}
2838
+ * @memberof QuoteApi
2839
+ */
2840
+ 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>>;
2841
+ }
2842
+ /**
2843
+ * SaversApi - axios parameter creator
2844
+ * @export
2845
+ */
2846
+ export declare const SaversApiAxiosParamCreator: (configuration?: Configuration | undefined) => {
2847
+ /**
2848
+ * Returns the saver position given then savers pool and address.
2849
+ * @param {string} asset
2850
+ * @param {string} address
2851
+ * @param {number} [height] optional block height, defaults to current tip
2852
+ * @param {*} [options] Override http request option.
2853
+ * @throws {RequiredError}
2854
+ */
2855
+ saver: (asset: string, address: string, height?: number | undefined, options?: AxiosRequestConfig) => Promise<RequestArgs>;
2856
+ /**
2857
+ * Returns all savers for the savers pool.
2858
+ * @param {string} asset
2859
+ * @param {number} [height] optional block height, defaults to current tip
2860
+ * @param {*} [options] Override http request option.
2861
+ * @throws {RequiredError}
2862
+ */
2863
+ savers: (asset: string, height?: number | undefined, options?: AxiosRequestConfig) => Promise<RequestArgs>;
2864
+ };
2865
+ /**
2866
+ * SaversApi - functional programming interface
2867
+ * @export
2868
+ */
2869
+ export declare const SaversApiFp: (configuration?: Configuration | undefined) => {
2870
+ /**
2871
+ * Returns the saver position given then savers pool and address.
2872
+ * @param {string} asset
2873
+ * @param {string} address
2874
+ * @param {number} [height] optional block height, defaults to current tip
2875
+ * @param {*} [options] Override http request option.
2876
+ * @throws {RequiredError}
2877
+ */
2878
+ saver(asset: string, address: string, height?: number | undefined, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<LiquidityProviderResponse>>;
2879
+ /**
2880
+ * Returns all savers for the savers pool.
2881
+ * @param {string} asset
2882
+ * @param {number} [height] optional block height, defaults to current tip
2883
+ * @param {*} [options] Override http request option.
2884
+ * @throws {RequiredError}
2885
+ */
2886
+ savers(asset: string, height?: number | undefined, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<LiquidityProviderResponse>>;
2887
+ };
2888
+ /**
2889
+ * SaversApi - factory interface
2890
+ * @export
2891
+ */
2892
+ export declare const SaversApiFactory: (configuration?: Configuration | undefined, basePath?: string | undefined, axios?: AxiosInstance | undefined) => {
2893
+ /**
2894
+ * Returns the saver position given then savers pool and address.
2895
+ * @param {string} asset
2896
+ * @param {string} address
2897
+ * @param {number} [height] optional block height, defaults to current tip
2898
+ * @param {*} [options] Override http request option.
2899
+ * @throws {RequiredError}
2900
+ */
2901
+ saver(asset: string, address: string, height?: number | undefined, options?: any): AxiosPromise<LiquidityProviderResponse>;
2902
+ /**
2903
+ * Returns all savers for the savers pool.
2904
+ * @param {string} asset
2905
+ * @param {number} [height] optional block height, defaults to current tip
2906
+ * @param {*} [options] Override http request option.
2907
+ * @throws {RequiredError}
2908
+ */
2909
+ savers(asset: string, height?: number | undefined, options?: any): AxiosPromise<LiquidityProviderResponse>;
2910
+ };
2911
+ /**
2912
+ * SaversApi - object-oriented interface
2913
+ * @export
2914
+ * @class SaversApi
2915
+ * @extends {BaseAPI}
2916
+ */
2917
+ export declare class SaversApi extends BaseAPI {
2918
+ /**
2919
+ * Returns the saver position given then savers pool and address.
2920
+ * @param {string} asset
2921
+ * @param {string} address
2922
+ * @param {number} [height] optional block height, defaults to current tip
2923
+ * @param {*} [options] Override http request option.
2924
+ * @throws {RequiredError}
2925
+ * @memberof SaversApi
2926
+ */
2927
+ saver(asset: string, address: string, height?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<LiquidityProviderResponse, any>>;
2928
+ /**
2929
+ * Returns all savers for the savers pool.
2930
+ * @param {string} asset
2931
+ * @param {number} [height] optional block height, defaults to current tip
2932
+ * @param {*} [options] Override http request option.
2933
+ * @throws {RequiredError}
2934
+ * @memberof SaversApi
2935
+ */
2936
+ savers(asset: string, height?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<LiquidityProviderResponse, any>>;
2937
+ }
2550
2938
  /**
2551
2939
  * TSSApi - axios parameter creator
2552
2940
  * @export