@quartz-labs/sdk 0.15.2 → 0.16.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/dist/QuartzClient.class.d.ts.map +1 -1
- package/dist/QuartzClient.class.js +2 -1
- package/dist/QuartzClient.class.js.map +1 -1
- package/dist/QuartzUser.class.d.ts +10 -27
- package/dist/QuartzUser.class.d.ts.map +1 -1
- package/dist/QuartzUser.class.js +109 -90
- package/dist/QuartzUser.class.js.map +1 -1
- package/dist/config/constants.d.ts +1 -0
- package/dist/config/constants.d.ts.map +1 -1
- package/dist/config/constants.js +1 -0
- package/dist/config/constants.js.map +1 -1
- package/dist/types/idl/quartz.d.ts +183 -133
- package/dist/types/idl/quartz.d.ts.map +1 -1
- package/dist/types/idl/quartz.js +184 -134
- package/dist/types/idl/quartz.js.map +1 -1
- package/dist/utils/accounts.d.ts +6 -2
- package/dist/utils/accounts.d.ts.map +1 -1
- package/dist/utils/accounts.js +23 -7
- package/dist/utils/accounts.js.map +1 -1
- package/package.json +1 -1
package/dist/types/idl/quartz.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export const IDL = {
|
|
2
|
-
"version": "0.
|
|
2
|
+
"version": "0.11.0",
|
|
3
3
|
"name": "quartz",
|
|
4
4
|
"instructions": [
|
|
5
5
|
{
|
|
@@ -85,6 +85,11 @@ export const IDL = {
|
|
|
85
85
|
"name": "systemProgram",
|
|
86
86
|
"isMut": false,
|
|
87
87
|
"isSigner": false
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"name": "depositAddress",
|
|
91
|
+
"isMut": false,
|
|
92
|
+
"isSigner": false
|
|
88
93
|
}
|
|
89
94
|
],
|
|
90
95
|
"args": [
|
|
@@ -148,6 +153,11 @@ export const IDL = {
|
|
|
148
153
|
"name": "systemProgram",
|
|
149
154
|
"isMut": false,
|
|
150
155
|
"isSigner": false
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"name": "depositAddress",
|
|
159
|
+
"isMut": false,
|
|
160
|
+
"isSigner": false
|
|
151
161
|
}
|
|
152
162
|
],
|
|
153
163
|
"args": []
|
|
@@ -200,7 +210,7 @@ export const IDL = {
|
|
|
200
210
|
"accounts": [
|
|
201
211
|
{
|
|
202
212
|
"name": "vault",
|
|
203
|
-
"isMut":
|
|
213
|
+
"isMut": false,
|
|
204
214
|
"isSigner": false
|
|
205
215
|
},
|
|
206
216
|
{
|
|
@@ -219,7 +229,7 @@ export const IDL = {
|
|
|
219
229
|
"isSigner": false
|
|
220
230
|
},
|
|
221
231
|
{
|
|
222
|
-
"name": "
|
|
232
|
+
"name": "mint",
|
|
223
233
|
"isMut": false,
|
|
224
234
|
"isSigner": false
|
|
225
235
|
},
|
|
@@ -284,11 +294,25 @@ export const IDL = {
|
|
|
284
294
|
"accounts": [
|
|
285
295
|
{
|
|
286
296
|
"name": "vault",
|
|
287
|
-
"isMut":
|
|
297
|
+
"isMut": false,
|
|
288
298
|
"isSigner": false
|
|
289
299
|
},
|
|
290
300
|
{
|
|
291
|
-
"name": "
|
|
301
|
+
"name": "depositAddress",
|
|
302
|
+
"isMut": false,
|
|
303
|
+
"isSigner": false
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
"name": "depositAddressSpl",
|
|
307
|
+
"isMut": true,
|
|
308
|
+
"isSigner": false,
|
|
309
|
+
"isOptional": true,
|
|
310
|
+
"docs": [
|
|
311
|
+
"Option because SOL in the deposit_address will be regular lamports, not wSOL"
|
|
312
|
+
]
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
"name": "mule",
|
|
292
316
|
"isMut": true,
|
|
293
317
|
"isSigner": false
|
|
294
318
|
},
|
|
@@ -303,12 +327,7 @@ export const IDL = {
|
|
|
303
327
|
"isSigner": true
|
|
304
328
|
},
|
|
305
329
|
{
|
|
306
|
-
"name": "
|
|
307
|
-
"isMut": true,
|
|
308
|
-
"isSigner": false
|
|
309
|
-
},
|
|
310
|
-
{
|
|
311
|
-
"name": "splMint",
|
|
330
|
+
"name": "mint",
|
|
312
331
|
"isMut": false,
|
|
313
332
|
"isSigner": false
|
|
314
333
|
},
|
|
@@ -354,17 +373,9 @@ export const IDL = {
|
|
|
354
373
|
}
|
|
355
374
|
],
|
|
356
375
|
"args": [
|
|
357
|
-
{
|
|
358
|
-
"name": "amountBaseUnits",
|
|
359
|
-
"type": "u64"
|
|
360
|
-
},
|
|
361
376
|
{
|
|
362
377
|
"name": "driftMarketIndex",
|
|
363
378
|
"type": "u16"
|
|
364
|
-
},
|
|
365
|
-
{
|
|
366
|
-
"name": "reduceOnly",
|
|
367
|
-
"type": "bool"
|
|
368
379
|
}
|
|
369
380
|
]
|
|
370
381
|
},
|
|
@@ -437,7 +448,7 @@ export const IDL = {
|
|
|
437
448
|
},
|
|
438
449
|
{
|
|
439
450
|
"name": "vault",
|
|
440
|
-
"isMut":
|
|
451
|
+
"isMut": false,
|
|
441
452
|
"isSigner": false
|
|
442
453
|
},
|
|
443
454
|
{
|
|
@@ -447,11 +458,11 @@ export const IDL = {
|
|
|
447
458
|
},
|
|
448
459
|
{
|
|
449
460
|
"name": "owner",
|
|
450
|
-
"isMut":
|
|
461
|
+
"isMut": false,
|
|
451
462
|
"isSigner": false
|
|
452
463
|
},
|
|
453
464
|
{
|
|
454
|
-
"name": "
|
|
465
|
+
"name": "mint",
|
|
455
466
|
"isMut": false,
|
|
456
467
|
"isSigner": false
|
|
457
468
|
},
|
|
@@ -462,7 +473,7 @@ export const IDL = {
|
|
|
462
473
|
},
|
|
463
474
|
{
|
|
464
475
|
"name": "driftUserStats",
|
|
465
|
-
"isMut":
|
|
476
|
+
"isMut": false,
|
|
466
477
|
"isSigner": false
|
|
467
478
|
},
|
|
468
479
|
{
|
|
@@ -510,6 +521,20 @@ export const IDL = {
|
|
|
510
521
|
"isMut": true,
|
|
511
522
|
"isSigner": false,
|
|
512
523
|
"isOptional": true
|
|
524
|
+
},
|
|
525
|
+
{
|
|
526
|
+
"name": "depositAddress",
|
|
527
|
+
"isMut": false,
|
|
528
|
+
"isSigner": false
|
|
529
|
+
},
|
|
530
|
+
{
|
|
531
|
+
"name": "depositAddressSpl",
|
|
532
|
+
"isMut": true,
|
|
533
|
+
"isSigner": false,
|
|
534
|
+
"isOptional": true,
|
|
535
|
+
"docs": [
|
|
536
|
+
"Option because SOL in the deposit_address will be regular lamports, not wSOL"
|
|
537
|
+
]
|
|
513
538
|
}
|
|
514
539
|
],
|
|
515
540
|
"args": []
|
|
@@ -544,7 +569,7 @@ export const IDL = {
|
|
|
544
569
|
},
|
|
545
570
|
{
|
|
546
571
|
"name": "usdcMint",
|
|
547
|
-
"isMut":
|
|
572
|
+
"isMut": false,
|
|
548
573
|
"isSigner": false
|
|
549
574
|
},
|
|
550
575
|
{
|
|
@@ -597,6 +622,16 @@ export const IDL = {
|
|
|
597
622
|
"isMut": false,
|
|
598
623
|
"isSigner": false
|
|
599
624
|
},
|
|
625
|
+
{
|
|
626
|
+
"name": "depositAddress",
|
|
627
|
+
"isMut": false,
|
|
628
|
+
"isSigner": false
|
|
629
|
+
},
|
|
630
|
+
{
|
|
631
|
+
"name": "depositAddressUsdc",
|
|
632
|
+
"isMut": true,
|
|
633
|
+
"isSigner": false
|
|
634
|
+
},
|
|
600
635
|
{
|
|
601
636
|
"name": "eventAuthority",
|
|
602
637
|
"isMut": false,
|
|
@@ -624,7 +659,7 @@ export const IDL = {
|
|
|
624
659
|
"accounts": [
|
|
625
660
|
{
|
|
626
661
|
"name": "vault",
|
|
627
|
-
"isMut":
|
|
662
|
+
"isMut": false,
|
|
628
663
|
"isSigner": false
|
|
629
664
|
},
|
|
630
665
|
{
|
|
@@ -788,7 +823,7 @@ export const IDL = {
|
|
|
788
823
|
},
|
|
789
824
|
{
|
|
790
825
|
"name": "caller",
|
|
791
|
-
"isMut":
|
|
826
|
+
"isMut": false,
|
|
792
827
|
"isSigner": true
|
|
793
828
|
},
|
|
794
829
|
{
|
|
@@ -798,7 +833,7 @@ export const IDL = {
|
|
|
798
833
|
},
|
|
799
834
|
{
|
|
800
835
|
"name": "owner",
|
|
801
|
-
"isMut":
|
|
836
|
+
"isMut": false,
|
|
802
837
|
"isSigner": false
|
|
803
838
|
},
|
|
804
839
|
{
|
|
@@ -844,7 +879,7 @@ export const IDL = {
|
|
|
844
879
|
},
|
|
845
880
|
{
|
|
846
881
|
"name": "vault",
|
|
847
|
-
"isMut":
|
|
882
|
+
"isMut": false,
|
|
848
883
|
"isSigner": false
|
|
849
884
|
},
|
|
850
885
|
{
|
|
@@ -905,16 +940,16 @@ export const IDL = {
|
|
|
905
940
|
},
|
|
906
941
|
{
|
|
907
942
|
"name": "vault",
|
|
908
|
-
"isMut":
|
|
943
|
+
"isMut": false,
|
|
909
944
|
"isSigner": false
|
|
910
945
|
},
|
|
911
946
|
{
|
|
912
|
-
"name": "
|
|
947
|
+
"name": "mule",
|
|
913
948
|
"isMut": true,
|
|
914
949
|
"isSigner": false
|
|
915
950
|
},
|
|
916
951
|
{
|
|
917
|
-
"name": "
|
|
952
|
+
"name": "mint",
|
|
918
953
|
"isMut": false,
|
|
919
954
|
"isSigner": false
|
|
920
955
|
},
|
|
@@ -991,16 +1026,16 @@ export const IDL = {
|
|
|
991
1026
|
},
|
|
992
1027
|
{
|
|
993
1028
|
"name": "vault",
|
|
994
|
-
"isMut":
|
|
1029
|
+
"isMut": false,
|
|
995
1030
|
"isSigner": false
|
|
996
1031
|
},
|
|
997
1032
|
{
|
|
998
|
-
"name": "
|
|
1033
|
+
"name": "mule",
|
|
999
1034
|
"isMut": true,
|
|
1000
1035
|
"isSigner": false
|
|
1001
1036
|
},
|
|
1002
1037
|
{
|
|
1003
|
-
"name": "
|
|
1038
|
+
"name": "mint",
|
|
1004
1039
|
"isMut": false,
|
|
1005
1040
|
"isSigner": false
|
|
1006
1041
|
},
|
|
@@ -1075,52 +1110,52 @@ export const IDL = {
|
|
|
1075
1110
|
],
|
|
1076
1111
|
"accounts": [
|
|
1077
1112
|
{
|
|
1078
|
-
"name": "
|
|
1113
|
+
"name": "collateralRepayLedger",
|
|
1114
|
+
"docs": [
|
|
1115
|
+
"Ledger for tracking the balance changes of each token during the swap instruction of collateral repay"
|
|
1116
|
+
],
|
|
1079
1117
|
"type": {
|
|
1080
1118
|
"kind": "struct",
|
|
1081
1119
|
"fields": [
|
|
1082
1120
|
{
|
|
1083
|
-
"name": "
|
|
1084
|
-
"type": "publicKey"
|
|
1085
|
-
},
|
|
1086
|
-
{
|
|
1087
|
-
"name": "bump",
|
|
1088
|
-
"type": "u8"
|
|
1089
|
-
},
|
|
1090
|
-
{
|
|
1091
|
-
"name": "spendLimitPerTransaction",
|
|
1092
|
-
"type": "u64"
|
|
1093
|
-
},
|
|
1094
|
-
{
|
|
1095
|
-
"name": "spendLimitPerTimeframe",
|
|
1096
|
-
"type": "u64"
|
|
1097
|
-
},
|
|
1098
|
-
{
|
|
1099
|
-
"name": "remainingSpendLimitPerTimeframe",
|
|
1100
|
-
"type": "u64"
|
|
1101
|
-
},
|
|
1102
|
-
{
|
|
1103
|
-
"name": "nextTimeframeResetTimestamp",
|
|
1121
|
+
"name": "deposit",
|
|
1104
1122
|
"type": "u64"
|
|
1105
1123
|
},
|
|
1106
1124
|
{
|
|
1107
|
-
"name": "
|
|
1125
|
+
"name": "withdraw",
|
|
1108
1126
|
"type": "u64"
|
|
1109
1127
|
}
|
|
1110
1128
|
]
|
|
1111
1129
|
}
|
|
1112
1130
|
},
|
|
1113
1131
|
{
|
|
1114
|
-
"name": "
|
|
1132
|
+
"name": "spendLimitsOrder",
|
|
1133
|
+
"docs": [
|
|
1134
|
+
"Time locked order for updating the spend limits of a vault"
|
|
1135
|
+
],
|
|
1115
1136
|
"type": {
|
|
1116
1137
|
"kind": "struct",
|
|
1117
1138
|
"fields": [
|
|
1118
1139
|
{
|
|
1119
|
-
"name": "
|
|
1140
|
+
"name": "timeLock",
|
|
1141
|
+
"type": {
|
|
1142
|
+
"defined": "TimeLock"
|
|
1143
|
+
}
|
|
1144
|
+
},
|
|
1145
|
+
{
|
|
1146
|
+
"name": "spendLimitPerTransaction",
|
|
1120
1147
|
"type": "u64"
|
|
1121
1148
|
},
|
|
1122
1149
|
{
|
|
1123
|
-
"name": "
|
|
1150
|
+
"name": "spendLimitPerTimeframe",
|
|
1151
|
+
"type": "u64"
|
|
1152
|
+
},
|
|
1153
|
+
{
|
|
1154
|
+
"name": "timeframeInSeconds",
|
|
1155
|
+
"type": "u64"
|
|
1156
|
+
},
|
|
1157
|
+
{
|
|
1158
|
+
"name": "nextTimeframeResetTimestamp",
|
|
1124
1159
|
"type": "u64"
|
|
1125
1160
|
}
|
|
1126
1161
|
]
|
|
@@ -1128,6 +1163,9 @@ export const IDL = {
|
|
|
1128
1163
|
},
|
|
1129
1164
|
{
|
|
1130
1165
|
"name": "withdrawOrder",
|
|
1166
|
+
"docs": [
|
|
1167
|
+
"Time locked order for withdrawing funds from a vault"
|
|
1168
|
+
],
|
|
1131
1169
|
"type": {
|
|
1132
1170
|
"kind": "struct",
|
|
1133
1171
|
"fields": [
|
|
@@ -1157,15 +1195,20 @@ export const IDL = {
|
|
|
1157
1195
|
}
|
|
1158
1196
|
},
|
|
1159
1197
|
{
|
|
1160
|
-
"name": "
|
|
1198
|
+
"name": "vault",
|
|
1199
|
+
"docs": [
|
|
1200
|
+
"Main user account for the Quartz protocol. Is the authority for DeFi integration accounts, and handles spend limits for the card."
|
|
1201
|
+
],
|
|
1161
1202
|
"type": {
|
|
1162
1203
|
"kind": "struct",
|
|
1163
1204
|
"fields": [
|
|
1164
1205
|
{
|
|
1165
|
-
"name": "
|
|
1166
|
-
"type":
|
|
1167
|
-
|
|
1168
|
-
|
|
1206
|
+
"name": "owner",
|
|
1207
|
+
"type": "publicKey"
|
|
1208
|
+
},
|
|
1209
|
+
{
|
|
1210
|
+
"name": "bump",
|
|
1211
|
+
"type": "u8"
|
|
1169
1212
|
},
|
|
1170
1213
|
{
|
|
1171
1214
|
"name": "spendLimitPerTransaction",
|
|
@@ -1176,12 +1219,16 @@ export const IDL = {
|
|
|
1176
1219
|
"type": "u64"
|
|
1177
1220
|
},
|
|
1178
1221
|
{
|
|
1179
|
-
"name": "
|
|
1222
|
+
"name": "remainingSpendLimitPerTimeframe",
|
|
1180
1223
|
"type": "u64"
|
|
1181
1224
|
},
|
|
1182
1225
|
{
|
|
1183
1226
|
"name": "nextTimeframeResetTimestamp",
|
|
1184
1227
|
"type": "u64"
|
|
1228
|
+
},
|
|
1229
|
+
{
|
|
1230
|
+
"name": "timeframeInSeconds",
|
|
1231
|
+
"type": "u64"
|
|
1185
1232
|
}
|
|
1186
1233
|
]
|
|
1187
1234
|
}
|
|
@@ -1190,6 +1237,9 @@ export const IDL = {
|
|
|
1190
1237
|
"types": [
|
|
1191
1238
|
{
|
|
1192
1239
|
"name": "TimeLock",
|
|
1240
|
+
"docs": [
|
|
1241
|
+
"Time lock used to prevent an order being executed before the release_slot"
|
|
1242
|
+
],
|
|
1193
1243
|
"type": {
|
|
1194
1244
|
"kind": "struct",
|
|
1195
1245
|
"fields": [
|
|
@@ -1212,13 +1262,13 @@ export const IDL = {
|
|
|
1212
1262
|
"errors": [
|
|
1213
1263
|
{
|
|
1214
1264
|
"code": 6000,
|
|
1215
|
-
"name": "
|
|
1216
|
-
"msg": "
|
|
1265
|
+
"name": "IllegalCollateralRepayInstructions",
|
|
1266
|
+
"msg": "Illegal collateral repay instructions"
|
|
1217
1267
|
},
|
|
1218
1268
|
{
|
|
1219
1269
|
"code": 6001,
|
|
1220
|
-
"name": "
|
|
1221
|
-
"msg": "
|
|
1270
|
+
"name": "IllegalCollateralRepayCPI",
|
|
1271
|
+
"msg": "Collateral repay cannot be called as a CPI"
|
|
1222
1272
|
},
|
|
1223
1273
|
{
|
|
1224
1274
|
"code": 6002,
|
|
@@ -1232,8 +1282,8 @@ export const IDL = {
|
|
|
1232
1282
|
},
|
|
1233
1283
|
{
|
|
1234
1284
|
"code": 6004,
|
|
1235
|
-
"name": "
|
|
1236
|
-
"msg": "
|
|
1285
|
+
"name": "InvalidSlippageBPS",
|
|
1286
|
+
"msg": "Max slippage config is above maximum BPS"
|
|
1237
1287
|
},
|
|
1238
1288
|
{
|
|
1239
1289
|
"code": 6005,
|
|
@@ -1247,163 +1297,163 @@ export const IDL = {
|
|
|
1247
1297
|
},
|
|
1248
1298
|
{
|
|
1249
1299
|
"code": 6007,
|
|
1250
|
-
"name": "InvalidDestinationTokenAccount",
|
|
1251
|
-
"msg": "Swap destination token account does not match deposit"
|
|
1252
|
-
},
|
|
1253
|
-
{
|
|
1254
|
-
"code": 6008,
|
|
1255
|
-
"name": "InvalidStartBalance",
|
|
1256
|
-
"msg": "Declared start balance is not accurate"
|
|
1257
|
-
},
|
|
1258
|
-
{
|
|
1259
|
-
"code": 6009,
|
|
1260
1300
|
"name": "NegativeOraclePrice",
|
|
1261
1301
|
"msg": "Price received from oracle should be a positive number"
|
|
1262
1302
|
},
|
|
1263
1303
|
{
|
|
1264
|
-
"code":
|
|
1304
|
+
"code": 6008,
|
|
1265
1305
|
"name": "InvalidMarketIndex",
|
|
1266
1306
|
"msg": "Invalid market index"
|
|
1267
1307
|
},
|
|
1268
1308
|
{
|
|
1269
|
-
"code":
|
|
1309
|
+
"code": 6009,
|
|
1270
1310
|
"name": "MathOverflow",
|
|
1271
1311
|
"msg": "Math overflow"
|
|
1272
1312
|
},
|
|
1273
1313
|
{
|
|
1274
|
-
"code":
|
|
1314
|
+
"code": 6010,
|
|
1275
1315
|
"name": "InvalidPriceExponent",
|
|
1276
1316
|
"msg": "Price exponents received from oracle should be the same"
|
|
1277
1317
|
},
|
|
1278
1318
|
{
|
|
1279
|
-
"code":
|
|
1319
|
+
"code": 6011,
|
|
1280
1320
|
"name": "UnableToLoadAccountLoader",
|
|
1281
1321
|
"msg": "Unable to load account loader"
|
|
1282
1322
|
},
|
|
1283
1323
|
{
|
|
1284
|
-
"code":
|
|
1285
|
-
"name": "DeserializationError",
|
|
1286
|
-
"msg": "Could not deserialize introspection instruction data"
|
|
1287
|
-
},
|
|
1288
|
-
{
|
|
1289
|
-
"code": 6015,
|
|
1324
|
+
"code": 6012,
|
|
1290
1325
|
"name": "AutoRepayThresholdNotReached",
|
|
1291
1326
|
"msg": "Total collateral cannot be less than margin requirement for auto repay"
|
|
1292
1327
|
},
|
|
1293
1328
|
{
|
|
1294
|
-
"code":
|
|
1329
|
+
"code": 6013,
|
|
1295
1330
|
"name": "AutoRepayTooMuchSold",
|
|
1296
1331
|
"msg": "Too much collateral sold in auto repay"
|
|
1297
1332
|
},
|
|
1298
1333
|
{
|
|
1299
|
-
"code":
|
|
1334
|
+
"code": 6014,
|
|
1300
1335
|
"name": "AutoRepayNotEnoughSold",
|
|
1301
1336
|
"msg": "Not enough collateral sold in auto repay"
|
|
1302
1337
|
},
|
|
1303
1338
|
{
|
|
1304
|
-
"code":
|
|
1339
|
+
"code": 6015,
|
|
1305
1340
|
"name": "IdenticalCollateralRepayMarkets",
|
|
1306
1341
|
"msg": "Collateral repay deposit and withdraw markets must be different"
|
|
1307
1342
|
},
|
|
1308
1343
|
{
|
|
1309
|
-
"code":
|
|
1344
|
+
"code": 6016,
|
|
1310
1345
|
"name": "InvalidStartingVaultBalance",
|
|
1311
1346
|
"msg": "Invalid starting vault balance"
|
|
1312
1347
|
},
|
|
1348
|
+
{
|
|
1349
|
+
"code": 6017,
|
|
1350
|
+
"name": "InvalidEvmAddress",
|
|
1351
|
+
"msg": "Provided EVM address does not match expected format"
|
|
1352
|
+
},
|
|
1353
|
+
{
|
|
1354
|
+
"code": 6018,
|
|
1355
|
+
"name": "InvalidVaultOwner",
|
|
1356
|
+
"msg": "Invalid vault owner"
|
|
1357
|
+
},
|
|
1358
|
+
{
|
|
1359
|
+
"code": 6019,
|
|
1360
|
+
"name": "InsufficientTimeframeSpendLimit",
|
|
1361
|
+
"msg": "Insufficient spend limit remaining for the timeframe"
|
|
1362
|
+
},
|
|
1313
1363
|
{
|
|
1314
1364
|
"code": 6020,
|
|
1315
|
-
"name": "
|
|
1316
|
-
"msg": "
|
|
1365
|
+
"name": "InsufficientTransactionSpendLimit",
|
|
1366
|
+
"msg": "Transaction is larger than the transaction spend limit"
|
|
1317
1367
|
},
|
|
1318
1368
|
{
|
|
1319
1369
|
"code": 6021,
|
|
1320
|
-
"name": "
|
|
1321
|
-
"msg": "
|
|
1370
|
+
"name": "IllegalSpendInstructions",
|
|
1371
|
+
"msg": "start_spend instruction must be followed by complete_spend instruction"
|
|
1322
1372
|
},
|
|
1323
1373
|
{
|
|
1324
1374
|
"code": 6022,
|
|
1325
|
-
"name": "
|
|
1326
|
-
"msg": "
|
|
1375
|
+
"name": "InvalidTimestamp",
|
|
1376
|
+
"msg": "Current timestamp cannot be negative"
|
|
1327
1377
|
},
|
|
1328
1378
|
{
|
|
1329
1379
|
"code": 6023,
|
|
1330
|
-
"name": "
|
|
1331
|
-
"msg": "
|
|
1380
|
+
"name": "InvalidTimeLockRentPayer",
|
|
1381
|
+
"msg": "Time lock rent payer must either be the owner or the time_lock_rent_payer PDA"
|
|
1332
1382
|
},
|
|
1333
1383
|
{
|
|
1334
1384
|
"code": 6024,
|
|
1335
|
-
"name": "
|
|
1336
|
-
"msg": "
|
|
1385
|
+
"name": "TimeLockNotReleased",
|
|
1386
|
+
"msg": "Release slot has not passed for time lock"
|
|
1337
1387
|
},
|
|
1338
1388
|
{
|
|
1339
1389
|
"code": 6025,
|
|
1340
|
-
"name": "
|
|
1341
|
-
"msg": "
|
|
1390
|
+
"name": "InvalidTimeLockOwner",
|
|
1391
|
+
"msg": "Time lock owner does not match"
|
|
1342
1392
|
},
|
|
1343
1393
|
{
|
|
1344
1394
|
"code": 6026,
|
|
1345
|
-
"name": "
|
|
1346
|
-
"msg": "
|
|
1395
|
+
"name": "MissingDestinationSpl",
|
|
1396
|
+
"msg": "destination_spl is required if spl_mint is not wSOL"
|
|
1347
1397
|
},
|
|
1348
1398
|
{
|
|
1349
1399
|
"code": 6027,
|
|
1350
|
-
"name": "
|
|
1351
|
-
"msg": "
|
|
1400
|
+
"name": "MissingDepositAddressSpl",
|
|
1401
|
+
"msg": "deposit_address_spl is required if spl_mint is not wSOL"
|
|
1352
1402
|
},
|
|
1353
1403
|
{
|
|
1354
1404
|
"code": 6028,
|
|
1355
|
-
"name": "
|
|
1356
|
-
"msg": "
|
|
1405
|
+
"name": "InvalidWithdrawDestination",
|
|
1406
|
+
"msg": "Withdraw destination does not match order account"
|
|
1357
1407
|
},
|
|
1358
1408
|
{
|
|
1359
1409
|
"code": 6029,
|
|
1360
|
-
"name": "
|
|
1361
|
-
"msg": "Invalid
|
|
1410
|
+
"name": "InvalidSpendFeeDestination",
|
|
1411
|
+
"msg": "Invalid spend fee destination"
|
|
1362
1412
|
},
|
|
1363
1413
|
{
|
|
1364
1414
|
"code": 6030,
|
|
1365
|
-
"name": "
|
|
1366
|
-
"msg": "
|
|
1415
|
+
"name": "InvalidSpendCaller",
|
|
1416
|
+
"msg": "Invalid spend caller"
|
|
1367
1417
|
},
|
|
1368
1418
|
{
|
|
1369
1419
|
"code": 6031,
|
|
1370
|
-
"name": "
|
|
1371
|
-
"msg": "
|
|
1420
|
+
"name": "AccountAlreadyInitialized",
|
|
1421
|
+
"msg": "Account is already initialized"
|
|
1372
1422
|
},
|
|
1373
1423
|
{
|
|
1374
1424
|
"code": 6032,
|
|
1375
|
-
"name": "
|
|
1376
|
-
"msg": "
|
|
1425
|
+
"name": "InvalidRentReclaimer",
|
|
1426
|
+
"msg": "Invalid rent reclaimer"
|
|
1377
1427
|
},
|
|
1378
1428
|
{
|
|
1379
1429
|
"code": 6033,
|
|
1380
|
-
"name": "
|
|
1381
|
-
"msg": "
|
|
1430
|
+
"name": "FailedToDeserializeMarketIndex",
|
|
1431
|
+
"msg": "Failed to deserialize market index"
|
|
1382
1432
|
},
|
|
1383
1433
|
{
|
|
1384
1434
|
"code": 6034,
|
|
1385
|
-
"name": "
|
|
1386
|
-
"msg": "
|
|
1435
|
+
"name": "FailedToDeserializeVaultBytes",
|
|
1436
|
+
"msg": "Failed to deserialize vault bytes"
|
|
1387
1437
|
},
|
|
1388
1438
|
{
|
|
1389
1439
|
"code": 6035,
|
|
1390
|
-
"name": "
|
|
1391
|
-
"msg": "
|
|
1440
|
+
"name": "InvalidVaultAccount",
|
|
1441
|
+
"msg": "Invalid vault account"
|
|
1392
1442
|
},
|
|
1393
1443
|
{
|
|
1394
1444
|
"code": 6036,
|
|
1395
|
-
"name": "
|
|
1396
|
-
"msg": "
|
|
1445
|
+
"name": "IllegalVaultCPIModification",
|
|
1446
|
+
"msg": "Vault data was illegally modified during a CPI"
|
|
1397
1447
|
},
|
|
1398
1448
|
{
|
|
1399
1449
|
"code": 6037,
|
|
1400
|
-
"name": "
|
|
1401
|
-
"msg": "
|
|
1450
|
+
"name": "InvalidDepositAddressOwner",
|
|
1451
|
+
"msg": "Deposit address must be owned by the system program"
|
|
1402
1452
|
},
|
|
1403
1453
|
{
|
|
1404
1454
|
"code": 6038,
|
|
1405
|
-
"name": "
|
|
1406
|
-
"msg": "
|
|
1455
|
+
"name": "InvalidSpendFeeBPS",
|
|
1456
|
+
"msg": "Spend fee BPS is above maximum"
|
|
1407
1457
|
}
|
|
1408
1458
|
]
|
|
1409
1459
|
};
|