@nirvana-labs/nirvana 1.11.0 → 1.12.0
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/CHANGELOG.md +8 -0
- package/package.json +1 -1
- package/resources/vektor/borrow/borrow.d.mts +4 -0
- package/resources/vektor/borrow/borrow.d.mts.map +1 -1
- package/resources/vektor/borrow/borrow.d.ts +4 -0
- package/resources/vektor/borrow/borrow.d.ts.map +1 -1
- package/resources/vektor/borrow/borrow.js +4 -0
- package/resources/vektor/borrow/borrow.js.map +1 -1
- package/resources/vektor/borrow/borrow.mjs +4 -0
- package/resources/vektor/borrow/borrow.mjs.map +1 -1
- package/resources/vektor/borrow/index.d.mts +1 -0
- package/resources/vektor/borrow/index.d.mts.map +1 -1
- package/resources/vektor/borrow/index.d.ts +1 -0
- package/resources/vektor/borrow/index.d.ts.map +1 -1
- package/resources/vektor/borrow/index.js +3 -1
- package/resources/vektor/borrow/index.js.map +1 -1
- package/resources/vektor/borrow/index.mjs +1 -0
- package/resources/vektor/borrow/index.mjs.map +1 -1
- package/resources/vektor/borrow/repay.d.mts +47 -0
- package/resources/vektor/borrow/repay.d.mts.map +1 -0
- package/resources/vektor/borrow/repay.d.ts +47 -0
- package/resources/vektor/borrow/repay.d.ts.map +1 -0
- package/resources/vektor/borrow/repay.js +25 -0
- package/resources/vektor/borrow/repay.js.map +1 -0
- package/resources/vektor/borrow/repay.mjs +21 -0
- package/resources/vektor/borrow/repay.mjs.map +1 -0
- package/resources/vektor/executions/steps.d.mts +107 -2
- package/resources/vektor/executions/steps.d.mts.map +1 -1
- package/resources/vektor/executions/steps.d.ts +107 -2
- package/resources/vektor/executions/steps.d.ts.map +1 -1
- package/resources/vektor/vektor.d.mts +169 -7
- package/resources/vektor/vektor.d.mts.map +1 -1
- package/resources/vektor/vektor.d.ts +169 -7
- package/resources/vektor/vektor.d.ts.map +1 -1
- package/resources/vektor/vektor.js.map +1 -1
- package/resources/vektor/vektor.mjs.map +1 -1
- package/src/resources/vektor/borrow/borrow.ts +6 -0
- package/src/resources/vektor/borrow/index.ts +1 -0
- package/src/resources/vektor/borrow/repay.ts +57 -0
- package/src/resources/vektor/executions/steps.ts +129 -0
- package/src/resources/vektor/vektor.ts +203 -5
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -65,6 +65,7 @@ export interface StepGetResponse {
|
|
|
65
65
|
definition:
|
|
66
66
|
| StepGetResponse.ExecutionEVMTransactionApprove
|
|
67
67
|
| StepGetResponse.ExecutionEVMTransactionBorrow
|
|
68
|
+
| StepGetResponse.ExecutionEVMTransactionBorrowRepay
|
|
68
69
|
| StepGetResponse.ExecutionEVMTransactionBuy
|
|
69
70
|
| StepGetResponse.ExecutionEVMTransactionLend
|
|
70
71
|
| StepGetResponse.ExecutionEVMTransactionLendSetCollateral
|
|
@@ -83,6 +84,7 @@ export interface StepGetResponse {
|
|
|
83
84
|
type:
|
|
84
85
|
| 'evm_transaction_approve'
|
|
85
86
|
| 'evm_transaction_borrow'
|
|
87
|
+
| 'evm_transaction_borrow_repay'
|
|
86
88
|
| 'evm_transaction_buy'
|
|
87
89
|
| 'evm_transaction_lend'
|
|
88
90
|
| 'evm_transaction_lend_set_collateral'
|
|
@@ -363,6 +365,133 @@ export namespace StepGetResponse {
|
|
|
363
365
|
}
|
|
364
366
|
}
|
|
365
367
|
|
|
368
|
+
/**
|
|
369
|
+
* Repaying a borrowed asset
|
|
370
|
+
*/
|
|
371
|
+
export interface ExecutionEVMTransactionBorrowRepay {
|
|
372
|
+
/**
|
|
373
|
+
* An arbitrary precision decimal represented as a string
|
|
374
|
+
*/
|
|
375
|
+
amount: string | null;
|
|
376
|
+
|
|
377
|
+
/**
|
|
378
|
+
* On-chain asset (aka token)
|
|
379
|
+
*/
|
|
380
|
+
asset: VektorAPI.Asset;
|
|
381
|
+
|
|
382
|
+
block_number: number | null;
|
|
383
|
+
|
|
384
|
+
/**
|
|
385
|
+
* ISO8601 Timestamp
|
|
386
|
+
*/
|
|
387
|
+
broadcasted_at: string | null;
|
|
388
|
+
|
|
389
|
+
confirmation_target: number;
|
|
390
|
+
|
|
391
|
+
/**
|
|
392
|
+
* ISO8601 Timestamp
|
|
393
|
+
*/
|
|
394
|
+
confirmed_at: string | null;
|
|
395
|
+
|
|
396
|
+
/**
|
|
397
|
+
* ISO8601 Timestamp
|
|
398
|
+
*/
|
|
399
|
+
created_at: VektorAPI.Timestamp;
|
|
400
|
+
|
|
401
|
+
/**
|
|
402
|
+
* A hex string starting with 0x
|
|
403
|
+
*/
|
|
404
|
+
data: string | null;
|
|
405
|
+
|
|
406
|
+
/**
|
|
407
|
+
* An arbitrary precision decimal represented as a string
|
|
408
|
+
*/
|
|
409
|
+
effective_gas_price: string | null;
|
|
410
|
+
|
|
411
|
+
/**
|
|
412
|
+
* An error
|
|
413
|
+
*/
|
|
414
|
+
error: ExecutionEVMTransactionBorrowRepay.Error | null;
|
|
415
|
+
|
|
416
|
+
/**
|
|
417
|
+
* ISO8601 Timestamp
|
|
418
|
+
*/
|
|
419
|
+
errored_at: string | null;
|
|
420
|
+
|
|
421
|
+
/**
|
|
422
|
+
* An arbitrary precision decimal represented as a string
|
|
423
|
+
*/
|
|
424
|
+
gas_used: string | null;
|
|
425
|
+
|
|
426
|
+
/**
|
|
427
|
+
* A transaction hash
|
|
428
|
+
*/
|
|
429
|
+
hash: string | null;
|
|
430
|
+
|
|
431
|
+
/**
|
|
432
|
+
* A lend/borrow market ID, represented as a TypeID with `lend_borrow_market`
|
|
433
|
+
* prefix
|
|
434
|
+
*/
|
|
435
|
+
lend_borrow_market_id: VektorAPI.LendBorrowMarketID;
|
|
436
|
+
|
|
437
|
+
/**
|
|
438
|
+
* The payload of an EIP-1559 transaction
|
|
439
|
+
*/
|
|
440
|
+
payload: VektorAPI.ExecutionEVMTransactionEIP1559Payload;
|
|
441
|
+
|
|
442
|
+
/**
|
|
443
|
+
* ISO8601 Timestamp
|
|
444
|
+
*/
|
|
445
|
+
signed_at: string | null;
|
|
446
|
+
|
|
447
|
+
/**
|
|
448
|
+
* The state of an EVM transaction
|
|
449
|
+
*/
|
|
450
|
+
state: VektorAPI.ExecutionEVMTransactionState;
|
|
451
|
+
|
|
452
|
+
/**
|
|
453
|
+
* The state of an EVM transaction
|
|
454
|
+
*/
|
|
455
|
+
target_state: VektorAPI.ExecutionEVMTransactionState;
|
|
456
|
+
|
|
457
|
+
/**
|
|
458
|
+
* An EVM address
|
|
459
|
+
*/
|
|
460
|
+
to: string | null;
|
|
461
|
+
|
|
462
|
+
/**
|
|
463
|
+
* ISO8601 Timestamp
|
|
464
|
+
*/
|
|
465
|
+
updated_at: VektorAPI.Timestamp;
|
|
466
|
+
|
|
467
|
+
/**
|
|
468
|
+
* An arbitrary precision decimal represented as a string
|
|
469
|
+
*/
|
|
470
|
+
value: string | null;
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
export namespace ExecutionEVMTransactionBorrowRepay {
|
|
474
|
+
/**
|
|
475
|
+
* An error
|
|
476
|
+
*/
|
|
477
|
+
export interface Error {
|
|
478
|
+
/**
|
|
479
|
+
* Error message
|
|
480
|
+
*/
|
|
481
|
+
message: string;
|
|
482
|
+
|
|
483
|
+
/**
|
|
484
|
+
* Error parameters
|
|
485
|
+
*/
|
|
486
|
+
params: { [key: string]: unknown };
|
|
487
|
+
|
|
488
|
+
/**
|
|
489
|
+
* Error type
|
|
490
|
+
*/
|
|
491
|
+
type: string;
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
|
|
366
495
|
/**
|
|
367
496
|
* Buying an asset with another asset
|
|
368
497
|
*/
|
|
@@ -592,6 +592,7 @@ export interface Execution {
|
|
|
592
592
|
*/
|
|
593
593
|
request:
|
|
594
594
|
| Execution.BorrowRequestFull
|
|
595
|
+
| Execution.BorrowRepayRequestFull
|
|
595
596
|
| Execution.BuyRequestFull
|
|
596
597
|
| Execution.LendRequestFull
|
|
597
598
|
| Execution.LendSetCollateralRequestFull
|
|
@@ -655,6 +656,74 @@ export namespace Execution {
|
|
|
655
656
|
venues: Array<VektorAPI.Venue>;
|
|
656
657
|
}
|
|
657
658
|
|
|
659
|
+
/**
|
|
660
|
+
* A request to repay a borrowed asset
|
|
661
|
+
*/
|
|
662
|
+
export interface BorrowRepayRequestFull {
|
|
663
|
+
/**
|
|
664
|
+
* An arbitrary precision decimal represented as a string
|
|
665
|
+
*/
|
|
666
|
+
amount: string | null;
|
|
667
|
+
|
|
668
|
+
/**
|
|
669
|
+
* On-chain asset (aka token)
|
|
670
|
+
*/
|
|
671
|
+
asset: BorrowRepayRequestFull.Asset | null;
|
|
672
|
+
|
|
673
|
+
/**
|
|
674
|
+
* Data about a blockchain
|
|
675
|
+
*/
|
|
676
|
+
blockchain: VektorAPI.Blockchain;
|
|
677
|
+
|
|
678
|
+
/**
|
|
679
|
+
* An EVM address
|
|
680
|
+
*/
|
|
681
|
+
from: VektorAPI.Account;
|
|
682
|
+
|
|
683
|
+
/**
|
|
684
|
+
* A lend/borrow market ID, represented as a TypeID with `lend_borrow_market`
|
|
685
|
+
* prefix
|
|
686
|
+
*/
|
|
687
|
+
market_id: VektorAPI.LendBorrowMarketID;
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
export namespace BorrowRepayRequestFull {
|
|
691
|
+
/**
|
|
692
|
+
* On-chain asset (aka token)
|
|
693
|
+
*/
|
|
694
|
+
export interface Asset {
|
|
695
|
+
/**
|
|
696
|
+
* An asset ID, represented as a TypeID with `asset` prefix
|
|
697
|
+
*/
|
|
698
|
+
id: VektorAPI.AssetID;
|
|
699
|
+
|
|
700
|
+
/**
|
|
701
|
+
* An EVM address
|
|
702
|
+
*/
|
|
703
|
+
address: string | null;
|
|
704
|
+
|
|
705
|
+
/**
|
|
706
|
+
* Data about a blockchain
|
|
707
|
+
*/
|
|
708
|
+
blockchain: VektorAPI.Blockchain;
|
|
709
|
+
|
|
710
|
+
/**
|
|
711
|
+
* Asset's decimal places
|
|
712
|
+
*/
|
|
713
|
+
decimals: number;
|
|
714
|
+
|
|
715
|
+
/**
|
|
716
|
+
* Asset's name
|
|
717
|
+
*/
|
|
718
|
+
name: string;
|
|
719
|
+
|
|
720
|
+
/**
|
|
721
|
+
* Asset's symbol
|
|
722
|
+
*/
|
|
723
|
+
symbol: string;
|
|
724
|
+
}
|
|
725
|
+
}
|
|
726
|
+
|
|
658
727
|
/**
|
|
659
728
|
* A request to buy an asset
|
|
660
729
|
*/
|
|
@@ -757,6 +826,11 @@ export namespace Execution {
|
|
|
757
826
|
*/
|
|
758
827
|
amount: string | null;
|
|
759
828
|
|
|
829
|
+
/**
|
|
830
|
+
* On-chain asset (aka token)
|
|
831
|
+
*/
|
|
832
|
+
asset: LendWithdrawRequestFull.Asset | null;
|
|
833
|
+
|
|
760
834
|
/**
|
|
761
835
|
* Data about a blockchain
|
|
762
836
|
*/
|
|
@@ -772,11 +846,6 @@ export namespace Execution {
|
|
|
772
846
|
* prefix
|
|
773
847
|
*/
|
|
774
848
|
market_id: VektorAPI.LendBorrowMarketID;
|
|
775
|
-
|
|
776
|
-
/**
|
|
777
|
-
* On-chain asset (aka token)
|
|
778
|
-
*/
|
|
779
|
-
asset?: LendWithdrawRequestFull.Asset | null;
|
|
780
849
|
}
|
|
781
850
|
|
|
782
851
|
export namespace LendWithdrawRequestFull {
|
|
@@ -946,6 +1015,7 @@ export namespace Execution {
|
|
|
946
1015
|
definition:
|
|
947
1016
|
| Step.ExecutionEVMTransactionApprove
|
|
948
1017
|
| Step.ExecutionEVMTransactionBorrow
|
|
1018
|
+
| Step.ExecutionEVMTransactionBorrowRepay
|
|
949
1019
|
| Step.ExecutionEVMTransactionBuy
|
|
950
1020
|
| Step.ExecutionEVMTransactionLend
|
|
951
1021
|
| Step.ExecutionEVMTransactionLendSetCollateral
|
|
@@ -964,6 +1034,7 @@ export namespace Execution {
|
|
|
964
1034
|
type:
|
|
965
1035
|
| 'evm_transaction_approve'
|
|
966
1036
|
| 'evm_transaction_borrow'
|
|
1037
|
+
| 'evm_transaction_borrow_repay'
|
|
967
1038
|
| 'evm_transaction_buy'
|
|
968
1039
|
| 'evm_transaction_lend'
|
|
969
1040
|
| 'evm_transaction_lend_set_collateral'
|
|
@@ -1244,6 +1315,133 @@ export namespace Execution {
|
|
|
1244
1315
|
}
|
|
1245
1316
|
}
|
|
1246
1317
|
|
|
1318
|
+
/**
|
|
1319
|
+
* Repaying a borrowed asset
|
|
1320
|
+
*/
|
|
1321
|
+
export interface ExecutionEVMTransactionBorrowRepay {
|
|
1322
|
+
/**
|
|
1323
|
+
* An arbitrary precision decimal represented as a string
|
|
1324
|
+
*/
|
|
1325
|
+
amount: string | null;
|
|
1326
|
+
|
|
1327
|
+
/**
|
|
1328
|
+
* On-chain asset (aka token)
|
|
1329
|
+
*/
|
|
1330
|
+
asset: VektorAPI.Asset;
|
|
1331
|
+
|
|
1332
|
+
block_number: number | null;
|
|
1333
|
+
|
|
1334
|
+
/**
|
|
1335
|
+
* ISO8601 Timestamp
|
|
1336
|
+
*/
|
|
1337
|
+
broadcasted_at: string | null;
|
|
1338
|
+
|
|
1339
|
+
confirmation_target: number;
|
|
1340
|
+
|
|
1341
|
+
/**
|
|
1342
|
+
* ISO8601 Timestamp
|
|
1343
|
+
*/
|
|
1344
|
+
confirmed_at: string | null;
|
|
1345
|
+
|
|
1346
|
+
/**
|
|
1347
|
+
* ISO8601 Timestamp
|
|
1348
|
+
*/
|
|
1349
|
+
created_at: VektorAPI.Timestamp;
|
|
1350
|
+
|
|
1351
|
+
/**
|
|
1352
|
+
* A hex string starting with 0x
|
|
1353
|
+
*/
|
|
1354
|
+
data: string | null;
|
|
1355
|
+
|
|
1356
|
+
/**
|
|
1357
|
+
* An arbitrary precision decimal represented as a string
|
|
1358
|
+
*/
|
|
1359
|
+
effective_gas_price: string | null;
|
|
1360
|
+
|
|
1361
|
+
/**
|
|
1362
|
+
* An error
|
|
1363
|
+
*/
|
|
1364
|
+
error: ExecutionEVMTransactionBorrowRepay.Error | null;
|
|
1365
|
+
|
|
1366
|
+
/**
|
|
1367
|
+
* ISO8601 Timestamp
|
|
1368
|
+
*/
|
|
1369
|
+
errored_at: string | null;
|
|
1370
|
+
|
|
1371
|
+
/**
|
|
1372
|
+
* An arbitrary precision decimal represented as a string
|
|
1373
|
+
*/
|
|
1374
|
+
gas_used: string | null;
|
|
1375
|
+
|
|
1376
|
+
/**
|
|
1377
|
+
* A transaction hash
|
|
1378
|
+
*/
|
|
1379
|
+
hash: string | null;
|
|
1380
|
+
|
|
1381
|
+
/**
|
|
1382
|
+
* A lend/borrow market ID, represented as a TypeID with `lend_borrow_market`
|
|
1383
|
+
* prefix
|
|
1384
|
+
*/
|
|
1385
|
+
lend_borrow_market_id: VektorAPI.LendBorrowMarketID;
|
|
1386
|
+
|
|
1387
|
+
/**
|
|
1388
|
+
* The payload of an EIP-1559 transaction
|
|
1389
|
+
*/
|
|
1390
|
+
payload: VektorAPI.ExecutionEVMTransactionEIP1559Payload;
|
|
1391
|
+
|
|
1392
|
+
/**
|
|
1393
|
+
* ISO8601 Timestamp
|
|
1394
|
+
*/
|
|
1395
|
+
signed_at: string | null;
|
|
1396
|
+
|
|
1397
|
+
/**
|
|
1398
|
+
* The state of an EVM transaction
|
|
1399
|
+
*/
|
|
1400
|
+
state: VektorAPI.ExecutionEVMTransactionState;
|
|
1401
|
+
|
|
1402
|
+
/**
|
|
1403
|
+
* The state of an EVM transaction
|
|
1404
|
+
*/
|
|
1405
|
+
target_state: VektorAPI.ExecutionEVMTransactionState;
|
|
1406
|
+
|
|
1407
|
+
/**
|
|
1408
|
+
* An EVM address
|
|
1409
|
+
*/
|
|
1410
|
+
to: string | null;
|
|
1411
|
+
|
|
1412
|
+
/**
|
|
1413
|
+
* ISO8601 Timestamp
|
|
1414
|
+
*/
|
|
1415
|
+
updated_at: VektorAPI.Timestamp;
|
|
1416
|
+
|
|
1417
|
+
/**
|
|
1418
|
+
* An arbitrary precision decimal represented as a string
|
|
1419
|
+
*/
|
|
1420
|
+
value: string | null;
|
|
1421
|
+
}
|
|
1422
|
+
|
|
1423
|
+
export namespace ExecutionEVMTransactionBorrowRepay {
|
|
1424
|
+
/**
|
|
1425
|
+
* An error
|
|
1426
|
+
*/
|
|
1427
|
+
export interface Error {
|
|
1428
|
+
/**
|
|
1429
|
+
* Error message
|
|
1430
|
+
*/
|
|
1431
|
+
message: string;
|
|
1432
|
+
|
|
1433
|
+
/**
|
|
1434
|
+
* Error parameters
|
|
1435
|
+
*/
|
|
1436
|
+
params: { [key: string]: unknown };
|
|
1437
|
+
|
|
1438
|
+
/**
|
|
1439
|
+
* Error type
|
|
1440
|
+
*/
|
|
1441
|
+
type: string;
|
|
1442
|
+
}
|
|
1443
|
+
}
|
|
1444
|
+
|
|
1247
1445
|
/**
|
|
1248
1446
|
* Buying an asset with another asset
|
|
1249
1447
|
*/
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '1.
|
|
1
|
+
export const VERSION = '1.12.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "1.
|
|
1
|
+
export declare const VERSION = "1.12.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "1.
|
|
1
|
+
export declare const VERSION = "1.12.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '1.
|
|
1
|
+
export const VERSION = '1.12.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|