@lavarage/sdk 7.5.19 → 7.5.21
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 +0 -10
- package/dist/index.d.ts +0 -10
- package/dist/index.js +2 -16
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -16
- package/dist/index.mjs.map +1 -1
- package/idl/lavaragev2.ts +0 -20
- package/index.ts +2 -6
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -3877,11 +3877,6 @@ var IDL3 = {
|
|
|
3877
3877
|
"isMut": true,
|
|
3878
3878
|
"isSigner": false
|
|
3879
3879
|
},
|
|
3880
|
-
{
|
|
3881
|
-
"name": "usersTokenAccount",
|
|
3882
|
-
"isMut": true,
|
|
3883
|
-
"isSigner": false
|
|
3884
|
-
},
|
|
3885
3880
|
{
|
|
3886
3881
|
"name": "collateralTokenProgram",
|
|
3887
3882
|
"isMut": false,
|
|
@@ -3987,11 +3982,6 @@ var IDL3 = {
|
|
|
3987
3982
|
"isMut": true,
|
|
3988
3983
|
"isSigner": false
|
|
3989
3984
|
},
|
|
3990
|
-
{
|
|
3991
|
-
"name": "usersTokenAccount",
|
|
3992
|
-
"isMut": true,
|
|
3993
|
-
"isSigner": false
|
|
3994
|
-
},
|
|
3995
3985
|
{
|
|
3996
3986
|
"name": "collateralTokenProgram",
|
|
3997
3987
|
"isMut": false,
|
|
@@ -5709,7 +5699,6 @@ var borrowV2 = (lavarageProgram, offer, marginSOL, leverage, randomSeed, quoteTo
|
|
|
5709
5699
|
collateralTokenProgram: tokenProgram,
|
|
5710
5700
|
associatedTokenProgram: ASSOCIATED_TOKEN_PROGRAM_ID,
|
|
5711
5701
|
collateralMint: offer.account.collateralType,
|
|
5712
|
-
usersTokenAccount: fromTokenAccount.account.address,
|
|
5713
5702
|
quoteMint: quoteToken,
|
|
5714
5703
|
feeRecipient: new PublicKey2("6JfTobDvwuwZxZP6FR5JPmjdvQ4h4MovkEVH2FPsMSrF")
|
|
5715
5704
|
}).remainingAccounts(
|
|
@@ -5761,7 +5750,6 @@ var borrowV2 = (lavarageProgram, offer, marginSOL, leverage, randomSeed, quoteTo
|
|
|
5761
5750
|
collateralTokenProgram: tokenProgram,
|
|
5762
5751
|
associatedTokenProgram: ASSOCIATED_TOKEN_PROGRAM_ID,
|
|
5763
5752
|
collateralMint: offer.account.collateralType,
|
|
5764
|
-
usersTokenAccount: fromTokenAccount.account.address,
|
|
5765
5753
|
quoteMint: quoteToken,
|
|
5766
5754
|
feeRecipient: new PublicKey2("6JfTobDvwuwZxZP6FR5JPmjdvQ4h4MovkEVH2FPsMSrF")
|
|
5767
5755
|
}).remainingAccounts(
|
|
@@ -6236,7 +6224,6 @@ var openTradeV2 = (lavarageProgram, offer, jupInstruction, marginSOL, leverage,
|
|
|
6236
6224
|
collateralTokenProgram: tokenProgram,
|
|
6237
6225
|
associatedTokenProgram: ASSOCIATED_TOKEN_PROGRAM_ID,
|
|
6238
6226
|
collateralMint: offer.account.collateralType,
|
|
6239
|
-
usersTokenAccount: fromTokenAccount.account.address,
|
|
6240
6227
|
quoteMint: quoteToken,
|
|
6241
6228
|
feeRecipient: new PublicKey2("6JfTobDvwuwZxZP6FR5JPmjdvQ4h4MovkEVH2FPsMSrF")
|
|
6242
6229
|
}).remainingAccounts(
|
|
@@ -6288,7 +6275,6 @@ var openTradeV2 = (lavarageProgram, offer, jupInstruction, marginSOL, leverage,
|
|
|
6288
6275
|
collateralTokenProgram: tokenProgram,
|
|
6289
6276
|
associatedTokenProgram: ASSOCIATED_TOKEN_PROGRAM_ID,
|
|
6290
6277
|
collateralMint: offer.account.collateralType,
|
|
6291
|
-
usersTokenAccount: fromTokenAccount.account.address,
|
|
6292
6278
|
quoteMint: quoteToken,
|
|
6293
6279
|
feeRecipient: new PublicKey2("6JfTobDvwuwZxZP6FR5JPmjdvQ4h4MovkEVH2FPsMSrF")
|
|
6294
6280
|
}).remainingAccounts(
|
|
@@ -6325,7 +6311,7 @@ var openTradeV2 = (lavarageProgram, offer, jupInstruction, marginSOL, leverage,
|
|
|
6325
6311
|
});
|
|
6326
6312
|
if (splitTransactions) {
|
|
6327
6313
|
const setUpInstructions = [
|
|
6328
|
-
fromTokenAccount.instruction
|
|
6314
|
+
// fromTokenAccount.instruction!,
|
|
6329
6315
|
// toTokenAccount.instruction!,
|
|
6330
6316
|
partnerFeeRecipientVaultCreateIx,
|
|
6331
6317
|
partnerFeeRecipientTokenAccountCreateIx,
|
|
@@ -6353,7 +6339,7 @@ var openTradeV2 = (lavarageProgram, offer, jupInstruction, marginSOL, leverage,
|
|
|
6353
6339
|
return [tx2, tx3];
|
|
6354
6340
|
}
|
|
6355
6341
|
const allInstructions = [
|
|
6356
|
-
fromTokenAccount.instruction
|
|
6342
|
+
// fromTokenAccount.instruction!,
|
|
6357
6343
|
// toTokenAccount.instruction!,
|
|
6358
6344
|
partnerFeeRecipientVaultCreateIx,
|
|
6359
6345
|
partnerFeeRecipientTokenAccountCreateIx,
|