@xchainjs/xchain-thornode 0.3.6 → 0.3.8
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 +372 -51
- 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 +95 -2
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +98 -1
- 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.122.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
|
|
@@ -978,29 +1251,41 @@ export interface NetworkResponse {
|
|
|
978
1251
|
*/
|
|
979
1252
|
'outbound_fee_multiplier'?: string;
|
|
980
1253
|
/**
|
|
981
|
-
* the outbound transaction fee in rune, converted from the NativeOutboundFeeUSD mimir
|
|
1254
|
+
* the outbound transaction fee in rune, converted from the NativeOutboundFeeUSD mimir (after USD fees are enabled)
|
|
982
1255
|
* @type {string}
|
|
983
1256
|
* @memberof NetworkResponse
|
|
984
1257
|
*/
|
|
985
1258
|
'native_outbound_fee_rune': string;
|
|
986
1259
|
/**
|
|
987
|
-
* the native transaction fee in rune, converted from the NativeTransactionFeeUSD mimir
|
|
1260
|
+
* the native transaction fee in rune, converted from the NativeTransactionFeeUSD mimir (after USD fees are enabled)
|
|
988
1261
|
* @type {string}
|
|
989
1262
|
* @memberof NetworkResponse
|
|
990
1263
|
*/
|
|
991
1264
|
'native_tx_fee_rune': string;
|
|
992
1265
|
/**
|
|
993
|
-
* the thorname register fee in rune, converted from the TNSRegisterFeeUSD mimir
|
|
1266
|
+
* the thorname register fee in rune, converted from the TNSRegisterFeeUSD mimir (after USD fees are enabled)
|
|
994
1267
|
* @type {string}
|
|
995
1268
|
* @memberof NetworkResponse
|
|
996
1269
|
*/
|
|
997
1270
|
'tns_register_fee_rune': string;
|
|
998
1271
|
/**
|
|
999
|
-
* the thorname fee per block in rune, converted from the TNSFeePerBlockUSD mimir
|
|
1272
|
+
* the thorname fee per block in rune, converted from the TNSFeePerBlockUSD mimir (after USD fees are enabled)
|
|
1000
1273
|
* @type {string}
|
|
1001
1274
|
* @memberof NetworkResponse
|
|
1002
1275
|
*/
|
|
1003
1276
|
'tns_fee_per_block_rune': string;
|
|
1277
|
+
/**
|
|
1278
|
+
* the rune price in tor
|
|
1279
|
+
* @type {string}
|
|
1280
|
+
* @memberof NetworkResponse
|
|
1281
|
+
*/
|
|
1282
|
+
'rune_price_in_tor': string;
|
|
1283
|
+
/**
|
|
1284
|
+
* the tor price in rune
|
|
1285
|
+
* @type {string}
|
|
1286
|
+
* @memberof NetworkResponse
|
|
1287
|
+
*/
|
|
1288
|
+
'tor_price_in_rune': string;
|
|
1004
1289
|
}
|
|
1005
1290
|
/**
|
|
1006
1291
|
*
|
|
@@ -1286,19 +1571,7 @@ export interface ObservedTx {
|
|
|
1286
1571
|
* @type {string}
|
|
1287
1572
|
* @memberof ObservedTx
|
|
1288
1573
|
*/
|
|
1289
|
-
'
|
|
1290
|
-
/**
|
|
1291
|
-
*
|
|
1292
|
-
* @type {Array<string>}
|
|
1293
|
-
* @memberof ObservedTx
|
|
1294
|
-
*/
|
|
1295
|
-
'out_hashes'?: Array<string>;
|
|
1296
|
-
/**
|
|
1297
|
-
* same as external_observed_height, to be deprecated in favour of external_observed_height
|
|
1298
|
-
* @type {number}
|
|
1299
|
-
* @memberof ObservedTx
|
|
1300
|
-
*/
|
|
1301
|
-
'block_height'?: number;
|
|
1574
|
+
'observed_pub_key'?: string;
|
|
1302
1575
|
/**
|
|
1303
1576
|
* the block height on the external source chain when the transaction was observed, not provided if chain is THOR
|
|
1304
1577
|
* @type {number}
|
|
@@ -1306,53 +1579,53 @@ export interface ObservedTx {
|
|
|
1306
1579
|
*/
|
|
1307
1580
|
'external_observed_height'?: number;
|
|
1308
1581
|
/**
|
|
1309
|
-
*
|
|
1310
|
-
* @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}
|
|
1311
1584
|
* @memberof ObservedTx
|
|
1312
1585
|
*/
|
|
1313
|
-
'
|
|
1586
|
+
'external_confirmation_delay_height'?: number;
|
|
1314
1587
|
/**
|
|
1315
|
-
*
|
|
1588
|
+
* the outbound aggregator to use, will also match a suffix
|
|
1316
1589
|
* @type {string}
|
|
1317
1590
|
* @memberof ObservedTx
|
|
1318
1591
|
*/
|
|
1319
|
-
'
|
|
1592
|
+
'aggregator'?: string;
|
|
1320
1593
|
/**
|
|
1321
|
-
*
|
|
1322
|
-
* @type {
|
|
1594
|
+
* the aggregator target asset provided to transferOutAndCall
|
|
1595
|
+
* @type {string}
|
|
1323
1596
|
* @memberof ObservedTx
|
|
1324
1597
|
*/
|
|
1325
|
-
'
|
|
1598
|
+
'aggregator_target'?: string;
|
|
1326
1599
|
/**
|
|
1327
|
-
*
|
|
1328
|
-
* @type {
|
|
1600
|
+
* the aggregator target asset limit provided to transferOutAndCall
|
|
1601
|
+
* @type {string}
|
|
1329
1602
|
* @memberof ObservedTx
|
|
1330
1603
|
*/
|
|
1331
|
-
'
|
|
1604
|
+
'aggregator_target_limit'?: string;
|
|
1332
1605
|
/**
|
|
1333
|
-
*
|
|
1334
|
-
* @type {
|
|
1606
|
+
*
|
|
1607
|
+
* @type {Array<string>}
|
|
1335
1608
|
* @memberof ObservedTx
|
|
1336
1609
|
*/
|
|
1337
|
-
'
|
|
1610
|
+
'signers'?: Array<string>;
|
|
1338
1611
|
/**
|
|
1339
|
-
*
|
|
1340
|
-
* @type {
|
|
1612
|
+
*
|
|
1613
|
+
* @type {number}
|
|
1341
1614
|
* @memberof ObservedTx
|
|
1342
1615
|
*/
|
|
1343
|
-
'
|
|
1616
|
+
'keysign_ms'?: number;
|
|
1344
1617
|
/**
|
|
1345
|
-
*
|
|
1346
|
-
* @type {string}
|
|
1618
|
+
*
|
|
1619
|
+
* @type {Array<string>}
|
|
1347
1620
|
* @memberof ObservedTx
|
|
1348
1621
|
*/
|
|
1349
|
-
'
|
|
1622
|
+
'out_hashes'?: Array<string>;
|
|
1350
1623
|
/**
|
|
1351
|
-
*
|
|
1624
|
+
*
|
|
1352
1625
|
* @type {string}
|
|
1353
1626
|
* @memberof ObservedTx
|
|
1354
1627
|
*/
|
|
1355
|
-
'
|
|
1628
|
+
'status'?: ObservedTxStatusEnum;
|
|
1356
1629
|
}
|
|
1357
1630
|
export declare const ObservedTxStatusEnum: {
|
|
1358
1631
|
readonly Done: "done";
|
|
@@ -2429,13 +2702,6 @@ export interface ThornameAlias {
|
|
|
2429
2702
|
*/
|
|
2430
2703
|
'address'?: string;
|
|
2431
2704
|
}
|
|
2432
|
-
/**
|
|
2433
|
-
*
|
|
2434
|
-
* @export
|
|
2435
|
-
* @interface ThornameResponse
|
|
2436
|
-
*/
|
|
2437
|
-
export interface ThornameResponse extends Array<Thorname> {
|
|
2438
|
-
}
|
|
2439
2705
|
/**
|
|
2440
2706
|
*
|
|
2441
2707
|
* @export
|
|
@@ -3101,7 +3367,7 @@ export interface Vault {
|
|
|
3101
3367
|
* @type {string}
|
|
3102
3368
|
* @memberof Vault
|
|
3103
3369
|
*/
|
|
3104
|
-
'status'
|
|
3370
|
+
'status': string;
|
|
3105
3371
|
/**
|
|
3106
3372
|
*
|
|
3107
3373
|
* @type {number}
|
|
@@ -3282,6 +3548,61 @@ export interface VersionResponse {
|
|
|
3282
3548
|
*/
|
|
3283
3549
|
'querier': string;
|
|
3284
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
|
+
}
|
|
3285
3606
|
/**
|
|
3286
3607
|
* BorrowersApi - axios parameter creator
|
|
3287
3608
|
* @export
|
|
@@ -5132,7 +5453,7 @@ export declare const ThornamesApiFp: (configuration?: Configuration) => {
|
|
|
5132
5453
|
* @param {*} [options] Override http request option.
|
|
5133
5454
|
* @throws {RequiredError}
|
|
5134
5455
|
*/
|
|
5135
|
-
thorname(name: string, height?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
5456
|
+
thorname(name: string, height?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Thorname>>;
|
|
5136
5457
|
};
|
|
5137
5458
|
/**
|
|
5138
5459
|
* ThornamesApi - factory interface
|
|
@@ -5146,7 +5467,7 @@ export declare const ThornamesApiFactory: (configuration?: Configuration, basePa
|
|
|
5146
5467
|
* @param {*} [options] Override http request option.
|
|
5147
5468
|
* @throws {RequiredError}
|
|
5148
5469
|
*/
|
|
5149
|
-
thorname(name: string, height?: number, options?: any): AxiosPromise<
|
|
5470
|
+
thorname(name: string, height?: number, options?: any): AxiosPromise<Thorname>;
|
|
5150
5471
|
};
|
|
5151
5472
|
/**
|
|
5152
5473
|
* ThornamesApi - object-oriented interface
|
|
@@ -5163,7 +5484,7 @@ export declare class ThornamesApi extends BaseAPI {
|
|
|
5163
5484
|
* @throws {RequiredError}
|
|
5164
5485
|
* @memberof ThornamesApi
|
|
5165
5486
|
*/
|
|
5166
|
-
thorname(name: string, height?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
5487
|
+
thorname(name: string, height?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Thorname, any>>;
|
|
5167
5488
|
}
|
|
5168
5489
|
/**
|
|
5169
5490
|
* 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.122.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.122.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.122.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.122.0
|
|
6
6
|
* Contact: devs@thorchain.org
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/lib/index.esm.js
CHANGED
|
@@ -132,6 +132,99 @@ const VaultTypeEnum = {
|
|
|
132
132
|
AsgardVault: 'AsgardVault',
|
|
133
133
|
YggdrasilVault: 'YggdrasilVault'
|
|
134
134
|
};
|
|
135
|
+
/**
|
|
136
|
+
* BlockApi - axios parameter creator
|
|
137
|
+
* @export
|
|
138
|
+
*/
|
|
139
|
+
const BlockApiAxiosParamCreator = function (configuration) {
|
|
140
|
+
return {
|
|
141
|
+
/**
|
|
142
|
+
* Returns verbose details of the block.
|
|
143
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
144
|
+
* @param {*} [options] Override http request option.
|
|
145
|
+
* @throws {RequiredError}
|
|
146
|
+
*/
|
|
147
|
+
block: (height, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
148
|
+
const localVarPath = `/thorchain/block`;
|
|
149
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
150
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
151
|
+
let baseOptions;
|
|
152
|
+
if (configuration) {
|
|
153
|
+
baseOptions = configuration.baseOptions;
|
|
154
|
+
}
|
|
155
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
156
|
+
const localVarHeaderParameter = {};
|
|
157
|
+
const localVarQueryParameter = {};
|
|
158
|
+
if (height !== undefined) {
|
|
159
|
+
localVarQueryParameter['height'] = height;
|
|
160
|
+
}
|
|
161
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
162
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
163
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
164
|
+
return {
|
|
165
|
+
url: toPathString(localVarUrlObj),
|
|
166
|
+
options: localVarRequestOptions,
|
|
167
|
+
};
|
|
168
|
+
}),
|
|
169
|
+
};
|
|
170
|
+
};
|
|
171
|
+
/**
|
|
172
|
+
* BlockApi - functional programming interface
|
|
173
|
+
* @export
|
|
174
|
+
*/
|
|
175
|
+
const BlockApiFp = function (configuration) {
|
|
176
|
+
const localVarAxiosParamCreator = BlockApiAxiosParamCreator(configuration);
|
|
177
|
+
return {
|
|
178
|
+
/**
|
|
179
|
+
* Returns verbose details of the block.
|
|
180
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
181
|
+
* @param {*} [options] Override http request option.
|
|
182
|
+
* @throws {RequiredError}
|
|
183
|
+
*/
|
|
184
|
+
block(height, options) {
|
|
185
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
186
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.block(height, options);
|
|
187
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
188
|
+
});
|
|
189
|
+
},
|
|
190
|
+
};
|
|
191
|
+
};
|
|
192
|
+
/**
|
|
193
|
+
* BlockApi - factory interface
|
|
194
|
+
* @export
|
|
195
|
+
*/
|
|
196
|
+
const BlockApiFactory = function (configuration, basePath, axios) {
|
|
197
|
+
const localVarFp = BlockApiFp(configuration);
|
|
198
|
+
return {
|
|
199
|
+
/**
|
|
200
|
+
* Returns verbose details of the block.
|
|
201
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
202
|
+
* @param {*} [options] Override http request option.
|
|
203
|
+
* @throws {RequiredError}
|
|
204
|
+
*/
|
|
205
|
+
block(height, options) {
|
|
206
|
+
return localVarFp.block(height, options).then((request) => request(axios, basePath));
|
|
207
|
+
},
|
|
208
|
+
};
|
|
209
|
+
};
|
|
210
|
+
/**
|
|
211
|
+
* BlockApi - object-oriented interface
|
|
212
|
+
* @export
|
|
213
|
+
* @class BlockApi
|
|
214
|
+
* @extends {BaseAPI}
|
|
215
|
+
*/
|
|
216
|
+
class BlockApi extends BaseAPI {
|
|
217
|
+
/**
|
|
218
|
+
* Returns verbose details of the block.
|
|
219
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
220
|
+
* @param {*} [options] Override http request option.
|
|
221
|
+
* @throws {RequiredError}
|
|
222
|
+
* @memberof BlockApi
|
|
223
|
+
*/
|
|
224
|
+
block(height, options) {
|
|
225
|
+
return BlockApiFp(this.configuration).block(height, options).then((request) => request(this.axios, this.basePath));
|
|
226
|
+
}
|
|
227
|
+
}
|
|
135
228
|
/**
|
|
136
229
|
* BorrowersApi - axios parameter creator
|
|
137
230
|
* @export
|
|
@@ -4274,7 +4367,7 @@ class VaultsApi extends BaseAPI {
|
|
|
4274
4367
|
* Thornode API
|
|
4275
4368
|
* Thornode REST API.
|
|
4276
4369
|
*
|
|
4277
|
-
* The version of the OpenAPI document: 1.
|
|
4370
|
+
* The version of the OpenAPI document: 1.122.0
|
|
4278
4371
|
* Contact: devs@thorchain.org
|
|
4279
4372
|
*
|
|
4280
4373
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4309,5 +4402,5 @@ class Configuration {
|
|
|
4309
4402
|
|
|
4310
4403
|
const THORNODE_API_9R_URL = 'https://thornode.ninerealms.com/';
|
|
4311
4404
|
|
|
4312
|
-
export { BorrowersApi, BorrowersApiAxiosParamCreator, BorrowersApiFactory, BorrowersApiFp, Configuration, HealthApi, HealthApiAxiosParamCreator, HealthApiFactory, HealthApiFp, InvariantsApi, InvariantsApiAxiosParamCreator, InvariantsApiFactory, InvariantsApiFp, LiquidityProvidersApi, LiquidityProvidersApiAxiosParamCreator, LiquidityProvidersApiFactory, LiquidityProvidersApiFp, MimirApi, MimirApiAxiosParamCreator, MimirApiFactory, MimirApiFp, NetworkApi, NetworkApiAxiosParamCreator, NetworkApiFactory, NetworkApiFp, NodeStatusEnum, NodesApi, NodesApiAxiosParamCreator, NodesApiFactory, NodesApiFp, ObservedTxStatusEnum, POLApi, POLApiAxiosParamCreator, POLApiFactory, POLApiFp, PoolsApi, PoolsApiAxiosParamCreator, PoolsApiFactory, PoolsApiFp, QueueApi, QueueApiAxiosParamCreator, QueueApiFactory, QueueApiFp, QuoteApi, QuoteApiAxiosParamCreator, QuoteApiFactory, QuoteApiFp, SaversApi, SaversApiAxiosParamCreator, SaversApiFactory, SaversApiFp, StreamingSwapApi, StreamingSwapApiAxiosParamCreator, StreamingSwapApiFactory, StreamingSwapApiFp, THORNODE_API_9R_URL, TSSApi, TSSApiAxiosParamCreator, TSSApiFactory, TSSApiFp, ThornamesApi, ThornamesApiAxiosParamCreator, ThornamesApiFactory, ThornamesApiFp, TransactionsApi, TransactionsApiAxiosParamCreator, TransactionsApiFactory, TransactionsApiFp, VaultTypeEnum, VaultsApi, VaultsApiAxiosParamCreator, VaultsApiFactory, VaultsApiFp };
|
|
4405
|
+
export { BlockApi, BlockApiAxiosParamCreator, BlockApiFactory, BlockApiFp, BorrowersApi, BorrowersApiAxiosParamCreator, BorrowersApiFactory, BorrowersApiFp, Configuration, HealthApi, HealthApiAxiosParamCreator, HealthApiFactory, HealthApiFp, InvariantsApi, InvariantsApiAxiosParamCreator, InvariantsApiFactory, InvariantsApiFp, LiquidityProvidersApi, LiquidityProvidersApiAxiosParamCreator, LiquidityProvidersApiFactory, LiquidityProvidersApiFp, MimirApi, MimirApiAxiosParamCreator, MimirApiFactory, MimirApiFp, NetworkApi, NetworkApiAxiosParamCreator, NetworkApiFactory, NetworkApiFp, NodeStatusEnum, NodesApi, NodesApiAxiosParamCreator, NodesApiFactory, NodesApiFp, ObservedTxStatusEnum, POLApi, POLApiAxiosParamCreator, POLApiFactory, POLApiFp, PoolsApi, PoolsApiAxiosParamCreator, PoolsApiFactory, PoolsApiFp, QueueApi, QueueApiAxiosParamCreator, QueueApiFactory, QueueApiFp, QuoteApi, QuoteApiAxiosParamCreator, QuoteApiFactory, QuoteApiFp, SaversApi, SaversApiAxiosParamCreator, SaversApiFactory, SaversApiFp, StreamingSwapApi, StreamingSwapApiAxiosParamCreator, StreamingSwapApiFactory, StreamingSwapApiFp, THORNODE_API_9R_URL, TSSApi, TSSApiAxiosParamCreator, TSSApiFactory, TSSApiFp, ThornamesApi, ThornamesApiAxiosParamCreator, ThornamesApiFactory, ThornamesApiFp, TransactionsApi, TransactionsApiAxiosParamCreator, TransactionsApiFactory, TransactionsApiFp, VaultTypeEnum, VaultsApi, VaultsApiAxiosParamCreator, VaultsApiFactory, VaultsApiFp };
|
|
4313
4406
|
//# sourceMappingURL=index.esm.js.map
|