@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.
Files changed (46) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/package.json +1 -1
  3. package/resources/vektor/borrow/borrow.d.mts +4 -0
  4. package/resources/vektor/borrow/borrow.d.mts.map +1 -1
  5. package/resources/vektor/borrow/borrow.d.ts +4 -0
  6. package/resources/vektor/borrow/borrow.d.ts.map +1 -1
  7. package/resources/vektor/borrow/borrow.js +4 -0
  8. package/resources/vektor/borrow/borrow.js.map +1 -1
  9. package/resources/vektor/borrow/borrow.mjs +4 -0
  10. package/resources/vektor/borrow/borrow.mjs.map +1 -1
  11. package/resources/vektor/borrow/index.d.mts +1 -0
  12. package/resources/vektor/borrow/index.d.mts.map +1 -1
  13. package/resources/vektor/borrow/index.d.ts +1 -0
  14. package/resources/vektor/borrow/index.d.ts.map +1 -1
  15. package/resources/vektor/borrow/index.js +3 -1
  16. package/resources/vektor/borrow/index.js.map +1 -1
  17. package/resources/vektor/borrow/index.mjs +1 -0
  18. package/resources/vektor/borrow/index.mjs.map +1 -1
  19. package/resources/vektor/borrow/repay.d.mts +47 -0
  20. package/resources/vektor/borrow/repay.d.mts.map +1 -0
  21. package/resources/vektor/borrow/repay.d.ts +47 -0
  22. package/resources/vektor/borrow/repay.d.ts.map +1 -0
  23. package/resources/vektor/borrow/repay.js +25 -0
  24. package/resources/vektor/borrow/repay.js.map +1 -0
  25. package/resources/vektor/borrow/repay.mjs +21 -0
  26. package/resources/vektor/borrow/repay.mjs.map +1 -0
  27. package/resources/vektor/executions/steps.d.mts +107 -2
  28. package/resources/vektor/executions/steps.d.mts.map +1 -1
  29. package/resources/vektor/executions/steps.d.ts +107 -2
  30. package/resources/vektor/executions/steps.d.ts.map +1 -1
  31. package/resources/vektor/vektor.d.mts +169 -7
  32. package/resources/vektor/vektor.d.mts.map +1 -1
  33. package/resources/vektor/vektor.d.ts +169 -7
  34. package/resources/vektor/vektor.d.ts.map +1 -1
  35. package/resources/vektor/vektor.js.map +1 -1
  36. package/resources/vektor/vektor.mjs.map +1 -1
  37. package/src/resources/vektor/borrow/borrow.ts +6 -0
  38. package/src/resources/vektor/borrow/index.ts +1 -0
  39. package/src/resources/vektor/borrow/repay.ts +57 -0
  40. package/src/resources/vektor/executions/steps.ts +129 -0
  41. package/src/resources/vektor/vektor.ts +203 -5
  42. package/src/version.ts +1 -1
  43. package/version.d.mts +1 -1
  44. package/version.d.ts +1 -1
  45. package/version.js +1 -1
  46. 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.11.0'; // x-release-please-version
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.11.0";
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.11.0";
1
+ export declare const VERSION = "1.12.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '1.11.0'; // x-release-please-version
4
+ exports.VERSION = '1.12.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '1.11.0'; // x-release-please-version
1
+ export const VERSION = '1.12.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map