@glamsystems/glam-sdk 1.0.12-alpha.2 → 1.0.12-alpha.3

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 (45) hide show
  1. package/index.cjs.js +881 -2046
  2. package/index.esm.js +881 -2046
  3. package/package.json +1 -1
  4. package/src/client/fees.d.ts +0 -3
  5. package/src/client/stake.d.ts +1 -1
  6. package/src/client/state.d.ts +0 -2
  7. package/src/glamExports.d.ts +29 -0
  8. package/src/models/state.d.ts +0 -4
  9. package/target/idl/ext_cctp.json +0 -6
  10. package/target/idl/ext_drift-staging.json +0 -6
  11. package/target/idl/ext_drift.json +0 -6
  12. package/target/idl/ext_kamino-staging.json +205 -6
  13. package/target/idl/ext_kamino.json +205 -6
  14. package/target/idl/ext_marinade.json +0 -6
  15. package/target/idl/ext_spl-staging.json +0 -6
  16. package/target/idl/ext_spl.json +0 -6
  17. package/target/idl/ext_stake_pool-staging.json +0 -6
  18. package/target/idl/ext_stake_pool.json +0 -6
  19. package/target/idl/glam_mint-staging.json +0 -6
  20. package/target/idl/glam_mint.json +0 -229
  21. package/target/idl/glam_protocol-staging.json +0 -271
  22. package/target/idl/glam_protocol.json +129 -1086
  23. package/target/types/ext_cctp.d.ts +0 -6
  24. package/target/types/ext_cctp.ts +0 -6
  25. package/target/types/ext_drift-staging.ts +0 -6
  26. package/target/types/ext_drift.d.ts +0 -6
  27. package/target/types/ext_drift.ts +0 -6
  28. package/target/types/ext_kamino-staging.ts +205 -6
  29. package/target/types/ext_kamino.d.ts +205 -6
  30. package/target/types/ext_kamino.ts +205 -6
  31. package/target/types/ext_marinade.d.ts +0 -6
  32. package/target/types/ext_marinade.ts +0 -6
  33. package/target/types/ext_offchain.d.ts +0 -6
  34. package/target/types/ext_spl-staging.ts +0 -6
  35. package/target/types/ext_spl.d.ts +0 -6
  36. package/target/types/ext_spl.ts +0 -6
  37. package/target/types/ext_stake_pool-staging.ts +0 -6
  38. package/target/types/ext_stake_pool.d.ts +0 -6
  39. package/target/types/ext_stake_pool.ts +0 -6
  40. package/target/types/glam_mint-staging.ts +0 -6
  41. package/target/types/glam_mint.d.ts +0 -229
  42. package/target/types/glam_mint.ts +0 -229
  43. package/target/types/glam_protocol-staging.ts +0 -271
  44. package/target/types/glam_protocol.d.ts +129 -1086
  45. package/target/types/glam_protocol.ts +128 -1085
@@ -1313,6 +1313,206 @@ export type ExtKamino = {
1313
1313
  }
1314
1314
  ]
1315
1315
  },
