@0dotxyz/p0-ts-sdk 3.0.0-next.3 → 3.0.0-next.4
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.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -17905,7 +17905,7 @@ async function makeDepositIx2({
|
|
|
17905
17905
|
return depositIxs;
|
|
17906
17906
|
}
|
|
17907
17907
|
async function makeDepositTx(params) {
|
|
17908
|
-
const { rpc, txFormat, latestBlockhash, bankMap, ...depositIxParams } = params;
|
|
17908
|
+
const { rpc, txFormat, latestBlockhash, bankMap, prependedIxs = [], ...depositIxParams } = params;
|
|
17909
17909
|
const { bank, bankMetadataMap } = params;
|
|
17910
17910
|
if (exceedsCostlyPositionLimit(params.marginfiAccount.balances, bankMap, bank)) {
|
|
17911
17911
|
throw TransactionBuildingError.costlyPositionLimitExceeded(bank.address);
|
|
@@ -17916,7 +17916,7 @@ async function makeDepositTx(params) {
|
|
|
17916
17916
|
const refreshIxs = kaminoAccounts && reserve ? makeRefreshingIxs(kaminoAccounts.kaminoReserve, reserve, kaminoAccounts.kaminoObligation) : [];
|
|
17917
17917
|
const actionIxs = await prependOrderCloses({
|
|
17918
17918
|
...params,
|
|
17919
|
-
actionIxs: [...refreshIxs, ...depositIxs],
|
|
17919
|
+
actionIxs: [...prependedIxs, ...refreshIxs, ...depositIxs],
|
|
17920
17920
|
txFormat: selectLutsForBanks(txFormat, [bank])
|
|
17921
17921
|
});
|
|
17922
17922
|
const { instructions: txIxs, txFormat: selectedFormat } = await appendPremiumRefresh({
|