@nirvana-labs/nirvana 1.10.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 +17 -0
- package/package.json +1 -1
- package/resources/vektor/borrow/borrow.d.mts +8 -0
- package/resources/vektor/borrow/borrow.d.mts.map +1 -1
- package/resources/vektor/borrow/borrow.d.ts +8 -0
- package/resources/vektor/borrow/borrow.d.ts.map +1 -1
- package/resources/vektor/borrow/borrow.js +8 -0
- package/resources/vektor/borrow/borrow.js.map +1 -1
- package/resources/vektor/borrow/borrow.mjs +8 -0
- package/resources/vektor/borrow/borrow.mjs.map +1 -1
- package/resources/vektor/borrow/borrow_.d.mts +47 -0
- package/resources/vektor/borrow/borrow_.d.mts.map +1 -0
- package/resources/vektor/borrow/borrow_.d.ts +47 -0
- package/resources/vektor/borrow/borrow_.d.ts.map +1 -0
- package/resources/vektor/borrow/borrow_.js +26 -0
- package/resources/vektor/borrow/borrow_.js.map +1 -0
- package/resources/vektor/borrow/borrow_.mjs +22 -0
- package/resources/vektor/borrow/borrow_.mjs.map +1 -0
- package/resources/vektor/borrow/index.d.mts +2 -0
- package/resources/vektor/borrow/index.d.mts.map +1 -1
- package/resources/vektor/borrow/index.d.ts +2 -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 +220 -2
- package/resources/vektor/executions/steps.d.mts.map +1 -1
- package/resources/vektor/executions/steps.d.ts +220 -2
- package/resources/vektor/executions/steps.d.ts.map +1 -1
- package/resources/vektor/vektor.d.mts +307 -7
- package/resources/vektor/vektor.d.mts.map +1 -1
- package/resources/vektor/vektor.d.ts +307 -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 +12 -0
- package/src/resources/vektor/borrow/borrow_.ts +57 -0
- package/src/resources/vektor/borrow/index.ts +2 -0
- package/src/resources/vektor/borrow/repay.ts +57 -0
- package/src/resources/vektor/executions/steps.ts +268 -0
- package/src/resources/vektor/vektor.ts +373 -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
|
@@ -591,6 +591,8 @@ export interface Execution {
|
|
|
591
591
|
* An execution request
|
|
592
592
|
*/
|
|
593
593
|
request:
|
|
594
|
+
| Execution.BorrowRequestFull
|
|
595
|
+
| Execution.BorrowRepayRequestFull
|
|
594
596
|
| Execution.BuyRequestFull
|
|
595
597
|
| Execution.LendRequestFull
|
|
596
598
|
| Execution.LendSetCollateralRequestFull
|
|
@@ -624,6 +626,104 @@ export interface Execution {
|
|
|
624
626
|
}
|
|
625
627
|
|
|
626
628
|
export namespace Execution {
|
|
629
|
+
/**
|
|
630
|
+
* A request to borrow an asset
|
|
631
|
+
*/
|
|
632
|
+
export interface BorrowRequestFull {
|
|
633
|
+
/**
|
|
634
|
+
* An arbitrary precision decimal represented as a string
|
|
635
|
+
*/
|
|
636
|
+
amount: VektorAPI.Decimal;
|
|
637
|
+
|
|
638
|
+
/**
|
|
639
|
+
* On-chain asset (aka token)
|
|
640
|
+
*/
|
|
641
|
+
asset: VektorAPI.Asset;
|
|
642
|
+
|
|
643
|
+
/**
|
|
644
|
+
* Data about a blockchain
|
|
645
|
+
*/
|
|
646
|
+
blockchain: VektorAPI.Blockchain;
|
|
647
|
+
|
|
648
|
+
/**
|
|
649
|
+
* An EVM address
|
|
650
|
+
*/
|
|
651
|
+
from: VektorAPI.Account;
|
|
652
|
+
|
|
653
|
+
/**
|
|
654
|
+
* A list of venues
|
|
655
|
+
*/
|
|
656
|
+
venues: Array<VektorAPI.Venue>;
|
|
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
|
+
|
|
627
727
|
/**
|
|
628
728
|
* A request to buy an asset
|
|
629
729
|
*/
|
|
@@ -726,6 +826,11 @@ export namespace Execution {
|
|
|
726
826
|
*/
|
|
727
827
|
amount: string | null;
|
|
728
828
|
|
|
829
|
+
/**
|
|
830
|
+
* On-chain asset (aka token)
|
|
831
|
+
*/
|
|
832
|
+
asset: LendWithdrawRequestFull.Asset | null;
|
|
833
|
+
|
|
729
834
|
/**
|
|
730
835
|
* Data about a blockchain
|
|
731
836
|
*/
|
|
@@ -741,11 +846,6 @@ export namespace Execution {
|
|
|
741
846
|
* prefix
|
|
742
847
|
*/
|
|
743
848
|
market_id: VektorAPI.LendBorrowMarketID;
|
|
744
|
-
|
|
745
|
-
/**
|
|
746
|
-
* On-chain asset (aka token)
|
|
747
|
-
*/
|
|
748
|
-
asset?: LendWithdrawRequestFull.Asset | null;
|
|
749
849
|
}
|
|
750
850
|
|
|
751
851
|
export namespace LendWithdrawRequestFull {
|
|
@@ -914,6 +1014,8 @@ export namespace Execution {
|
|
|
914
1014
|
*/
|
|
915
1015
|
definition:
|
|
916
1016
|
| Step.ExecutionEVMTransactionApprove
|
|
1017
|
+
| Step.ExecutionEVMTransactionBorrow
|
|
1018
|
+
| Step.ExecutionEVMTransactionBorrowRepay
|
|
917
1019
|
| Step.ExecutionEVMTransactionBuy
|
|
918
1020
|
| Step.ExecutionEVMTransactionLend
|
|
919
1021
|
| Step.ExecutionEVMTransactionLendSetCollateral
|
|
@@ -931,6 +1033,8 @@ export namespace Execution {
|
|
|
931
1033
|
*/
|
|
932
1034
|
type:
|
|
933
1035
|
| 'evm_transaction_approve'
|
|
1036
|
+
| 'evm_transaction_borrow'
|
|
1037
|
+
| 'evm_transaction_borrow_repay'
|
|
934
1038
|
| 'evm_transaction_buy'
|
|
935
1039
|
| 'evm_transaction_lend'
|
|
936
1040
|
| 'evm_transaction_lend_set_collateral'
|
|
@@ -1041,6 +1145,11 @@ export namespace Execution {
|
|
|
1041
1145
|
*/
|
|
1042
1146
|
to: string | null;
|
|
1043
1147
|
|
|
1148
|
+
/**
|
|
1149
|
+
* The type of approval
|
|
1150
|
+
*/
|
|
1151
|
+
type: 'spend_erc20' | 'borrow_erc20' | 'spend_erc721' | 'spend_erc721_collection';
|
|
1152
|
+
|
|
1044
1153
|
/**
|
|
1045
1154
|
* ISO8601 Timestamp
|
|
1046
1155
|
*/
|
|
@@ -1074,6 +1183,265 @@ export namespace Execution {
|
|
|
1074
1183
|
}
|
|
1075
1184
|
}
|
|
1076
1185
|
|
|
1186
|
+
/**
|
|
1187
|
+
* Borrowing an asset
|
|
1188
|
+
*/
|
|
1189
|
+
export interface ExecutionEVMTransactionBorrow {
|
|
1190
|
+
/**
|
|
1191
|
+
* An arbitrary precision decimal represented as a string
|
|
1192
|
+
*/
|
|
1193
|
+
amount: VektorAPI.Decimal;
|
|
1194
|
+
|
|
1195
|
+
/**
|
|
1196
|
+
* On-chain asset (aka token)
|
|
1197
|
+
*/
|
|
1198
|
+
asset: VektorAPI.Asset;
|
|
1199
|
+
|
|
1200
|
+
block_number: number | null;
|
|
1201
|
+
|
|
1202
|
+
/**
|
|
1203
|
+
* ISO8601 Timestamp
|
|
1204
|
+
*/
|
|
1205
|
+
broadcasted_at: string | null;
|
|
1206
|
+
|
|
1207
|
+
confirmation_target: number;
|
|
1208
|
+
|
|
1209
|
+
/**
|
|
1210
|
+
* ISO8601 Timestamp
|
|
1211
|
+
*/
|
|
1212
|
+
confirmed_at: string | null;
|
|
1213
|
+
|
|
1214
|
+
/**
|
|
1215
|
+
* ISO8601 Timestamp
|
|
1216
|
+
*/
|
|
1217
|
+
created_at: VektorAPI.Timestamp;
|
|
1218
|
+
|
|
1219
|
+
/**
|
|
1220
|
+
* A hex string starting with 0x
|
|
1221
|
+
*/
|
|
1222
|
+
data: string | null;
|
|
1223
|
+
|
|
1224
|
+
/**
|
|
1225
|
+
* An arbitrary precision decimal represented as a string
|
|
1226
|
+
*/
|
|
1227
|
+
effective_gas_price: string | null;
|
|
1228
|
+
|
|
1229
|
+
/**
|
|
1230
|
+
* An error
|
|
1231
|
+
*/
|
|
1232
|
+
error: ExecutionEVMTransactionBorrow.Error | null;
|
|
1233
|
+
|
|
1234
|
+
/**
|
|
1235
|
+
* ISO8601 Timestamp
|
|
1236
|
+
*/
|
|
1237
|
+
errored_at: string | null;
|
|
1238
|
+
|
|
1239
|
+
/**
|
|
1240
|
+
* An arbitrary precision decimal represented as a string
|
|
1241
|
+
*/
|
|
1242
|
+
gas_used: string | null;
|
|
1243
|
+
|
|
1244
|
+
/**
|
|
1245
|
+
* A transaction hash
|
|
1246
|
+
*/
|
|
1247
|
+
hash: string | null;
|
|
1248
|
+
|
|
1249
|
+
/**
|
|
1250
|
+
* A lend/borrow market ID, represented as a TypeID with `lend_borrow_market`
|
|
1251
|
+
* prefix
|
|
1252
|
+
*/
|
|
1253
|
+
lend_borrow_market_id: VektorAPI.LendBorrowMarketID;
|
|
1254
|
+
|
|
1255
|
+
/**
|
|
1256
|
+
* The payload of an EIP-1559 transaction
|
|
1257
|
+
*/
|
|
1258
|
+
payload: VektorAPI.ExecutionEVMTransactionEIP1559Payload;
|
|
1259
|
+
|
|
1260
|
+
/**
|
|
1261
|
+
* ISO8601 Timestamp
|
|
1262
|
+
*/
|
|
1263
|
+
signed_at: string | null;
|
|
1264
|
+
|
|
1265
|
+
/**
|
|
1266
|
+
* The state of an EVM transaction
|
|
1267
|
+
*/
|
|
1268
|
+
state: VektorAPI.ExecutionEVMTransactionState;
|
|
1269
|
+
|
|
1270
|
+
/**
|
|
1271
|
+
* The state of an EVM transaction
|
|
1272
|
+
*/
|
|
1273
|
+
target_state: VektorAPI.ExecutionEVMTransactionState;
|
|
1274
|
+
|
|
1275
|
+
/**
|
|
1276
|
+
* An EVM address
|
|
1277
|
+
*/
|
|
1278
|
+
to: string | null;
|
|
1279
|
+
|
|
1280
|
+
/**
|
|
1281
|
+
* ISO8601 Timestamp
|
|
1282
|
+
*/
|
|
1283
|
+
updated_at: VektorAPI.Timestamp;
|
|
1284
|
+
|
|
1285
|
+
/**
|
|
1286
|
+
* An arbitrary precision decimal represented as a string
|
|
1287
|
+
*/
|
|
1288
|
+
value: string | null;
|
|
1289
|
+
|
|
1290
|
+
/**
|
|
1291
|
+
* A venue symbol
|
|
1292
|
+
*/
|
|
1293
|
+
venue_symbol: VektorAPI.VenueSymbol;
|
|
1294
|
+
}
|
|
1295
|
+
|
|
1296
|
+
export namespace ExecutionEVMTransactionBorrow {
|
|
1297
|
+
/**
|
|
1298
|
+
* An error
|
|
1299
|
+
*/
|
|
1300
|
+
export interface Error {
|
|
1301
|
+
/**
|
|
1302
|
+
* Error message
|
|
1303
|
+
*/
|
|
1304
|
+
message: string;
|
|
1305
|
+
|
|
1306
|
+
/**
|
|
1307
|
+
* Error parameters
|
|
1308
|
+
*/
|
|
1309
|
+
params: { [key: string]: unknown };
|
|
1310
|
+
|
|
1311
|
+
/**
|
|
1312
|
+
* Error type
|
|
1313
|
+
*/
|
|
1314
|
+
type: string;
|
|
1315
|
+
}
|
|
1316
|
+
}
|
|
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
|
+
|
|
1077
1445
|
/**
|
|
1078
1446
|
* Buying an asset with another asset
|
|
1079
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
|