1316
+ {
1317
+ "name": "lendingLiquidateObligationAndRedeemReserveCollateralV2",
1318
+ "discriminator": [
1319
+ 179,
1320
+ 45,
1321
+ 146,
1322
+ 167,
1323
+ 246,
1324
+ 239,
1325
+ 18,
1326
+ 242
1327
+ ],
1328
+ "accounts": [
1329
+ {
1330
+ "name": "glamState",
1331
+ "writable": true
1332
+ },
1333
+ {
1334
+ "name": "glamVault",
1335
+ "writable": true,
1336
+ "pda": {
1337
+ "seeds": [
1338
+ {
1339
+ "kind": "const",
1340
+ "value": [
1341
+ 118,
1342
+ 97,
1343
+ 117,
1344
+ 108,
1345
+ 116
1346
+ ]
1347
+ },
1348
+ {
1349
+ "kind": "account",
1350
+ "path": "glamState"
1351
+ }
1352
+ ],
1353
+ "program": {
1354
+ "kind": "account",
1355
+ "path": "glamProtocolProgram"
1356
+ }
1357
+ }
1358
+ },
1359
+ {
1360
+ "name": "glamSigner",
1361
+ "writable": true,
1362
+ "signer": true
1363
+ },
1364
+ {
1365
+ "name": "integrationAuthority",
1366
+ "pda": {
1367
+ "seeds": [
1368
+ {
1369
+ "kind": "const",
1370
+ "value": [
1371
+ 105,
1372
+ 110,
1373
+ 116,
1374
+ 101,
1375
+ 103,
1376
+ 114,
1377
+ 97,
1378
+ 116,
1379
+ 105,
1380
+ 111,
1381
+ 110,
1382
+ 45,
1383
+ 97,
1384
+ 117,
1385
+ 116,
1386
+ 104,
1387
+ 111,
1388
+ 114,
1389
+ 105,
1390
+ 116,
1391
+ 121
1392
+ ]
1393
+ }
1394
+ ]
1395
+ }
1396
+ },
1397
+ {
1398
+ "name": "cpiProgram",
1399
+ "address": "KLend2g3cP87fffoy8q1mQqGKjrxjC8boSyAYavgmjD"
1400
+ },
1401
+ {
1402
+ "name": "glamProtocolProgram",
1403
+ "address": "GLAMpaME8wdTEzxtiYEAa5yD8fZbxZiz2hNtV58RZiEz"
1404
+ },
1405
+ {
1406
+ "name": "systemProgram",
1407
+ "address": "11111111111111111111111111111111"
1408
+ },
1409
+ {
1410
+ "name": "obligation",
1411
+ "writable": true
1412
+ },
1413
+ {
1414
+ "name": "lendingMarket"
1415
+ },
1416
+ {
1417
+ "name": "lendingMarketAuthority"
1418
+ },
1419
+ {
1420
+ "name": "repayReserve",
1421
+ "writable": true
1422
+ },
1423
+ {
1424
+ "name": "repayReserveLiquidityMint"
1425
+ },
1426
+ {
1427
+ "name": "repayReserveLiquiditySupply",
1428
+ "writable": true
1429
+ },
1430
+ {
1431
+ "name": "withdrawReserve",
1432
+ "writable": true
1433
+ },
1434
+ {
1435
+ "name": "withdrawReserveLiquidityMint"
1436
+ },
1437
+ {
1438
+ "name": "withdrawReserveCollateralMint",
1439
+ "writable": true
1440
+ },
1441
+ {
1442
+ "name": "withdrawReserveCollateralSupply",
1443
+ "writable": true
1444
+ },
1445
+ {
1446
+ "name": "withdrawReserveLiquiditySupply",
1447
+ "writable": true
1448
+ },
1449
+ {
1450
+ "name": "withdrawReserveLiquidityFeeReceiver",
1451
+ "writable": true
1452
+ },
1453
+ {
1454
+ "name": "userSourceLiquidity",
1455
+ "writable": true
1456
+ },
1457
+ {
1458
+ "name": "userDestinationCollateral",
1459
+ "writable": true
1460
+ },
1461
+ {
1462
+ "name": "userDestinationLiquidity",
1463
+ "writable": true
1464
+ },
1465
+ {
1466
+ "name": "collateralTokenProgram"
1467
+ },
1468
+ {
1469
+ "name": "repayLiquidityTokenProgram"
1470
+ },
1471
+ {
1472
+ "name": "withdrawLiquidityTokenProgram"
1473
+ },
1474
+ {
1475
+ "name": "instructionSysvarAccount"
1476
+ },
1477
+ {
1478
+ "name": "collateralObligationFarmUserState",
1479
+ "writable": true,
1480
+ "optional": true
1481
+ },
1482
+ {
1483
+ "name": "collateralReserveFarmState",
1484
+ "writable": true,
1485
+ "optional": true
1486
+ },
1487
+ {
1488
+ "name": "debtObligationFarmUserState",
1489
+ "writable": true,
1490
+ "optional": true
1491
+ },
1492
+ {
1493
+ "name": "debtReserveFarmState",
1494
+ "writable": true,
1495
+ "optional": true
1496
+ },
1497
+ {
1498
+ "name": "farmsProgram"
1499
+ }
1500
+ ],
1501
+ "args": [
1502
+ {
1503
+ "name": "liquidityAmount",
1504
+ "type": "u64"
1505
+ },
1506
+ {
1507
+ "name": "minAcceptableReceivedLiquidityAmount",
1508
+ "type": "u64"
1509
+ },
1510
+ {
1511
+ "name": "maxAllowedLtvOverridePercent",
1512
+ "type": "u64"
1513
+ }
1514
+ ]
1515
+ },
1316
1516
  {
1317
1517
  "name": "lendingRepayObligationLiquidityV2",
1318
1518
  "discriminator": [
@@ -2227,12 +2427,6 @@ export type ExtKamino = {
2227
2427
  },
2228
2428
  {
2229
2429
  "name": "oracleConfigs"
2230
- },
2231
- {
2232
- "name": "reduceOnly"
2233
- },
2234
- {
2235
- "name": "anyLst"
2236
2430
  }
2237
2431
  ]
2238
2432
  }
