@lavarage/sdk 7.5.4 → 7.5.5
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 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +13 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +13 -4
- package/dist/index.mjs.map +1 -1
- package/idl/referralVault.ts +10 -0
- package/index.ts +8 -4
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -130,6 +130,11 @@ var IDL = {
|
|
|
130
130
|
{
|
|
131
131
|
"name": "user",
|
|
132
132
|
"isMut": true,
|
|
133
|
+
"isSigner": false
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"name": "funder",
|
|
137
|
+
"isMut": true,
|
|
133
138
|
"isSigner": true
|
|
134
139
|
},
|
|
135
140
|
{
|
|
@@ -5171,7 +5176,8 @@ var borrowV1 = (lavarageProgram, offer, marginSOL, leverage, randomSeed, tokenPr
|
|
|
5171
5176
|
if (!vaultAccountInfo) {
|
|
5172
5177
|
partnerFeeRecipientCreateIx = yield referralVaultProgram.methods.initializeVault().accountsStrict({
|
|
5173
5178
|
userVault: userVaultPda,
|
|
5174
|
-
user:
|
|
5179
|
+
user: partnerFeeRecipient,
|
|
5180
|
+
funder: lavarageProgram.provider.publicKey,
|
|
5175
5181
|
systemProgram: import_web32.SystemProgram.programId
|
|
5176
5182
|
}).instruction();
|
|
5177
5183
|
}
|
|
@@ -5306,7 +5312,8 @@ var borrowV2 = (lavarageProgram, offer, marginSOL, leverage, randomSeed, quoteTo
|
|
|
5306
5312
|
if (!vaultAccountInfo) {
|
|
5307
5313
|
partnerFeeRecipientVaultCreateIx = yield referralVaultProgram.methods.initializeVault().accountsStrict({
|
|
5308
5314
|
userVault: userVaultPda,
|
|
5309
|
-
user:
|
|
5315
|
+
user: partnerFeeRecipient,
|
|
5316
|
+
funder: lavarageProgram.provider.publicKey,
|
|
5310
5317
|
systemProgram: import_web32.SystemProgram.programId
|
|
5311
5318
|
}).instruction();
|
|
5312
5319
|
}
|
|
@@ -5546,7 +5553,8 @@ var openTradeV1 = (lavarageProgram, offer, jupInstruction, marginSOL, leverage,
|
|
|
5546
5553
|
if (!vaultAccountInfo) {
|
|
5547
5554
|
partnerFeeRecipientCreateIx = yield referralVaultProgram.methods.initializeVault().accountsStrict({
|
|
5548
5555
|
userVault: userVaultPda,
|
|
5549
|
-
user:
|
|
5556
|
+
user: partnerFeeRecipient,
|
|
5557
|
+
funder: lavarageProgram.provider.publicKey,
|
|
5550
5558
|
systemProgram: import_web32.SystemProgram.programId
|
|
5551
5559
|
}).instruction();
|
|
5552
5560
|
}
|
|
@@ -5774,7 +5782,8 @@ var openTradeV2 = (lavarageProgram, offer, jupInstruction, marginSOL, leverage,
|
|
|
5774
5782
|
if (!vaultAccountInfo) {
|
|
5775
5783
|
partnerFeeRecipientVaultCreateIx = yield referralVaultProgram.methods.initializeVault().accountsStrict({
|
|
5776
5784
|
userVault: userVaultPda,
|
|
5777
|
-
user:
|
|
5785
|
+
user: partnerFeeRecipient,
|
|
5786
|
+
funder: lavarageProgram.provider.publicKey,
|
|
5778
5787
|
systemProgram: import_web32.SystemProgram.programId
|
|
5779
5788
|
}).instruction();
|
|
5780
5789
|
}
|