@glamsystems/glam-sdk 1.0.12-alpha.1 → 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 (53) hide show
  1. package/index.cjs.js +1307 -2196
  2. package/index.esm.js +1305 -2197
  3. package/package.json +1 -1
  4. package/src/client/base.d.ts +1 -1
  5. package/src/client/fees.d.ts +0 -3
  6. package/src/client/jupiter.d.ts +3 -0
  7. package/src/client/kamino/lending.d.ts +6 -0
  8. package/src/client/stake.d.ts +1 -1
  9. package/src/client/state.d.ts +0 -2
  10. package/src/deser/driftLayouts.d.ts +4 -0
  11. package/src/deser/integrationPolicies.d.ts +3 -3
  12. package/src/error.d.ts +23 -2
  13. package/src/glamExports.d.ts +29 -0
  14. package/src/models/state.d.ts +0 -4
  15. package/src/react/query-keys.d.ts +1 -0
  16. package/src/utils/transaction.d.ts +5 -2
  17. package/target/idl/ext_cctp.json +0 -6
  18. package/target/idl/ext_drift-staging.json +0 -6
  19. package/target/idl/ext_drift.json +0 -6
  20. package/target/idl/ext_kamino-staging.json +313 -6
  21. package/target/idl/ext_kamino.json +205 -6
  22. package/target/idl/ext_marinade.json +0 -6
  23. package/target/idl/ext_spl-staging.json +0 -6
  24. package/target/idl/ext_spl.json +0 -6
  25. package/target/idl/ext_stake_pool-staging.json +0 -6
  26. package/target/idl/ext_stake_pool.json +0 -6
  27. package/target/idl/glam_mint-staging.json +0 -6
  28. package/target/idl/glam_mint.json +0 -229
  29. package/target/idl/glam_protocol-staging.json +0 -271
  30. package/target/idl/glam_protocol.json +129 -1086
  31. package/target/types/ext_cctp.d.ts +0 -6
  32. package/target/types/ext_cctp.ts +0 -6
  33. package/target/types/ext_drift-staging.ts +0 -6
  34. package/target/types/ext_drift.d.ts +0 -6
  35. package/target/types/ext_drift.ts +0 -6
  36. package/target/types/ext_kamino-staging.ts +313 -6
  37. package/target/types/ext_kamino.d.ts +205 -6
  38. package/target/types/ext_kamino.ts +205 -6
  39. package/target/types/ext_marinade.d.ts +0 -6
  40. package/target/types/ext_marinade.ts +0 -6
  41. package/target/types/ext_offchain.d.ts +0 -6
  42. package/target/types/ext_spl-staging.ts +0 -6
  43. package/target/types/ext_spl.d.ts +0 -6
  44. package/target/types/ext_spl.ts +0 -6
  45. package/target/types/ext_stake_pool-staging.ts +0 -6
  46. package/target/types/ext_stake_pool.d.ts +0 -6
  47. package/target/types/ext_stake_pool.ts +0 -6
  48. package/target/types/glam_mint-staging.ts +0 -6
  49. package/target/types/glam_mint.d.ts +0 -229
  50. package/target/types/glam_mint.ts +0 -229
  51. package/target/types/glam_protocol-staging.ts +0 -271
  52. package/target/types/glam_protocol.d.ts +129 -1086
  53. package/target/types/glam_protocol.ts +128 -1085
@@ -1307,6 +1307,206 @@
1307
1307
  }
1308
1308
  ]
1309
1309
  },