@@ -3097,6 +3291,11 @@ export type ExtKamino = {
3097
3291
  "type": "u64",
3098
3292
  "value": "1"
3099
3293
  },
3294
+ {
3295
+ "name": "protoKaminoLendingPermLiquidate",
3296
+ "type": "u64",
3297
+ "value": "32"
3298
+ },
3100
3299
  {
3101
3300
  "name": "protoKaminoLendingPermRepay",
3102
3301
  "type": "u64",
@@ -800,12 +800,6 @@ export type ExtMarinade = {
800
800
  },
801
801
  {
802
802
  "name": "oracleConfigs";
803
- },
804
- {
805
- "name": "reduceOnly";
806
- },
807
- {
808
- "name": "anyLst";
809
803
  }
810
804
  ];
811
805
  };
@@ -800,12 +800,6 @@ export type ExtMarinade = {
800
800
  },
801
801
  {
802
802
  "name": "oracleConfigs"
803
- },
804
- {
805
- "name": "reduceOnly"
806
- },
807
- {
808
- "name": "anyLst"
809
803
  }
810
804
  ]
811
805
  }
@@ -286,12 +286,6 @@ export type ExtOffchain = {
286
286
  },
287
287
  {
288
288
  "name": "oracleConfigs";
289
- },
290
- {
291
- "name": "reduceOnly";
292
- },
293
- {
294
- "name": "anyLst";
295
289
  }
296
290
  ];
297
291
  };
@@ -472,12 +472,6 @@ export type ExtSpl = {
472
472
  },
473
473
  {
474
474
  "name": "oracleConfigs"
475
- },
476
- {
477
- "name": "reduceOnly"
478
- },
479
- {
480
- "name": "anyLst"
481
475
  }
482
476
  ]
483
477
  }
@@ -472,12 +472,6 @@ export type ExtSpl = {
472
472
  },
473
473
  {
474
474
  "name": "oracleConfigs";
475
- },
476
- {
477
- "name": "reduceOnly";
478
- },
479
- {
480
- "name": "anyLst";
481
475
  }
482
476
  ];
483
477
  };
@@ -472,12 +472,6 @@ export type ExtSpl = {
472
472
  },
473
473
  {
474
474
  "name": "oracleConfigs"
475
- },
476
- {
477
- "name": "reduceOnly"
478
- },
479
- {
480
- "name": "anyLst"
481
475
  }
482
476
  ]
483
477
  }
@@ -799,12 +799,6 @@ export type ExtStakePool = {
799
799
  },
800
800
  {
801
801
  "name": "oracleConfigs"
802
- },
803
- {
804
- "name": "reduceOnly"
805
- },
806
- {
807
- "name": "anyLst"
808
802
  }
809
803
  ]
810
804
  }
@@ -799,12 +799,6 @@ export type ExtStakePool = {
799
799
  },
800
800
  {
801
801
  "name": "oracleConfigs";
802
- },
803
- {
804
- "name": "reduceOnly";
805
- },
806
- {
807
- "name": "anyLst";
808
802
  }
809
803
  ];
810
804
  };
@@ -799,12 +799,6 @@ export type ExtStakePool = {
799
799
  },
800
800
  {
801
801
  "name": "oracleConfigs"
802
- },
803
- {
804
- "name": "reduceOnly"
805
- },
806
- {
807
- "name": "anyLst"
808
802
  }
809
803
  ]
810
804
  }
@@ -5008,12 +5008,6 @@ export type GlamMint = {
5008
5008
  },
5009
5009
  {
5010
5010
  "name": "oracleConfigs"
5011
- },
5012
- {
5013
- "name": "reduceOnly"
5014
- },
5015
- {
5016
- "name": "anyLst"
5017
5011
  }
5018
5012
  ]
5019
5013
  }
@@ -2985,229 +2985,6 @@ export type GlamMint = {
2985
2985
  ];
2986
2986
  "args": [];
2987
2987
  },
