@nirvana-labs/nirvana 1.10.0 → 1.11.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 +9 -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/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 +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/executions/steps.d.mts +115 -2
- package/resources/vektor/executions/steps.d.mts.map +1 -1
- package/resources/vektor/executions/steps.d.ts +115 -2
- package/resources/vektor/executions/steps.d.ts.map +1 -1
- package/resources/vektor/vektor.d.mts +141 -3
- package/resources/vektor/vektor.d.mts.map +1 -1
- package/resources/vektor/vektor.d.ts +141 -3
- 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/borrow_.ts +57 -0
- package/src/resources/vektor/borrow/index.ts +1 -0
- package/src/resources/vektor/executions/steps.ts +139 -0
- package/src/resources/vektor/vektor.ts +170 -0
- 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,7 @@ export interface Execution {
|
|
|
591
591
|
* An execution request
|
|
592
592
|
*/
|
|
593
593
|
request:
|
|
594
|
+
| Execution.BorrowRequestFull
|
|
594
595
|
| Execution.BuyRequestFull
|
|
595
596
|
| Execution.LendRequestFull
|
|
596
597
|
| Execution.LendSetCollateralRequestFull
|
|
@@ -624,6 +625,36 @@ export interface Execution {
|
|
|
624
625
|
}
|
|
625
626
|
|
|
626
627
|
export namespace Execution {
|
|
628
|
+
/**
|
|
629
|
+
* A request to borrow an asset
|
|
630
|
+
*/
|
|
631
|
+
export interface BorrowRequestFull {
|
|
632
|
+
/**
|
|
633
|
+
* An arbitrary precision decimal represented as a string
|
|
634
|
+
*/
|
|
635
|
+
amount: VektorAPI.Decimal;
|
|
636
|
+
|
|
637
|
+
/**
|
|
638
|
+
* On-chain asset (aka token)
|
|
639
|
+
*/
|
|
640
|
+
asset: VektorAPI.Asset;
|
|
641
|
+
|
|
642
|
+
/**
|
|
643
|
+
* Data about a blockchain
|
|
644
|
+
*/
|
|
645
|
+
blockchain: VektorAPI.Blockchain;
|
|
646
|
+
|
|
647
|
+
/**
|
|
648
|
+
* An EVM address
|
|
649
|
+
*/
|
|
650
|
+
from: VektorAPI.Account;
|
|
651
|
+
|
|
652
|
+
/**
|
|
653
|
+
* A list of venues
|
|
654
|
+
*/
|
|
655
|
+
venues: Array<VektorAPI.Venue>;
|
|
656
|
+
}
|
|
657
|
+
|
|
627
658
|
/**
|
|
628
659
|
* A request to buy an asset
|
|
629
660
|
*/
|
|
@@ -914,6 +945,7 @@ export namespace Execution {
|
|
|
914
945
|
*/
|
|
915
946
|
definition:
|
|
916
947
|
| Step.ExecutionEVMTransactionApprove
|
|
948
|
+
| Step.ExecutionEVMTransactionBorrow
|
|
917
949
|
| Step.ExecutionEVMTransactionBuy
|
|
918
950
|
| Step.ExecutionEVMTransactionLend
|
|
919
951
|
| Step.ExecutionEVMTransactionLendSetCollateral
|
|
@@ -931,6 +963,7 @@ export namespace Execution {
|
|
|
931
963
|
*/
|
|
932
964
|
type:
|
|
933
965
|
| 'evm_transaction_approve'
|
|
966
|
+
| 'evm_transaction_borrow'
|
|
934
967
|
| 'evm_transaction_buy'
|
|
935
968
|
| 'evm_transaction_lend'
|
|
936
969
|
| 'evm_transaction_lend_set_collateral'
|
|
@@ -1041,6 +1074,11 @@ export namespace Execution {
|
|
|
1041
1074
|
*/
|
|
1042
1075
|
to: string | null;
|
|
1043
1076
|
|
|
1077
|
+
/**
|
|
1078
|
+
* The type of approval
|
|
1079
|
+
*/
|
|
1080
|
+
type: 'spend_erc20' | 'borrow_erc20' | 'spend_erc721' | 'spend_erc721_collection';
|
|
1081
|
+
|
|
1044
1082
|
/**
|
|
1045
1083
|
* ISO8601 Timestamp
|
|
1046
1084
|
*/
|
|
@@ -1074,6 +1112,138 @@ export namespace Execution {
|
|
|
1074
1112
|
}
|
|
1075
1113
|
}
|
|
1076
1114
|
|
|
1115
|
+
/**
|
|
1116
|
+
* Borrowing an asset
|
|
1117
|
+
*/
|
|
1118
|
+
export interface ExecutionEVMTransactionBorrow {
|
|
1119
|
+
/**
|
|
1120
|
+
* An arbitrary precision decimal represented as a string
|
|
1121
|
+
*/
|
|
1122
|
+
amount: VektorAPI.Decimal;
|
|
1123
|
+
|
|
1124
|
+
/**
|
|
1125
|
+
* On-chain asset (aka token)
|
|
1126
|
+
*/
|
|
1127
|
+
asset: VektorAPI.Asset;
|
|
1128
|
+
|
|
1129
|
+
block_number: number | null;
|
|
1130
|
+
|
|
1131
|
+
/**
|
|
1132
|
+
* ISO8601 Timestamp
|
|
1133
|
+
*/
|
|
1134
|
+
broadcasted_at: string | null;
|
|
1135
|
+
|
|
1136
|
+
confirmation_target: number;
|
|
1137
|
+
|
|
1138
|
+
/**
|
|
1139
|
+
* ISO8601 Timestamp
|
|
1140
|
+
*/
|
|
1141
|
+
confirmed_at: string | null;
|
|
1142
|
+
|
|
1143
|
+
/**
|
|
1144
|
+
* ISO8601 Timestamp
|
|
1145
|
+
*/
|
|
1146
|
+
created_at: VektorAPI.Timestamp;
|
|
1147
|
+
|
|
1148
|
+
/**
|
|
1149
|
+
* A hex string starting with 0x
|
|
1150
|
+
*/
|
|
1151
|
+
data: string | null;
|
|
1152
|
+
|
|
1153
|
+
/**
|
|
1154
|
+
* An arbitrary precision decimal represented as a string
|
|
1155
|
+
*/
|
|
1156
|
+
effective_gas_price: string | null;
|
|
1157
|
+
|
|
1158
|
+
/**
|
|
1159
|
+
* An error
|
|
1160
|
+
*/
|
|
1161
|
+
error: ExecutionEVMTransactionBorrow.Error | null;
|
|
1162
|
+
|
|
1163
|
+
/**
|
|
1164
|
+
* ISO8601 Timestamp
|
|
1165
|
+
*/
|
|
1166
|
+
errored_at: string | null;
|
|
1167
|
+
|
|
1168
|
+
/**
|
|
1169
|
+
* An arbitrary precision decimal represented as a string
|
|
1170
|
+
*/
|
|
1171
|
+
gas_used: string | null;
|
|
1172
|
+
|
|
1173
|
+
/**
|
|
1174
|
+
* A transaction hash
|
|
1175
|
+
*/
|
|
1176
|
+
hash: string | null;
|
|
1177
|
+
|
|
1178
|
+
/**
|
|
1179
|
+
* A lend/borrow market ID, represented as a TypeID with `lend_borrow_market`
|
|
1180
|
+
* prefix
|
|
1181
|
+
*/
|
|
1182
|
+
lend_borrow_market_id: VektorAPI.LendBorrowMarketID;
|
|
1183
|
+
|
|
1184
|
+
/**
|
|
1185
|
+
* The payload of an EIP-1559 transaction
|
|
1186
|
+
*/
|
|
1187
|
+
payload: VektorAPI.ExecutionEVMTransactionEIP1559Payload;
|
|
1188
|
+
|
|
1189
|
+
/**
|
|
1190
|
+
* ISO8601 Timestamp
|
|
1191
|
+
*/
|
|
1192
|
+
signed_at: string | null;
|
|
1193
|
+
|
|
1194
|
+
/**
|
|
1195
|
+
* The state of an EVM transaction
|
|
1196
|
+
*/
|
|
1197
|
+
state: VektorAPI.ExecutionEVMTransactionState;
|
|
1198
|
+
|
|
1199
|
+
/**
|
|
1200
|
+
* The state of an EVM transaction
|
|
1201
|
+
*/
|
|
1202
|
+
target_state: VektorAPI.ExecutionEVMTransactionState;
|
|
1203
|
+
|
|
1204
|
+
/**
|
|
1205
|
+
* An EVM address
|
|
1206
|
+
*/
|
|
1207
|
+
to: string | null;
|
|
1208
|
+
|
|
1209
|
+
/**
|
|
1210
|
+
* ISO8601 Timestamp
|
|
1211
|
+
*/
|
|
1212
|
+
updated_at: VektorAPI.Timestamp;
|
|
1213
|
+
|
|
1214
|
+
/**
|
|
1215
|
+
* An arbitrary precision decimal represented as a string
|
|
1216
|
+
*/
|
|
1217
|
+
value: string | null;
|
|
1218
|
+
|
|
1219
|
+
/**
|
|
1220
|
+
* A venue symbol
|
|
1221
|
+
*/
|
|
1222
|
+
venue_symbol: VektorAPI.VenueSymbol;
|
|
1223
|
+
}
|
|
1224
|
+
|
|
1225
|
+
export namespace ExecutionEVMTransactionBorrow {
|
|
1226
|
+
/**
|
|
1227
|
+
* An error
|
|
1228
|
+
*/
|
|
1229
|
+
export interface Error {
|
|
1230
|
+
/**
|
|
1231
|
+
* Error message
|
|
1232
|
+
*/
|
|
1233
|
+
message: string;
|
|
1234
|
+
|
|
1235
|
+
/**
|
|
1236
|
+
* Error parameters
|
|
1237
|
+
*/
|
|
1238
|
+
params: { [key: string]: unknown };
|
|
1239
|
+
|
|
1240
|
+
/**
|
|
1241
|
+
* Error type
|
|
1242
|
+
*/
|
|
1243
|
+
type: string;
|
|
1244
|
+
}
|
|
1245
|
+
}
|
|
1246
|
+
|
|
1077
1247
|
/**
|
|
1078
1248
|
* Buying an asset with another asset
|
|
1079
1249
|
*/
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '1.
|
|
1
|
+
export const VERSION = '1.11.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.11.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.11.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.11.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|