@layerzerolabs/oft-v2-solana-sdk 3.0.40 → 3.0.41

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 CHANGED
@@ -1304,7 +1304,7 @@ declare function quote(rpc: RpcInterface, accounts: {
1304
1304
  }, programs: {
1305
1305
  oft: PublicKey;
1306
1306
  endpoint?: PublicKey;
1307
- }, remainingAccounts?: AccountMeta$1[]): Promise<{
1307
+ }, remainingAccounts?: AccountMeta$1[], addressLookupTable?: PublicKey): Promise<{
1308
1308
  nativeFee: bigint;
1309
1309
  lzTokenFee: bigint;
1310
1310
  }>;
package/dist/index.d.ts CHANGED
@@ -1304,7 +1304,7 @@ declare function quote(rpc: RpcInterface, accounts: {
1304
1304
  }, programs: {
1305
1305
  oft: PublicKey;
1306
1306
  endpoint?: PublicKey;
1307
- }, remainingAccounts?: AccountMeta$1[]): Promise<{
1307
+ }, remainingAccounts?: AccountMeta$1[], addressLookupTable?: PublicKey): Promise<{
1308
1308
  nativeFee: bigint;
1309
1309
  lzTokenFee: bigint;
1310
1310
  }>;
package/dist/index.mjs CHANGED
@@ -1820,7 +1820,7 @@ async function send2(rpc, accounts, sendParams, programs, remainingAccounts) {
1820
1820
  })
1821
1821
  ).items[0];
1822
1822
  }
1823
- async function quote(rpc, accounts, quoteParams, programs, remainingAccounts) {
1823
+ async function quote(rpc, accounts, quoteParams, programs, remainingAccounts, addressLookupTable) {
1824
1824
  const { dstEid, to, amountLd, minAmountLd, options, payInLzToken, composeMsg } = quoteParams;
1825
1825
  const { payer, tokenMint, tokenEscrow } = accounts;
1826
1826
  const deriver = new OftPDA(programs.oft);
@@ -1877,7 +1877,9 @@ async function quote(rpc, accounts, quoteParams, programs, remainingAccounts) {
1877
1877
  [modifyComputeUnits, web3Ix],
1878
1878
  web3Ix.programId,
1879
1879
  toWeb3JsPublicKey(payer),
1880
- "confirmed"
1880
+ "confirmed",
1881
+ void 0,
1882
+ addressLookupTable === void 0 ? void 0 : toWeb3JsPublicKey(addressLookupTable)
1881
1883
  );
1882
1884
  const fee = EndpointProgram.types.messagingFeeBeet.read(buffer, 0);
1883
1885
  return { nativeFee: BigInt(fee.nativeFee.toString()), lzTokenFee: BigInt(fee.lzTokenFee.toString()) };