@jup-ag/lend 0.0.13 → 0.0.14

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/README.md CHANGED
@@ -42,7 +42,7 @@ import { getOperateIx } from "@jup-ag/lend/borrow";
42
42
  const connection = new Connection("https://api.devnet.solana.com");
43
43
  const signer = new PublicKey("signerAddress");
44
44
 
45
- const { ixs, lookupTable } = await getOperateIx({
45
+ const { ixs, addressLookupTableAccounts } = await getOperateIx({
46
46
  vaultId: 1,
47
47
  positionId: 0,
48
48
 
@@ -3634,7 +3634,7 @@ declare function getInitPositionContext(vaultId: number, positionId: number, sig
3634
3634
  };
3635
3635
  declare const getOperateIx: ({ vaultId, positionId, colAmount, debtAmount, connection, signer, recipient, positionOwner, }: OperateParams) => Promise<{
3636
3636
  nftId: number;
3637
- addressLookupTableAccounts: (_solana_web3_js.AddressLookupTableAccount | null)[];
3637
+ addressLookupTableAccounts: _solana_web3_js.AddressLookupTableAccount[];
3638
3638
  ixs: TransactionInstruction[];
3639
3639
  }>;
3640
3640
 
@@ -3634,7 +3634,7 @@ declare function getInitPositionContext(vaultId: number, positionId: number, sig
3634
3634
  };
3635
3635
  declare const getOperateIx: ({ vaultId, positionId, colAmount, debtAmount, connection, signer, recipient, positionOwner, }: OperateParams) => Promise<{
3636
3636
  nftId: number;
3637
- addressLookupTableAccounts: (_solana_web3_js.AddressLookupTableAccount | null)[];
3637
+ addressLookupTableAccounts: _solana_web3_js.AddressLookupTableAccount[];
3638
3638
  ixs: TransactionInstruction[];
3639
3639
  }>;
3640
3640
 
@@ -1378,7 +1378,7 @@ const getOperateIx = async ({
1378
1378
  ]);
1379
1379
  return {
1380
1380
  nftId,
1381
- addressLookupTableAccounts: [addressLookupTable.value],
1381
+ addressLookupTableAccounts: addressLookupTable.value ? [addressLookupTable.value] : [],
1382
1382
  ixs: initPositionIx ? [initPositionIx, ...otherIxs, operateIx] : [...otherIxs, operateIx]
1383
1383
  };
1384
1384
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jup-ag/lend",
3
- "version": "0.0.13",
3
+ "version": "0.0.14",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "type": "module",