2988
- {
2989
- "name": "priceStakeAccounts";
2990
- "discriminator": [
2991
- 119,
2992
- 137,
2993
- 9,
2994
- 15,
2995
- 196,
2996
- 73,
2997
- 30,
2998
- 27
2999
- ];
3000
- "accounts": [
3001
- {
3002
- "name": "glamState";
3003
- "writable": true;
3004
- },
3005
- {
3006
- "name": "glamVault";
3007
- "pda": {
3008
- "seeds": [
3009
- {
3010
- "kind": "const";
3011
- "value": [
3012
- 118,
3013
- 97,
3014
- 117,
3015
- 108,
3016
- 116
3017
- ];
3018
- },
3019
- {
3020
- "kind": "account";
3021
- "path": "glamState";
3022
- }
3023
- ];
3024
- "program": {
3025
- "kind": "const";
3026
- "value": [
3027
- 227,
3028
- 199,
3029
- 235,
3030
- 230,
3031
- 176,
3032
- 132,
3033
- 243,
3034
- 117,
3035
- 43,
3036
- 131,
3037
- 173,
3038
- 18,
3039
- 78,
3040
- 255,
3041
- 26,
3042
- 50,
3043
- 209,
3044
- 135,
3045
- 86,
3046
- 219,
3047
- 140,
3048
- 126,
3049
- 61,
3050
- 255,
3051
- 0,
3052
- 218,
3053
- 252,
3054
- 224,
3055
- 172,
3056
- 8,
3057
- 223,
3058
- 207
3059
- ];
3060
- };
3061
- };
3062
- },
3063
- {
3064
- "name": "signer";
3065
- "writable": true;
3066
- "signer": true;
3067
- },
3068
- {
3069
- "name": "solUsdOracle";
3070
- },
3071
- {
3072
- "name": "baseAssetOracle";
3073
- },
3074
- {
3075
- "name": "integrationAuthority";
3076
- "pda": {
3077
- "seeds": [
3078
- {
3079
- "kind": "const";
3080
- "value": [
3081
- 105,
3082
- 110,
3083
- 116,
3084
- 101,
3085
- 103,
3086
- 114,
3087
- 97,
3088
- 116,
3089
- 105,
3090
- 111,
3091
- 110,
3092
- 45,
3093
- 97,
3094
- 117,
3095
- 116,
3096
- 104,
3097
- 111,
3098
- 114,
3099
- 105,
3100
- 116,
3101
- 121
3102
- ];
3103
- }
3104
- ];
3105
- };
3106
- },
3107
- {
3108
- "name": "glamConfig";
3109
- "pda": {
3110
- "seeds": [
3111
- {
3112
- "kind": "const";
3113
- "value": [
3114
- 103,
3115
- 108,
3116
- 111,
3117
- 98,
3118
- 97,
3119
- 108,
3120
- 45,
3121
- 99,
3122
- 111,
3123
- 110,
3124
- 102,
3125
- 105,
3126
- 103
3127
- ];
3128
- }
3129
- ];
3130
- "program": {
3131
- "kind": "const";
3132
- "value": [
3133
- 10,
3134
- 11,
3135
- 0,
3136
- 83,
3137
- 72,
3138
- 16,
3139
- 46,
3140
- 144,
3141
- 46,
3142
- 42,
3143
- 79,
3144
- 22,
3145
- 157,
3146
- 123,
3147
- 21,
3148
- 242,
3149
- 192,
3150
- 146,
3151
- 1,
3152
- 78,
3153
- 88,
3154
- 59,
3155
- 102,
3156
- 9,
3157
- 190,
3158
- 226,
3159
- 92,
3160
- 189,
3161
- 187,
3162
- 232,
3163
- 83,
3164
- 220
3165
- ];
3166
- };
3167
- };
3168
- },
3169
- {
3170
- "name": "glamProtocol";
3171
- "address": "GLAMpaME8wdTEzxtiYEAa5yD8fZbxZiz2hNtV58RZiEz";
3172
- },
3173
- {
3174
- "name": "eventAuthority";
3175
- "optional": true;
3176
- "pda": {
3177
- "seeds": [
3178
- {
3179
- "kind": "const";
3180
- "value": [
3181
- 95,
3182
- 95,
3183
- 101,
3184
- 118,
3185
- 101,
3186
- 110,
3187
- 116,
3188
- 95,
3189
- 97,
3190
- 117,
3191
- 116,
3192
- 104,
3193
- 111,
3194
- 114,
3195
- 105,
3196
- 116,
3197
- 121
3198
- ];
3199
- }
3200
- ];
3201
- };
3202
- },
3203
- {
3204
- "name": "eventProgram";
3205
- "optional": true;
3206
- "address": "GM1NtvvnSXUptTrMCqbogAdZJydZSNv98DoU5AZVLmGh";
3207
- }
3208
- ];
3209
- "args": [];
3210
- },
3211
2988
  {
3212
2989
  "name": "priceVaultTokens";
3213
2990
  "docs": [
@@ -5008,12 +4785,6 @@ export type GlamMint = {
5008
4785
  },
5009
4786
  {
5010
4787
  "name": "oracleConfigs";
5011
- },
5012
- {
5013
- "name": "reduceOnly";
5014
- },
5015
- {
5016
- "name": "anyLst";
5017
4788
  }
5018
4789
  ];
5019
4790
  };