1310
+ {
1311
+ "name": "lending_liquidate_obligation_and_redeem_reserve_collateral_v2",
1312
+ "discriminator": [
1313
+ 179,
1314
+ 45,
1315
+ 146,
1316
+ 167,
1317
+ 246,
1318
+ 239,
1319
+ 18,
1320
+ 242
1321
+ ],
1322
+ "accounts": [
1323
+ {
1324
+ "name": "glam_state",
1325
+ "writable": true
1326
+ },
1327
+ {
1328
+ "name": "glam_vault",
1329
+ "writable": true,
1330
+ "pda": {
1331
+ "seeds": [
1332
+ {
1333
+ "kind": "const",
1334
+ "value": [
1335
+ 118,
1336
+ 97,
1337
+ 117,
1338
+ 108,
1339
+ 116
1340
+ ]
1341
+ },
1342
+ {
1343
+ "kind": "account",
1344
+ "path": "glam_state"
1345
+ }
1346
+ ],
1347
+ "program": {
1348
+ "kind": "account",
1349
+ "path": "glam_protocol_program"
1350
+ }
1351
+ }
1352
+ },
1353
+ {
1354
+ "name": "glam_signer",
1355
+ "writable": true,
1356
+ "signer": true
1357
+ },
1358
+ {
1359
+ "name": "integration_authority",
1360
+ "pda": {
1361
+ "seeds": [
1362
+ {
1363
+ "kind": "const",
1364
+ "value": [
1365
+ 105,
1366
+ 110,
1367
+ 116,
1368
+ 101,
1369
+ 103,
1370
+ 114,
1371
+ 97,
1372
+ 116,
1373
+ 105,
1374
+ 111,
1375
+ 110,
1376
+ 45,
1377
+ 97,
1378
+ 117,
1379
+ 116,
1380
+ 104,
1381
+ 111,
1382
+ 114,
1383
+ 105,
1384
+ 116,
1385
+ 121
1386
+ ]
1387
+ }
1388
+ ]
1389
+ }
1390
+ },
1391
+ {
1392
+ "name": "cpi_program",
1393
+ "address": "KLend2g3cP87fffoy8q1mQqGKjrxjC8boSyAYavgmjD"
1394
+ },
1395
+ {
1396
+ "name": "glam_protocol_program",
1397
+ "address": "GLAMpaME8wdTEzxtiYEAa5yD8fZbxZiz2hNtV58RZiEz"
1398
+ },
1399
+ {
1400
+ "name": "system_program",
1401
+ "address": "11111111111111111111111111111111"
1402
+ },
1403
+ {
1404
+ "name": "obligation",
1405
+ "writable": true
1406
+ },
1407
+ {
1408
+ "name": "lending_market"
1409
+ },
1410
+ {
1411
+ "name": "lending_market_authority"
1412
+ },
1413
+ {
1414
+ "name": "repay_reserve",
1415
+ "writable": true
1416
+ },
1417
+ {
1418
+ "name": "repay_reserve_liquidity_mint"
1419
+ },
1420
+ {
1421
+ "name": "repay_reserve_liquidity_supply",
1422
+ "writable": true
1423
+ },
1424
+ {
1425
+ "name": "withdraw_reserve",
1426
+ "writable": true
1427
+ },
1428
+ {
1429
+ "name": "withdraw_reserve_liquidity_mint"
1430
+ },
1431
+ {
1432
+ "name": "withdraw_reserve_collateral_mint",
1433
+ "writable": true
1434
+ },
1435
+ {
1436
+ "name": "withdraw_reserve_collateral_supply",
1437
+ "writable": true
1438
+ },
1439
+ {
1440
+ "name": "withdraw_reserve_liquidity_supply",
1441
+ "writable": true
1442
+ },
1443
+ {
1444
+ "name": "withdraw_reserve_liquidity_fee_receiver",
1445
+ "writable": true
1446
+ },
1447
+ {
1448
+ "name": "user_source_liquidity",
1449
+ "writable": true
1450
+ },
1451
+ {
1452
+ "name": "user_destination_collateral",
1453
+ "writable": true
1454
+ },
1455
+ {
1456
+ "name": "user_destination_liquidity",
1457
+ "writable": true
1458
+ },
1459
+ {
1460
+ "name": "collateral_token_program"
1461
+ },
1462
+ {
1463
+ "name": "repay_liquidity_token_program"
1464
+ },
1465
+ {
1466
+ "name": "withdraw_liquidity_token_program"
1467
+ },
1468
+ {
1469
+ "name": "instruction_sysvar_account"
1470
+ },
1471
+ {
1472
+ "name": "collateral_obligation_farm_user_state",
1473
+ "writable": true,
1474
+ "optional": true
1475
+ },
1476
+ {
1477
+ "name": "collateral_reserve_farm_state",
1478
+ "writable": true,
1479
+ "optional": true
1480
+ },
1481
+ {
1482
+ "name": "debt_obligation_farm_user_state",
1483
+ "writable": true,
1484
+ "optional": true
1485
+ },
1486
+ {
1487
+ "name": "debt_reserve_farm_state",
1488
+ "writable": true,
1489
+ "optional": true
1490
+ },
1491
+ {
1492
+ "name": "farms_program"
1493
+ }
1494
+ ],
1495
+ "args": [
1496
+ {
1497
+ "name": "liquidity_amount",
1498
+ "type": "u64"
1499
+ },
1500
+ {
1501
+ "name": "min_acceptable_received_liquidity_amount",
1502
+ "type": "u64"
1503
+ },
1504
+ {
1505
+ "name": "max_allowed_ltv_override_percent",
1506
+ "type": "u64"
1507
+ }
1508
+ ]
1509
+ },
1310
1510
  {
1311
1511
  "name": "lending_repay_obligation_liquidity_v2",
1312
1512
  "discriminator": [
@@ -2221,12 +2421,6 @@
2221
2421
  },
2222
2422
  {
2223
2423
  "name": "OracleConfigs"
2224
- },
2225
- {
2226
- "name": "ReduceOnly"
2227
- },
2228
- {
2229
- "name": "AnyLst"
2230
2424
  }
2231
2425
  ]
