@xchainjs/xchain-thornode 0.3.7 → 0.3.9
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 +389 -55
- 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 +161 -16
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +164 -15
- 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.124.0
|
|
6
6
|
* Contact: devs@thorchain.org
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -128,6 +128,279 @@ export interface BaseQuoteResponse {
|
|
|
128
128
|
*/
|
|
129
129
|
'recommended_min_amount_in'?: string;
|
|
130
130
|
}
|
|
131
|
+
/**
|
|
132
|
+
*
|
|
133
|
+
* @export
|
|
134
|
+
* @interface BlockResponse
|
|
135
|
+
*/
|
|
136
|
+
export interface BlockResponse {
|
|
137
|
+
/**
|
|
138
|
+
*
|
|
139
|
+
* @type {BlockResponseId}
|
|
140
|
+
* @memberof BlockResponse
|
|
141
|
+
*/
|
|
142
|
+
'id': BlockResponseId;
|
|
143
|
+
/**
|
|
144
|
+
*
|
|
145
|
+
* @type {BlockResponseHeader}
|
|
146
|
+
* @memberof BlockResponse
|
|
147
|
+
*/
|
|
148
|
+
'header': BlockResponseHeader;
|
|
149
|
+
/**
|
|
150
|
+
*
|
|
151
|
+
* @type {Array<{ [key: string]: string; }>}
|
|
152
|
+
* @memberof BlockResponse
|
|
153
|
+
*/
|
|
154
|
+
'begin_block_events': Array<{
|
|
155
|
+
[key: string]: string;
|
|
156
|
+
}>;
|
|
157
|
+
/**
|
|
158
|
+
*
|
|
159
|
+
* @type {Array<{ [key: string]: string; }>}
|
|
160
|
+
* @memberof BlockResponse
|
|
161
|
+
*/
|
|
162
|
+
'end_block_events': Array<{
|
|
163
|
+
[key: string]: string;
|
|
164
|
+
}>;
|
|
165
|
+
/**
|
|
166
|
+
*
|
|
167
|
+
* @type {Array<BlockTx>}
|
|
168
|
+
* @memberof BlockResponse
|
|
169
|
+
*/
|
|
170
|
+
'txs': Array<BlockTx> | null;
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
*
|
|
174
|
+
* @export
|
|
175
|
+
* @interface BlockResponseHeader
|
|
176
|
+
*/
|
|
177
|
+
export interface BlockResponseHeader {
|
|
178
|
+
/**
|
|
179
|
+
*
|
|
180
|
+
* @type {BlockResponseHeaderVersion}
|
|
181
|
+
* @memberof BlockResponseHeader
|
|
182
|
+
*/
|
|
183
|
+
'version': BlockResponseHeaderVersion;
|
|
184
|
+
/**
|
|
185
|
+
*
|
|
186
|
+
* @type {string}
|
|
187
|
+
* @memberof BlockResponseHeader
|
|
188
|
+
*/
|
|
189
|
+
'chain_id': string;
|
|
190
|
+
/**
|
|
191
|
+
*
|
|
192
|
+
* @type {number}
|
|
193
|
+
* @memberof BlockResponseHeader
|
|
194
|
+
*/
|
|
195
|
+
'height': number;
|
|
196
|
+
/**
|
|
197
|
+
*
|
|
198
|
+
* @type {string}
|
|
199
|
+
* @memberof BlockResponseHeader
|
|
200
|
+
*/
|
|
201
|
+
'time': string;
|
|
202
|
+
/**
|
|
203
|
+
*
|
|
204
|
+
* @type {BlockResponseId}
|
|
205
|
+
* @memberof BlockResponseHeader
|
|
206
|
+
*/
|
|
207
|
+
'last_block_id': BlockResponseId;
|
|
208
|
+
/**
|
|
209
|
+
*
|
|
210
|
+
* @type {string}
|
|
211
|
+
* @memberof BlockResponseHeader
|
|
212
|
+
*/
|
|
213
|
+
'last_commit_hash': string;
|
|
214
|
+
/**
|
|
215
|
+
*
|
|
216
|
+
* @type {string}
|
|
217
|
+
* @memberof BlockResponseHeader
|
|
218
|
+
*/
|
|
219
|
+
'data_hash': string;
|
|
220
|
+
/**
|
|
221
|
+
*
|
|
222
|
+
* @type {string}
|
|
223
|
+
* @memberof BlockResponseHeader
|
|
224
|
+
*/
|
|
225
|
+
'validators_hash': string;
|
|
226
|
+
/**
|
|
227
|
+
*
|
|
228
|
+
* @type {string}
|
|
229
|
+
* @memberof BlockResponseHeader
|
|
230
|
+
*/
|
|
231
|
+
'next_validators_hash': string;
|
|
232
|
+
/**
|
|
233
|
+
*
|
|
234
|
+
* @type {string}
|
|
235
|
+
* @memberof BlockResponseHeader
|
|
236
|
+
*/
|
|
237
|
+
'consensus_hash': string;
|
|
238
|
+
/**
|
|
239
|
+
*
|
|
240
|
+
* @type {string}
|
|
241
|
+
* @memberof BlockResponseHeader
|
|
242
|
+
*/
|
|
243
|
+
'app_hash': string;
|
|
244
|
+
/**
|
|
245
|
+
*
|
|
246
|
+
* @type {string}
|
|
247
|
+
* @memberof BlockResponseHeader
|
|
248
|
+
*/
|
|
249
|
+
'last_results_hash': string;
|
|
250
|
+
/**
|
|
251
|
+
*
|
|
252
|
+
* @type {string}
|
|
253
|
+
* @memberof BlockResponseHeader
|
|
254
|
+
*/
|
|
255
|
+
'evidence_hash': string;
|
|
256
|
+
/**
|
|
257
|
+
*
|
|
258
|
+
* @type {string}
|
|
259
|
+
* @memberof BlockResponseHeader
|
|
260
|
+
*/
|
|
261
|
+
'proposer_address': string;
|
|
262
|
+
}
|
|
263
|
+
/**
|
|
264
|
+
*
|
|
265
|
+
* @export
|
|
266
|
+
* @interface BlockResponseHeaderVersion
|
|
267
|
+
*/
|
|
268
|
+
export interface BlockResponseHeaderVersion {
|
|
269
|
+
/**
|
|
270
|
+
*
|
|
271
|
+
* @type {string}
|
|
272
|
+
* @memberof BlockResponseHeaderVersion
|
|
273
|
+
*/
|
|
274
|
+
'block': string;
|
|
275
|
+
/**
|
|
276
|
+
*
|
|
277
|
+
* @type {string}
|
|
278
|
+
* @memberof BlockResponseHeaderVersion
|
|
279
|
+
*/
|
|
280
|
+
'app': string;
|
|
281
|
+
}
|
|
282
|
+
/**
|
|
283
|
+
*
|
|
284
|
+
* @export
|
|
285
|
+
* @interface BlockResponseId
|
|
286
|
+
*/
|
|
287
|
+
export interface BlockResponseId {
|
|
288
|
+
/**
|
|
289
|
+
*
|
|
290
|
+
* @type {string}
|
|
291
|
+
* @memberof BlockResponseId
|
|
292
|
+
*/
|
|
293
|
+
'hash': string;
|
|
294
|
+
/**
|
|
295
|
+
*
|
|
296
|
+
* @type {BlockResponseIdParts}
|
|
297
|
+
* @memberof BlockResponseId
|
|
298
|
+
*/
|
|
299
|
+
'parts': BlockResponseIdParts;
|
|
300
|
+
}
|
|
301
|
+
/**
|
|
302
|
+
*
|
|
303
|
+
* @export
|
|
304
|
+
* @interface BlockResponseIdParts
|
|
305
|
+
*/
|
|
306
|
+
export interface BlockResponseIdParts {
|
|
307
|
+
/**
|
|
308
|
+
*
|
|
309
|
+
* @type {number}
|
|
310
|
+
* @memberof BlockResponseIdParts
|
|
311
|
+
*/
|
|
312
|
+
'total': number;
|
|
313
|
+
/**
|
|
314
|
+
*
|
|
315
|
+
* @type {string}
|
|
316
|
+
* @memberof BlockResponseIdParts
|
|
317
|
+
*/
|
|
318
|
+
'hash': string;
|
|
319
|
+
}
|
|
320
|
+
/**
|
|
321
|
+
*
|
|
322
|
+
* @export
|
|
323
|
+
* @interface BlockTx
|
|
324
|
+
*/
|
|
325
|
+
export interface BlockTx {
|
|
326
|
+
/**
|
|
327
|
+
*
|
|
328
|
+
* @type {string}
|
|
329
|
+
* @memberof BlockTx
|
|
330
|
+
*/
|
|
331
|
+
'hash': string;
|
|
332
|
+
/**
|
|
333
|
+
*
|
|
334
|
+
* @type {{ [key: string]: any; }}
|
|
335
|
+
* @memberof BlockTx
|
|
336
|
+
*/
|
|
337
|
+
'tx': {
|
|
338
|
+
[key: string]: any;
|
|
339
|
+
};
|
|
340
|
+
/**
|
|
341
|
+
*
|
|
342
|
+
* @type {BlockTxResult}
|
|
343
|
+
* @memberof BlockTx
|
|
344
|
+
*/
|
|
345
|
+
'result': BlockTxResult;
|
|
346
|
+
}
|
|
347
|
+
/**
|
|
348
|
+
*
|
|
349
|
+
* @export
|
|
350
|
+
* @interface BlockTxResult
|
|
351
|
+
*/
|
|
352
|
+
export interface BlockTxResult {
|
|
353
|
+
/**
|
|
354
|
+
*
|
|
355
|
+
* @type {number}
|
|
356
|
+
* @memberof BlockTxResult
|
|
357
|
+
*/
|
|
358
|
+
'code'?: number;
|
|
359
|
+
/**
|
|
360
|
+
*
|
|
361
|
+
* @type {string}
|
|
362
|
+
* @memberof BlockTxResult
|
|
363
|
+
*/
|
|
364
|
+
'data'?: string;
|
|
365
|
+
/**
|
|
366
|
+
*
|
|
367
|
+
* @type {string}
|
|
368
|
+
* @memberof BlockTxResult
|
|
369
|
+
*/
|
|
370
|
+
'log'?: string;
|
|
371
|
+
/**
|
|
372
|
+
*
|
|
373
|
+
* @type {string}
|
|
374
|
+
* @memberof BlockTxResult
|
|
375
|
+
*/
|
|
376
|
+
'info'?: string;
|
|
377
|
+
/**
|
|
378
|
+
*
|
|
379
|
+
* @type {string}
|
|
380
|
+
* @memberof BlockTxResult
|
|
381
|
+
*/
|
|
382
|
+
'gas_wanted'?: string;
|
|
383
|
+
/**
|
|
384
|
+
*
|
|
385
|
+
* @type {string}
|
|
386
|
+
* @memberof BlockTxResult
|
|
387
|
+
*/
|
|
388
|
+
'gas_used'?: string;
|
|
389
|
+
/**
|
|
390
|
+
*
|
|
391
|
+
* @type {Array<{ [key: string]: string; }>}
|
|
392
|
+
* @memberof BlockTxResult
|
|
393
|
+
*/
|
|
394
|
+
'events'?: Array<{
|
|
395
|
+
[key: string]: string;
|
|
396
|
+
}> | null;
|
|
397
|
+
/**
|
|
398
|
+
*
|
|
399
|
+
* @type {string}
|
|
400
|
+
* @memberof BlockTxResult
|
|
401
|
+
*/
|
|
402
|
+
'codespace'?: string;
|
|
403
|
+
}
|
|
131
404
|
/**
|
|
132
405
|
*
|
|
133
406
|
* @export
|
|
@@ -1298,19 +1571,7 @@ export interface ObservedTx {
|
|
|
1298
1571
|
* @type {string}
|
|
1299
1572
|
* @memberof ObservedTx
|
|
1300
1573
|
*/
|
|
1301
|
-
'
|
|
1302
|
-
/**
|
|
1303
|
-
*
|
|
1304
|
-
* @type {Array<string>}
|
|
1305
|
-
* @memberof ObservedTx
|
|
1306
|
-
*/
|
|
1307
|
-
'out_hashes'?: Array<string>;
|
|
1308
|
-
/**
|
|
1309
|
-
* same as external_observed_height, to be deprecated in favour of external_observed_height
|
|
1310
|
-
* @type {number}
|
|
1311
|
-
* @memberof ObservedTx
|
|
1312
|
-
*/
|
|
1313
|
-
'block_height'?: number;
|
|
1574
|
+
'observed_pub_key'?: string;
|
|
1314
1575
|
/**
|
|
1315
1576
|
* the block height on the external source chain when the transaction was observed, not provided if chain is THOR
|
|
1316
1577
|
* @type {number}
|
|
@@ -1318,53 +1579,53 @@ export interface ObservedTx {
|
|
|
1318
1579
|
*/
|
|
1319
1580
|
'external_observed_height'?: number;
|
|
1320
1581
|
/**
|
|
1321
|
-
*
|
|
1322
|
-
* @type {
|
|
1582
|
+
* the block height on the external source chain when confirmation counting will be complete, not provided if chain is THOR
|
|
1583
|
+
* @type {number}
|
|
1323
1584
|
* @memberof ObservedTx
|
|
1324
1585
|
*/
|
|
1325
|
-
'
|
|
1586
|
+
'external_confirmation_delay_height'?: number;
|
|
1326
1587
|
/**
|
|
1327
|
-
*
|
|
1588
|
+
* the outbound aggregator to use, will also match a suffix
|
|
1328
1589
|
* @type {string}
|
|
1329
1590
|
* @memberof ObservedTx
|
|
1330
1591
|
*/
|
|
1331
|
-
'
|
|
1592
|
+
'aggregator'?: string;
|
|
1332
1593
|
/**
|
|
1333
|
-
*
|
|
1334
|
-
* @type {
|
|
1594
|
+
* the aggregator target asset provided to transferOutAndCall
|
|
1595
|
+
* @type {string}
|
|
1335
1596
|
* @memberof ObservedTx
|
|
1336
1597
|
*/
|
|
1337
|
-
'
|
|
1598
|
+
'aggregator_target'?: string;
|
|
1338
1599
|
/**
|
|
1339
|
-
*
|
|
1340
|
-
* @type {
|
|
1600
|
+
* the aggregator target asset limit provided to transferOutAndCall
|
|
1601
|
+
* @type {string}
|
|
1341
1602
|
* @memberof ObservedTx
|
|
1342
1603
|
*/
|
|
1343
|
-
'
|
|
1604
|
+
'aggregator_target_limit'?: string;
|
|
1344
1605
|
/**
|
|
1345
|
-
*
|
|
1346
|
-
* @type {
|
|
1606
|
+
*
|
|
1607
|
+
* @type {Array<string>}
|
|
1347
1608
|
* @memberof ObservedTx
|
|
1348
1609
|
*/
|
|
1349
|
-
'
|
|
1610
|
+
'signers'?: Array<string>;
|
|
1350
1611
|
/**
|
|
1351
|
-
*
|
|
1352
|
-
* @type {
|
|
1612
|
+
*
|
|
1613
|
+
* @type {number}
|
|
1353
1614
|
* @memberof ObservedTx
|
|
1354
1615
|
*/
|
|
1355
|
-
'
|
|
1616
|
+
'keysign_ms'?: number;
|
|
1356
1617
|
/**
|
|
1357
|
-
*
|
|
1358
|
-
* @type {string}
|
|
1618
|
+
*
|
|
1619
|
+
* @type {Array<string>}
|
|
1359
1620
|
* @memberof ObservedTx
|
|
1360
1621
|
*/
|
|
1361
|
-
'
|
|
1622
|
+
'out_hashes'?: Array<string>;
|
|
1362
1623
|
/**
|
|
1363
|
-
*
|
|
1624
|
+
*
|
|
1364
1625
|
* @type {string}
|
|
1365
1626
|
* @memberof ObservedTx
|
|
1366
1627
|
*/
|
|
1367
|
-
'
|
|
1628
|
+
'status'?: ObservedTxStatusEnum;
|
|
1368
1629
|
}
|
|
1369
1630
|
export declare const ObservedTxStatusEnum: {
|
|
1370
1631
|
readonly Done: "done";
|
|
@@ -2441,13 +2702,6 @@ export interface ThornameAlias {
|
|
|
2441
2702
|
*/
|
|
2442
2703
|
'address'?: string;
|
|
2443
2704
|
}
|
|
2444
|
-
/**
|
|
2445
|
-
*
|
|
2446
|
-
* @export
|
|
2447
|
-
* @interface ThornameResponse
|
|
2448
|
-
*/
|
|
2449
|
-
export interface ThornameResponse extends Array<Thorname> {
|
|
2450
|
-
}
|
|
2451
2705
|
/**
|
|
2452
2706
|
*
|
|
2453
2707
|
* @export
|
|
@@ -3113,7 +3367,7 @@ export interface Vault {
|
|
|
3113
3367
|
* @type {string}
|
|
3114
3368
|
* @memberof Vault
|
|
3115
3369
|
*/
|
|
3116
|
-
'status'
|
|
3370
|
+
'status': string;
|
|
3117
3371
|
/**
|
|
3118
3372
|
*
|
|
3119
3373
|
* @type {number}
|
|
@@ -3294,6 +3548,61 @@ export interface VersionResponse {
|
|
|
3294
3548
|
*/
|
|
3295
3549
|
'querier': string;
|
|
3296
3550
|
}
|
|
3551
|
+
/**
|
|
3552
|
+
* BlockApi - axios parameter creator
|
|
3553
|
+
* @export
|
|
3554
|
+
*/
|
|
3555
|
+
export declare const BlockApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
3556
|
+
/**
|
|
3557
|
+
* Returns verbose details of the block.
|
|
3558
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
3559
|
+
* @param {*} [options] Override http request option.
|
|
3560
|
+
* @throws {RequiredError}
|
|
3561
|
+
*/
|
|
3562
|
+
block: (height?: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3563
|
+
};
|
|
3564
|
+
/**
|
|
3565
|
+
* BlockApi - functional programming interface
|
|
3566
|
+
* @export
|
|
3567
|
+
*/
|
|
3568
|
+
export declare const BlockApiFp: (configuration?: Configuration) => {
|
|
3569
|
+
/**
|
|
3570
|
+
* Returns verbose details of the block.
|
|
3571
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
3572
|
+
* @param {*} [options] Override http request option.
|
|
3573
|
+
* @throws {RequiredError}
|
|
3574
|
+
*/
|
|
3575
|
+
block(height?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BlockResponse>>;
|
|
3576
|
+
};
|
|
3577
|
+
/**
|
|
3578
|
+
* BlockApi - factory interface
|
|
3579
|
+
* @export
|
|
3580
|
+
*/
|
|
3581
|
+
export declare const BlockApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
3582
|
+
/**
|
|
3583
|
+
* Returns verbose details of the block.
|
|
3584
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
3585
|
+
* @param {*} [options] Override http request option.
|
|
3586
|
+
* @throws {RequiredError}
|
|
3587
|
+
*/
|
|
3588
|
+
block(height?: number, options?: any): AxiosPromise<BlockResponse>;
|
|
3589
|
+
};
|
|
3590
|
+
/**
|
|
3591
|
+
* BlockApi - object-oriented interface
|
|
3592
|
+
* @export
|
|
3593
|
+
* @class BlockApi
|
|
3594
|
+
* @extends {BaseAPI}
|
|
3595
|
+
*/
|
|
3596
|
+
export declare class BlockApi extends BaseAPI {
|
|
3597
|
+
/**
|
|
3598
|
+
* Returns verbose details of the block.
|
|
3599
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
3600
|
+
* @param {*} [options] Override http request option.
|
|
3601
|
+
* @throws {RequiredError}
|
|
3602
|
+
* @memberof BlockApi
|
|
3603
|
+
*/
|
|
3604
|
+
block(height?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<BlockResponse, any>>;
|
|
3605
|
+
}
|
|
3297
3606
|
/**
|
|
3298
3607
|
* BorrowersApi - axios parameter creator
|
|
3299
3608
|
* @export
|
|
@@ -3667,6 +3976,13 @@ export declare const MimirApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
3667
3976
|
* @throws {RequiredError}
|
|
3668
3977
|
*/
|
|
3669
3978
|
mimirNodes: (height?: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3979
|
+
/**
|
|
3980
|
+
* Returns current mimir V2 configuration.
|
|
3981
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
3982
|
+
* @param {*} [options] Override http request option.
|
|
3983
|
+
* @throws {RequiredError}
|
|
3984
|
+
*/
|
|
3985
|
+
mimirV2: (height?: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3670
3986
|
};
|
|
3671
3987
|
/**
|
|
3672
3988
|
* MimirApi - functional programming interface
|
|
@@ -3710,6 +4026,13 @@ export declare const MimirApiFp: (configuration?: Configuration) => {
|
|
|
3710
4026
|
* @throws {RequiredError}
|
|
3711
4027
|
*/
|
|
3712
4028
|
mimirNodes(height?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MimirNodesResponse>>;
|
|
4029
|
+
/**
|
|
4030
|
+
* Returns current mimir V2 configuration.
|
|
4031
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
4032
|
+
* @param {*} [options] Override http request option.
|
|
4033
|
+
* @throws {RequiredError}
|
|
4034
|
+
*/
|
|
4035
|
+
mimirV2(height?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MimirResponse>>;
|
|
3713
4036
|
};
|
|
3714
4037
|
/**
|
|
3715
4038
|
* MimirApi - factory interface
|
|
@@ -3753,6 +4076,13 @@ export declare const MimirApiFactory: (configuration?: Configuration, basePath?:
|
|
|
3753
4076
|
* @throws {RequiredError}
|
|
3754
4077
|
*/
|
|
3755
4078
|
mimirNodes(height?: number, options?: any): AxiosPromise<MimirNodesResponse>;
|
|
4079
|
+
/**
|
|
4080
|
+
* Returns current mimir V2 configuration.
|
|
4081
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
4082
|
+
* @param {*} [options] Override http request option.
|
|
4083
|
+
* @throws {RequiredError}
|
|
4084
|
+
*/
|
|
4085
|
+
mimirV2(height?: number, options?: any): AxiosPromise<MimirResponse>;
|
|
3756
4086
|
};
|
|
3757
4087
|
/**
|
|
3758
4088
|
* MimirApi - object-oriented interface
|
|
@@ -3803,6 +4133,14 @@ export declare class MimirApi extends BaseAPI {
|
|
|
3803
4133
|
* @memberof MimirApi
|
|
3804
4134
|
*/
|
|
3805
4135
|
mimirNodes(height?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<MimirNodesResponse, any>>;
|
|
4136
|
+
/**
|
|
4137
|
+
* Returns current mimir V2 configuration.
|
|
4138
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
4139
|
+
* @param {*} [options] Override http request option.
|
|
4140
|
+
* @throws {RequiredError}
|
|
4141
|
+
* @memberof MimirApi
|
|
4142
|
+
*/
|
|
4143
|
+
mimirV2(height?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<MimirResponse, any>>;
|
|
3806
4144
|
}
|
|
3807
4145
|
/**
|
|
3808
4146
|
* NetworkApi - axios parameter creator
|
|
@@ -4564,14 +4902,13 @@ export declare const QuoteApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
4564
4902
|
* @param {string} [destination] the destination address, required to generate memo
|
|
4565
4903
|
* @param {number} [streamingInterval] the interval in which streaming swaps are swapped
|
|
4566
4904
|
* @param {number} [streamingQuantity] the quantity of swaps within a streaming swap
|
|
4567
|
-
* @param {string} [fromAddress] the from address, required if the from asset is a synth
|
|
4568
4905
|
* @param {number} [toleranceBps] the maximum basis points from the current feeless swap price to set the limit in the generated memo
|
|
4569
4906
|
* @param {number} [affiliateBps] the affiliate fee in basis points
|
|
4570
4907
|
* @param {string} [affiliate] the affiliate (address or thorname)
|
|
4571
4908
|
* @param {*} [options] Override http request option.
|
|
4572
4909
|
* @throws {RequiredError}
|
|
4573
4910
|
*/
|
|
4574
|
-
quoteswap: (height?: number, fromAsset?: string, toAsset?: string, amount?: number, destination?: string, streamingInterval?: number, streamingQuantity?: number,
|
|
4911
|
+
quoteswap: (height?: number, fromAsset?: string, toAsset?: string, amount?: number, destination?: string, streamingInterval?: number, streamingQuantity?: number, toleranceBps?: number, affiliateBps?: number, affiliate?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
4575
4912
|
};
|
|
4576
4913
|
/**
|
|
4577
4914
|
* QuoteApi - functional programming interface
|
|
@@ -4632,14 +4969,13 @@ export declare const QuoteApiFp: (configuration?: Configuration) => {
|
|
|
4632
4969
|
* @param {string} [destination] the destination address, required to generate memo
|
|
4633
4970
|
* @param {number} [streamingInterval] the interval in which streaming swaps are swapped
|
|
4634
4971
|
* @param {number} [streamingQuantity] the quantity of swaps within a streaming swap
|
|
4635
|
-
* @param {string} [fromAddress] the from address, required if the from asset is a synth
|
|
4636
4972
|
* @param {number} [toleranceBps] the maximum basis points from the current feeless swap price to set the limit in the generated memo
|
|
4637
4973
|
* @param {number} [affiliateBps] the affiliate fee in basis points
|
|
4638
4974
|
* @param {string} [affiliate] the affiliate (address or thorname)
|
|
4639
4975
|
* @param {*} [options] Override http request option.
|
|
4640
4976
|
* @throws {RequiredError}
|
|
4641
4977
|
*/
|
|
4642
|
-
quoteswap(height?: number, fromAsset?: string, toAsset?: string, amount?: number, destination?: string, streamingInterval?: number, streamingQuantity?: number,
|
|
4978
|
+
quoteswap(height?: number, fromAsset?: string, toAsset?: string, amount?: number, destination?: string, streamingInterval?: number, streamingQuantity?: number, toleranceBps?: number, affiliateBps?: number, affiliate?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<QuoteSwapResponse>>;
|
|
4643
4979
|
};
|
|
4644
4980
|
/**
|
|
4645
4981
|
* QuoteApi - factory interface
|
|
@@ -4700,14 +5036,13 @@ export declare const QuoteApiFactory: (configuration?: Configuration, basePath?:
|
|
|
4700
5036
|
* @param {string} [destination] the destination address, required to generate memo
|
|
4701
5037
|
* @param {number} [streamingInterval] the interval in which streaming swaps are swapped
|
|
4702
5038
|
* @param {number} [streamingQuantity] the quantity of swaps within a streaming swap
|
|
4703
|
-
* @param {string} [fromAddress] the from address, required if the from asset is a synth
|
|
4704
5039
|
* @param {number} [toleranceBps] the maximum basis points from the current feeless swap price to set the limit in the generated memo
|
|
4705
5040
|
* @param {number} [affiliateBps] the affiliate fee in basis points
|
|
4706
5041
|
* @param {string} [affiliate] the affiliate (address or thorname)
|
|
4707
5042
|
* @param {*} [options] Override http request option.
|
|
4708
5043
|
* @throws {RequiredError}
|
|
4709
5044
|
*/
|
|
4710
|
-
quoteswap(height?: number, fromAsset?: string, toAsset?: string, amount?: number, destination?: string, streamingInterval?: number, streamingQuantity?: number,
|
|
5045
|
+
quoteswap(height?: number, fromAsset?: string, toAsset?: string, amount?: number, destination?: string, streamingInterval?: number, streamingQuantity?: number, toleranceBps?: number, affiliateBps?: number, affiliate?: string, options?: any): AxiosPromise<QuoteSwapResponse>;
|
|
4711
5046
|
};
|
|
4712
5047
|
/**
|
|
4713
5048
|
* QuoteApi - object-oriented interface
|
|
@@ -4774,7 +5109,6 @@ export declare class QuoteApi extends BaseAPI {
|
|
|
4774
5109
|
* @param {string} [destination] the destination address, required to generate memo
|
|
4775
5110
|
* @param {number} [streamingInterval] the interval in which streaming swaps are swapped
|
|
4776
5111
|
* @param {number} [streamingQuantity] the quantity of swaps within a streaming swap
|
|
4777
|
-
* @param {string} [fromAddress] the from address, required if the from asset is a synth
|
|
4778
5112
|
* @param {number} [toleranceBps] the maximum basis points from the current feeless swap price to set the limit in the generated memo
|
|
4779
5113
|
* @param {number} [affiliateBps] the affiliate fee in basis points
|
|
4780
5114
|
* @param {string} [affiliate] the affiliate (address or thorname)
|
|
@@ -4782,7 +5116,7 @@ export declare class QuoteApi extends BaseAPI {
|
|
|
4782
5116
|
* @throws {RequiredError}
|
|
4783
5117
|
* @memberof QuoteApi
|
|
4784
5118
|
*/
|
|
4785
|
-
quoteswap(height?: number, fromAsset?: string, toAsset?: string, amount?: number, destination?: string, streamingInterval?: number, streamingQuantity?: number,
|
|
5119
|
+
quoteswap(height?: number, fromAsset?: string, toAsset?: string, amount?: number, destination?: string, streamingInterval?: number, streamingQuantity?: number, toleranceBps?: number, affiliateBps?: number, affiliate?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<QuoteSwapResponse, any>>;
|
|
4786
5120
|
}
|
|
4787
5121
|
/**
|
|
4788
5122
|
* SaversApi - axios parameter creator
|
|
@@ -5144,7 +5478,7 @@ export declare const ThornamesApiFp: (configuration?: Configuration) => {
|
|
|
5144
5478
|
* @param {*} [options] Override http request option.
|
|
5145
5479
|
* @throws {RequiredError}
|
|
5146
5480
|
*/
|
|
5147
|
-
thorname(name: string, height?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
5481
|
+
thorname(name: string, height?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Thorname>>;
|
|
5148
5482
|
};
|
|
5149
5483
|
/**
|
|
5150
5484
|
* ThornamesApi - factory interface
|
|
@@ -5158,7 +5492,7 @@ export declare const ThornamesApiFactory: (configuration?: Configuration, basePa
|
|
|
5158
5492
|
* @param {*} [options] Override http request option.
|
|
5159
5493
|
* @throws {RequiredError}
|
|
5160
5494
|
*/
|
|
5161
|
-
thorname(name: string, height?: number, options?: any): AxiosPromise<
|
|
5495
|
+
thorname(name: string, height?: number, options?: any): AxiosPromise<Thorname>;
|
|
5162
5496
|
};
|
|
5163
5497
|
/**
|
|
5164
5498
|
* ThornamesApi - object-oriented interface
|
|
@@ -5175,7 +5509,7 @@ export declare class ThornamesApi extends BaseAPI {
|
|
|
5175
5509
|
* @throws {RequiredError}
|
|
5176
5510
|
* @memberof ThornamesApi
|
|
5177
5511
|
*/
|
|
5178
|
-
thorname(name: string, height?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
5512
|
+
thorname(name: string, height?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Thorname, any>>;
|
|
5179
5513
|
}
|
|
5180
5514
|
/**
|
|
5181
5515
|
* TransactionsApi - 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.124.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.124.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.124.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.124.0
|
|
6
6
|
* Contact: devs@thorchain.org
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|