@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/idl/lavaragev2.ts
CHANGED
|
@@ -433,11 +433,6 @@ export type Lavarage = {
|
|
|
433
433
|
"isMut": true,
|
|
434
434
|
"isSigner": false
|
|
435
435
|
},
|
|
436
|
-
{
|
|
437
|
-
"name": "usersTokenAccount",
|
|
438
|
-
"isMut": true,
|
|
439
|
-
"isSigner": false
|
|
440
|
-
},
|
|
441
436
|
{
|
|
442
437
|
"name": "collateralTokenProgram",
|
|
443
438
|
"isMut": false,
|
|
@@ -543,11 +538,6 @@ export type Lavarage = {
|
|
|
543
538
|
"isMut": true,
|
|
544
539
|
"isSigner": false
|
|
545
540
|
},
|
|
546
|
-
{
|
|
547
|
-
"name": "usersTokenAccount",
|
|
548
|
-
"isMut": true,
|
|
549
|
-
"isSigner": false
|
|
550
|
-
},
|
|
551
541
|
{
|
|
552
542
|
"name": "collateralTokenProgram",
|
|
553
543
|
"isMut": false,
|
|
@@ -2339,11 +2329,6 @@ export const IDL: Lavarage = {
|
|
|
2339
2329
|
"isMut": true,
|
|
2340
2330
|
"isSigner": false
|
|
2341
2331
|
},
|
|
2342
|
-
{
|
|
2343
|
-
"name": "usersTokenAccount",
|
|
2344
|
-
"isMut": true,
|
|
2345
|
-
"isSigner": false
|
|
2346
|
-
},
|
|
2347
2332
|
{
|
|
2348
2333
|
"name": "collateralTokenProgram",
|
|
2349
2334
|
"isMut": false,
|
|
@@ -2449,11 +2434,6 @@ export const IDL: Lavarage = {
|
|
|
2449
2434
|
"isMut": true,
|
|
2450
2435
|
"isSigner": false
|
|
2451
2436
|
},
|
|
2452
|
-
{
|
|
2453
|
-
"name": "usersTokenAccount",
|
|
2454
|
-
"isMut": true,
|
|
2455
|
-
"isSigner": false
|
|
2456
|
-
},
|
|
2457
2437
|
{
|
|
2458
2438
|
"name": "collateralTokenProgram",
|
|
2459
2439
|
"isMut": false,
|
package/index.ts
CHANGED
|
@@ -746,7 +746,6 @@ export const borrowV2 = async (
|
|
|
746
746
|
collateralTokenProgram: tokenProgram,
|
|
747
747
|
associatedTokenProgram: ASSOCIATED_TOKEN_PROGRAM_ID,
|
|
748
748
|
collateralMint: offer.account.collateralType,
|
|
749
|
-
usersTokenAccount: fromTokenAccount.account!.address,
|
|
750
749
|
quoteMint: quoteToken,
|
|
751
750
|
feeRecipient: new PublicKey("6JfTobDvwuwZxZP6FR5JPmjdvQ4h4MovkEVH2FPsMSrF"),
|
|
752
751
|
})
|
|
@@ -804,7 +803,6 @@ export const borrowV2 = async (
|
|
|
804
803
|
collateralTokenProgram: tokenProgram,
|
|
805
804
|
associatedTokenProgram: ASSOCIATED_TOKEN_PROGRAM_ID,
|
|
806
805
|
collateralMint: offer.account.collateralType,
|
|
807
|
-
usersTokenAccount: fromTokenAccount.account!.address,
|
|
808
806
|
quoteMint: quoteToken,
|
|
809
807
|
feeRecipient: new PublicKey("6JfTobDvwuwZxZP6FR5JPmjdvQ4h4MovkEVH2FPsMSrF"),
|
|
810
808
|
})
|
|
@@ -1566,7 +1564,6 @@ export const openTradeV2 = async (
|
|
|
1566
1564
|
collateralTokenProgram: tokenProgram,
|
|
1567
1565
|
associatedTokenProgram: ASSOCIATED_TOKEN_PROGRAM_ID,
|
|
1568
1566
|
collateralMint: offer.account.collateralType,
|
|
1569
|
-
usersTokenAccount: fromTokenAccount.account!.address,
|
|
1570
1567
|
quoteMint: quoteToken,
|
|
1571
1568
|
feeRecipient: new PublicKey("6JfTobDvwuwZxZP6FR5JPmjdvQ4h4MovkEVH2FPsMSrF"),
|
|
1572
1569
|
})
|
|
@@ -1624,7 +1621,6 @@ export const openTradeV2 = async (
|
|
|
1624
1621
|
collateralTokenProgram: tokenProgram,
|
|
1625
1622
|
associatedTokenProgram: ASSOCIATED_TOKEN_PROGRAM_ID,
|
|
1626
1623
|
collateralMint: offer.account.collateralType,
|
|
1627
|
-
usersTokenAccount: fromTokenAccount.account!.address,
|
|
1628
1624
|
quoteMint: quoteToken,
|
|
1629
1625
|
feeRecipient: new PublicKey("6JfTobDvwuwZxZP6FR5JPmjdvQ4h4MovkEVH2FPsMSrF"),
|
|
1630
1626
|
})
|
|
@@ -1672,7 +1668,7 @@ export const openTradeV2 = async (
|
|
|
1672
1668
|
|
|
1673
1669
|
if (splitTransactions) {
|
|
1674
1670
|
const setUpInstructions = [
|
|
1675
|
-
fromTokenAccount.instruction!,
|
|
1671
|
+
// fromTokenAccount.instruction!,
|
|
1676
1672
|
// toTokenAccount.instruction!,
|
|
1677
1673
|
partnerFeeRecipientVaultCreateIx,
|
|
1678
1674
|
partnerFeeRecipientTokenAccountCreateIx,
|
|
@@ -1706,7 +1702,7 @@ export const openTradeV2 = async (
|
|
|
1706
1702
|
}
|
|
1707
1703
|
|
|
1708
1704
|
const allInstructions = [
|
|
1709
|
-
fromTokenAccount.instruction!,
|
|
1705
|
+
// fromTokenAccount.instruction!,
|
|
1710
1706
|
// toTokenAccount.instruction!,
|
|
1711
1707
|
partnerFeeRecipientVaultCreateIx,
|
|
1712
1708
|
partnerFeeRecipientTokenAccountCreateIx,
|