2232
2426
  }
@@ -3091,6 +3285,11 @@
3091
3285
  "type": "u64",
3092
3286
  "value": "1"
3093
3287
  },
3288
+ {
3289
+ "name": "PROTO_KAMINO_LENDING_PERM_LIQUIDATE",
3290
+ "type": "u64",
3291
+ "value": "32"
3292
+ },
3094
3293
  {
3095
3294
  "name": "PROTO_KAMINO_LENDING_PERM_REPAY",
3096
3295
  "type": "u64",
@@ -794,12 +794,6 @@
794
794
  },
795
795
  {
796
796
  "name": "OracleConfigs"
797
- },
798
- {
799
- "name": "ReduceOnly"
800
- },
801
- {
802
- "name": "AnyLst"
803
797
  }
804
798
  ]
805
799
  }
@@ -466,12 +466,6 @@
466
466
  },
467
467
  {
468
468
  "name": "OracleConfigs"
469
- },
470
- {
471
- "name": "ReduceOnly"
472
- },
473
- {
474
- "name": "AnyLst"
475
469
  }
476
470
  ]
477
471
  }
@@ -466,12 +466,6 @@
466
466
  },
467
467
  {
468
468
  "name": "OracleConfigs"
469
- },
470
- {
471
- "name": "ReduceOnly"
472
- },
473
- {
474
- "name": "AnyLst"
475
469
  }
476
470
  ]
477
471
  }
@@ -793,12 +793,6 @@
793
793
  },
794
794
  {
795
795
  "name": "OracleConfigs"
796
- },
797
- {
798
- "name": "ReduceOnly"
799
- },
800
- {
801
- "name": "AnyLst"
802
796
  }
803
797
  ]
804
798
  }
@@ -793,12 +793,6 @@
793
793
  },
794
794
  {
795
795
  "name": "OracleConfigs"
796
- },
797
- {
798
- "name": "ReduceOnly"
799
- },
800
- {
801
- "name": "AnyLst"
802
796
  }
803
797
  ]
804
798
  }
@@ -5002,12 +5002,6 @@
5002
5002
  },
5003
5003
  {
5004
5004
  "name": "OracleConfigs"
5005
- },
5006
- {
5007
- "name": "ReduceOnly"
5008
- },
5009
- {
5010
- "name": "AnyLst"
5011
5005
  }
5012
5006
  ]
5013
5007
  }
@@ -2979,229 +2979,6 @@
2979
2979
  ],
2980
2980
  "args": []
2981
2981
  },
