@glamsystems/glam-sdk 0.1.18 → 0.1.19
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/index.cjs.js +4 -8
- package/index.esm.js +4 -8
- package/package.json +1 -1
- package/src/client/kamino.d.ts +2 -2
package/index.cjs.js
CHANGED
|
@@ -16121,8 +16121,8 @@ class KaminoLendingClient {
|
|
|
16121
16121
|
const liquidityMint = new web3_js.PublicKey(data.subarray(128, 160));
|
|
16122
16122
|
const parsed = {
|
|
16123
16123
|
address: reserves[i],
|
|
16124
|
-
farmCollateral: farmCollateral.equals(web3_js.PublicKey.default) ?
|
|
16125
|
-
farmDebt: farmDebt.equals(web3_js.PublicKey.default) ?
|
|
16124
|
+
farmCollateral: farmCollateral.equals(web3_js.PublicKey.default) ? null : farmCollateral,
|
|
16125
|
+
farmDebt: farmDebt.equals(web3_js.PublicKey.default) ? null : farmDebt,
|
|
16126
16126
|
liquidityMint,
|
|
16127
16127
|
...this.reservePdas(market, liquidityMint)
|
|
16128
16128
|
};
|
|
@@ -16159,8 +16159,8 @@ class KaminoLendingClient {
|
|
|
16159
16159
|
const farmDebt = new web3_js.PublicKey(data.subarray(96, 128));
|
|
16160
16160
|
const parsed = {
|
|
16161
16161
|
address: account.pubkey,
|
|
16162
|
-
farmCollateral: farmCollateral.equals(web3_js.PublicKey.default) ?
|
|
16163
|
-
farmDebt: farmDebt.equals(web3_js.PublicKey.default) ?
|
|
16162
|
+
farmCollateral: farmCollateral.equals(web3_js.PublicKey.default) ? null : farmCollateral,
|
|
16163
|
+
farmDebt: farmDebt.equals(web3_js.PublicKey.default) ? null : farmDebt,
|
|
16164
16164
|
liquidityMint: asset,
|
|
16165
16165
|
...this.reservePdas(market, asset)
|
|
16166
16166
|
};
|
|
@@ -16265,7 +16265,6 @@ class KaminoLendingClient {
|
|
|
16265
16265
|
liquidityTokenProgram: splToken.TOKEN_PROGRAM_ID,
|
|
16266
16266
|
instructionSysvarAccount: web3_js.SYSVAR_INSTRUCTIONS_PUBKEY,
|
|
16267
16267
|
obligationFarmUserState: obligationFarm,
|
|
16268
|
-
// @ts-ignore
|
|
16269
16268
|
reserveFarmState: depositReserve.farmCollateral,
|
|
16270
16269
|
farmsProgram: KAMINO_FARM_PROGRAM
|
|
16271
16270
|
}).preInstructions(preInstructions).postInstructions(postInstructions).transaction();
|
|
@@ -16349,7 +16348,6 @@ class KaminoLendingClient {
|
|
|
16349
16348
|
liquidityTokenProgram: splToken.TOKEN_PROGRAM_ID,
|
|
16350
16349
|
instructionSysvarAccount: web3_js.SYSVAR_INSTRUCTIONS_PUBKEY,
|
|
16351
16350
|
obligationFarmUserState: obligationFarm,
|
|
16352
|
-
// @ts-ignore
|
|
16353
16351
|
reserveFarmState: withdrawReserve.farmCollateral,
|
|
16354
16352
|
farmsProgram: KAMINO_FARM_PROGRAM
|
|
16355
16353
|
}).instruction();
|
|
@@ -16440,7 +16438,6 @@ class KaminoLendingClient {
|
|
|
16440
16438
|
instructionSysvarAccount: web3_js.SYSVAR_INSTRUCTIONS_PUBKEY,
|
|
16441
16439
|
tokenProgram: splToken.TOKEN_PROGRAM_ID,
|
|
16442
16440
|
obligationFarmUserState: obligationFarm,
|
|
16443
|
-
// @ts-ignore
|
|
16444
16441
|
reserveFarmState: borrowReserve.farmDebt,
|
|
16445
16442
|
farmsProgram: KAMINO_FARM_PROGRAM
|
|
16446
16443
|
}).instruction();
|
|
@@ -16514,7 +16511,6 @@ class KaminoLendingClient {
|
|
|
16514
16511
|
instructionSysvarAccount: web3_js.SYSVAR_INSTRUCTIONS_PUBKEY,
|
|
16515
16512
|
tokenProgram: splToken.TOKEN_PROGRAM_ID,
|
|
16516
16513
|
obligationFarmUserState: obligationFarm,
|
|
16517
|
-
// @ts-ignore
|
|
16518
16514
|
reserveFarmState: repayReserve.farmDebt,
|
|
16519
16515
|
farmsProgram: KAMINO_FARM_PROGRAM
|
|
16520
16516
|
}).instruction();
|
package/index.esm.js
CHANGED
|
@@ -16100,8 +16100,8 @@ class KaminoLendingClient {
|
|
|
16100
16100
|
const liquidityMint = new PublicKey(data.subarray(128, 160));
|
|
16101
16101
|
const parsed = {
|
|
16102
16102
|
address: reserves[i],
|
|
16103
|
-
farmCollateral: farmCollateral.equals(PublicKey.default) ?
|
|
16104
|
-
farmDebt: farmDebt.equals(PublicKey.default) ?
|
|
16103
|
+
farmCollateral: farmCollateral.equals(PublicKey.default) ? null : farmCollateral,
|
|
16104
|
+
farmDebt: farmDebt.equals(PublicKey.default) ? null : farmDebt,
|
|
16105
16105
|
liquidityMint,
|
|
16106
16106
|
...this.reservePdas(market, liquidityMint)
|
|
16107
16107
|
};
|
|
@@ -16138,8 +16138,8 @@ class KaminoLendingClient {
|
|
|
16138
16138
|
const farmDebt = new PublicKey(data.subarray(96, 128));
|
|
16139
16139
|
const parsed = {
|
|
16140
16140
|
address: account.pubkey,
|
|
16141
|
-
farmCollateral: farmCollateral.equals(PublicKey.default) ?
|
|
16142
|
-
farmDebt: farmDebt.equals(PublicKey.default) ?
|
|
16141
|
+
farmCollateral: farmCollateral.equals(PublicKey.default) ? null : farmCollateral,
|
|
16142
|
+
farmDebt: farmDebt.equals(PublicKey.default) ? null : farmDebt,
|
|
16143
16143
|
liquidityMint: asset,
|
|
16144
16144
|
...this.reservePdas(market, asset)
|
|
16145
16145
|
};
|
|
@@ -16244,7 +16244,6 @@ class KaminoLendingClient {
|
|
|
16244
16244
|
liquidityTokenProgram: TOKEN_PROGRAM_ID,
|
|
16245
16245
|
instructionSysvarAccount: SYSVAR_INSTRUCTIONS_PUBKEY,
|
|
16246
16246
|
obligationFarmUserState: obligationFarm,
|
|
16247
|
-
// @ts-ignore
|
|
16248
16247
|
reserveFarmState: depositReserve.farmCollateral,
|
|
16249
16248
|
farmsProgram: KAMINO_FARM_PROGRAM
|
|
16250
16249
|
}).preInstructions(preInstructions).postInstructions(postInstructions).transaction();
|
|
@@ -16328,7 +16327,6 @@ class KaminoLendingClient {
|
|
|
16328
16327
|
liquidityTokenProgram: TOKEN_PROGRAM_ID,
|
|
16329
16328
|
instructionSysvarAccount: SYSVAR_INSTRUCTIONS_PUBKEY,
|
|
16330
16329
|
obligationFarmUserState: obligationFarm,
|
|
16331
|
-
// @ts-ignore
|
|
16332
16330
|
reserveFarmState: withdrawReserve.farmCollateral,
|
|
16333
16331
|
farmsProgram: KAMINO_FARM_PROGRAM
|
|
16334
16332
|
}).instruction();
|
|
@@ -16419,7 +16417,6 @@ class KaminoLendingClient {
|
|
|
16419
16417
|
instructionSysvarAccount: SYSVAR_INSTRUCTIONS_PUBKEY,
|
|
16420
16418
|
tokenProgram: TOKEN_PROGRAM_ID,
|
|
16421
16419
|
obligationFarmUserState: obligationFarm,
|
|
16422
|
-
// @ts-ignore
|
|
16423
16420
|
reserveFarmState: borrowReserve.farmDebt,
|
|
16424
16421
|
farmsProgram: KAMINO_FARM_PROGRAM
|
|
16425
16422
|
}).instruction();
|
|
@@ -16493,7 +16490,6 @@ class KaminoLendingClient {
|
|
|
16493
16490
|
instructionSysvarAccount: SYSVAR_INSTRUCTIONS_PUBKEY,
|
|
16494
16491
|
tokenProgram: TOKEN_PROGRAM_ID,
|
|
16495
16492
|
obligationFarmUserState: obligationFarm,
|
|
16496
|
-
// @ts-ignore
|
|
16497
16493
|
reserveFarmState: repayReserve.farmDebt,
|
|
16498
16494
|
farmsProgram: KAMINO_FARM_PROGRAM
|
|
16499
16495
|
}).instruction();
|
package/package.json
CHANGED
package/src/client/kamino.d.ts
CHANGED
|
@@ -3,8 +3,8 @@ import { PublicKey, VersionedTransaction, TransactionSignature, TransactionInstr
|
|
|
3
3
|
import { BaseClient, TxOptions } from "./base";
|
|
4
4
|
interface ParsedReserve {
|
|
5
5
|
address: PublicKey;
|
|
6
|
-
farmCollateral
|
|
7
|
-
farmDebt
|
|
6
|
+
farmCollateral: PublicKey | null;
|
|
7
|
+
farmDebt: PublicKey | null;
|
|
8
8
|
liquidityMint: PublicKey;
|
|
9
9
|
liquiditySupplyVault: PublicKey;
|
|
10
10
|
collateralMint: PublicKey;
|