@lavarage/sdk 7.1.2 → 7.2.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/index.d.mts +5 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.js +11 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -1
- package/dist/index.mjs.map +1 -1
- package/index.ts +11 -2
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -3598,7 +3598,11 @@ declare const splitPositionV2: (lavarageProgram: Program<Lavarage> | Program<Lav
|
|
|
3598
3598
|
nodeWallet: PublicKey;
|
|
3599
3599
|
interestRate: number;
|
|
3600
3600
|
collateralType: PublicKey;
|
|
3601
|
-
}>, quoteToken: PublicKey, propotionBps: number, computeBudgetMicroLamports?: number) => Promise<
|
|
3601
|
+
}>, quoteToken: PublicKey, propotionBps: number, computeBudgetMicroLamports?: number) => Promise<{
|
|
3602
|
+
transaction: VersionedTransaction;
|
|
3603
|
+
newPositionAddresses: string[];
|
|
3604
|
+
newPositionSeeds: string[];
|
|
3605
|
+
}>;
|
|
3602
3606
|
declare const mergePositionV2: (lavarageProgram: Program<Lavarage>, position1: ProgramAccount<{
|
|
3603
3607
|
pool: PublicKey;
|
|
3604
3608
|
seed: PublicKey;
|
package/dist/index.d.ts
CHANGED
|
@@ -3598,7 +3598,11 @@ declare const splitPositionV2: (lavarageProgram: Program<Lavarage> | Program<Lav
|
|
|
3598
3598
|
nodeWallet: PublicKey;
|
|
3599
3599
|
interestRate: number;
|
|
3600
3600
|
collateralType: PublicKey;
|
|
3601
|
-
}>, quoteToken: PublicKey, propotionBps: number, computeBudgetMicroLamports?: number) => Promise<
|
|
3601
|
+
}>, quoteToken: PublicKey, propotionBps: number, computeBudgetMicroLamports?: number) => Promise<{
|
|
3602
|
+
transaction: VersionedTransaction;
|
|
3603
|
+
newPositionAddresses: string[];
|
|
3604
|
+
newPositionSeeds: string[];
|
|
3605
|
+
}>;
|
|
3602
3606
|
declare const mergePositionV2: (lavarageProgram: Program<Lavarage>, position1: ProgramAccount<{
|
|
3603
3607
|
pool: PublicKey;
|
|
3604
3608
|
seed: PublicKey;
|
package/dist/index.js
CHANGED
|
@@ -5770,7 +5770,17 @@ var splitPositionV2 = (lavarageProgram, position, offer, quoteToken, propotionBp
|
|
|
5770
5770
|
instructions: allInstructions
|
|
5771
5771
|
}).compileToV0Message();
|
|
5772
5772
|
const tx = new import_web32.VersionedTransaction(messageV0);
|
|
5773
|
-
return
|
|
5773
|
+
return {
|
|
5774
|
+
transaction: tx,
|
|
5775
|
+
newPositionAddresses: [
|
|
5776
|
+
newPosition1AccountPDA.toBase58(),
|
|
5777
|
+
newPosition2AccountPDA.toBase58()
|
|
5778
|
+
],
|
|
5779
|
+
newPositionSeeds: [
|
|
5780
|
+
newPosition1Seed.toBase58(),
|
|
5781
|
+
newPosition2Seed.toBase58()
|
|
5782
|
+
]
|
|
5783
|
+
};
|
|
5774
5784
|
});
|
|
5775
5785
|
var mergePositionV2 = (lavarageProgram, position1, position2, offer, quoteToken, computeBudgetMicroLamports) => __async(void 0, null, function* () {
|
|
5776
5786
|
const positionAccountPDA1 = position1.publicKey;
|