2982
- {
2983
- "name": "price_stake_accounts",
2984
- "discriminator": [
2985
- 119,
2986
- 137,
2987
- 9,
2988
- 15,
2989
- 196,
2990
- 73,
2991
- 30,
2992
- 27
2993
- ],
2994
- "accounts": [
2995
- {
2996
- "name": "glam_state",
2997
- "writable": true
2998
- },
2999
- {
3000
- "name": "glam_vault",
3001
- "pda": {
3002
- "seeds": [
3003
- {
3004
- "kind": "const",
3005
- "value": [
3006
- 118,
3007
- 97,
3008
- 117,
3009
- 108,
3010
- 116
3011
- ]
3012
- },
3013
- {
3014
- "kind": "account",
3015
- "path": "glam_state"
3016
- }
3017
- ],
3018
- "program": {
3019
- "kind": "const",
3020
- "value": [
3021
- 227,
3022
- 199,
3023
- 235,
3024
- 230,
3025
- 176,
3026
- 132,
3027
- 243,
3028
- 117,
3029
- 43,
3030
- 131,
3031
- 173,
3032
- 18,
3033
- 78,
3034
- 255,
3035
- 26,
3036
- 50,
3037
- 209,
3038
- 135,
3039
- 86,
3040
- 219,
3041
- 140,
3042
- 126,
3043
- 61,
3044
- 255,
3045
- 0,
3046
- 218,
3047
- 252,
3048
- 224,
3049
- 172,
3050
- 8,
3051
- 223,
3052
- 207
3053
- ]
3054
- }
3055
- }
3056
- },
3057
- {
3058
- "name": "signer",
3059
- "writable": true,
3060
- "signer": true
3061
- },
3062
- {
3063
- "name": "sol_usd_oracle"
3064
- },
3065
- {
3066
- "name": "base_asset_oracle"
3067
- },
3068
- {
3069
- "name": "integration_authority",
3070
- "pda": {
3071
- "seeds": [
3072
- {
3073
- "kind": "const",
3074
- "value": [
3075
- 105,
3076
- 110,
3077
- 116,
3078
- 101,
3079
- 103,
3080
- 114,
3081
- 97,
3082
- 116,
3083
- 105,
3084
- 111,
3085
- 110,
3086
- 45,
3087
- 97,
3088
- 117,
3089
- 116,
3090
- 104,
3091
- 111,
3092
- 114,
3093
- 105,
3094
- 116,
3095
- 121
3096
- ]
3097
- }
3098
- ]
3099
- }
3100
- },
3101
- {
3102
- "name": "glam_config",
3103
- "pda": {
3104
- "seeds": [
3105
- {
3106
- "kind": "const",
3107
- "value": [
3108
- 103,
3109
- 108,
3110
- 111,
3111
- 98,
3112
- 97,
3113
- 108,
3114
- 45,
3115
- 99,
3116
- 111,
3117
- 110,
3118
- 102,
3119
- 105,
3120
- 103
3121
- ]
3122
- }
3123
- ],
3124
- "program": {
3125
- "kind": "const",
3126
- "value": [
3127
- 10,
3128
- 11,
3129
- 0,
3130
- 83,
3131
- 72,
3132
- 16,
3133
- 46,
3134
- 144,
3135
- 46,
3136
- 42,
3137
- 79,
3138
- 22,
3139
- 157,
3140
- 123,
3141
- 21,
3142
- 242,
3143
- 192,
3144
- 146,
3145
- 1,
3146
- 78,
3147
- 88,
3148
- 59,
3149
- 102,
3150
- 9,
3151
- 190,
3152
- 226,
3153
- 92,
3154
- 189,
3155
- 187,
3156
- 232,
3157
- 83,
3158
- 220
3159
- ]
3160
- }
3161
- }
3162
- },
3163
- {
3164
- "name": "glam_protocol",
3165
- "address": "GLAMpaME8wdTEzxtiYEAa5yD8fZbxZiz2hNtV58RZiEz"
3166
- },
3167
- {
3168
- "name": "event_authority",
3169
- "optional": true,
3170
- "pda": {
3171
- "seeds": [
3172
- {
3173
- "kind": "const",
3174
- "value": [
3175
- 95,
3176
- 95,
3177
- 101,
3178
- 118,
3179
- 101,
3180
- 110,
3181
- 116,
3182
- 95,
3183
- 97,
3184
- 117,
3185
- 116,
3186
- 104,
3187
- 111,
3188
- 114,
3189
- 105,
3190
- 116,
3191
- 121
3192
- ]
3193
- }
3194
- ]
3195
- }
3196
- },
3197
- {
3198
- "name": "event_program",
3199
- "optional": true,
3200
- "address": "GM1NtvvnSXUptTrMCqbogAdZJydZSNv98DoU5AZVLmGh"
3201
- }
3202
- ],
3203
- "args": []
3204
- },
3205
2982
  {
3206
2983
  "name": "price_vault_tokens",
3207
2984
  "docs": [
@@ -5002,12 +4779,6 @@
5002
4779
  },
5003
4780
  {
5004
4781
  "name": "OracleConfigs"
5005
- },
5006
- {
5007
- "name": "ReduceOnly"
5008
- },
5009
- {
5010
- "name": "AnyLst"
5011
4782
  }
5012
4783
  ]
5013
4784
  }