@layerzerolabs/oft-v2-solana-sdk 3.0.39 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@layerzerolabs/oft-v2-solana-sdk",
3
- "version": "3.0.39",
3
+ "version": "3.0.41",
4
4
  "license": "BUSL-1.1",
5
5
  "exports": {
6
6
  ".": {
@@ -33,9 +33,9 @@
33
33
  },
34
34
  "dependencies": {
35
35
  "@ethersproject/bytes": "^5.7.0",
36
- "@layerzerolabs/lz-foundation": "^3.0.39",
37
- "@layerzerolabs/lz-solana-sdk-v2": "^3.0.39",
38
- "@layerzerolabs/lz-v2-utilities": "^3.0.39",
36
+ "@layerzerolabs/lz-foundation": "^3.0.41",
37
+ "@layerzerolabs/lz-solana-sdk-v2": "^3.0.41",
38
+ "@layerzerolabs/lz-v2-utilities": "^3.0.41",
39
39
  "@metaplex-foundation/beet": "^0.7.1",
40
40
  "@metaplex-foundation/beet-solana": "^0.4.0",
41
41
  "@metaplex-foundation/umi": "^0.9.2",
@@ -52,8 +52,8 @@
52
52
  "@kinobi-so/nodes-from-anchor": "^0.21.2",
53
53
  "@kinobi-so/renderers": "^0.21.3",
54
54
  "@kinobi-so/renderers-js-umi": "^0.21.6",
55
- "@layerzerolabs/tsup-config-next": "^3.0.39",
56
- "@layerzerolabs/typescript-config-next": "^3.0.39",
55
+ "@layerzerolabs/tsup-config-next": "^3.0.41",
56
+ "@layerzerolabs/typescript-config-next": "^3.0.41",
57
57
  "@metaplex-foundation/mpl-toolbox": "^0.9.4",
58
58
  "@metaplex-foundation/solita": "^0.20.1",
59
59
  "@metaplex-foundation/umi": "^0.9.2",
package/src/oft.ts CHANGED
@@ -658,7 +658,8 @@ export async function quote(
658
658
  oft: PublicKey
659
659
  endpoint?: PublicKey
660
660
  },
661
- remainingAccounts?: AccountMeta[]
661
+ remainingAccounts?: AccountMeta[],
662
+ addressLookupTable?: PublicKey
662
663
  ): Promise<{ nativeFee: bigint; lzTokenFee: bigint }> {
663
664
  const { dstEid, to, amountLd, minAmountLd, options, payInLzToken, composeMsg } = quoteParams
664
665
  const { payer, tokenMint, tokenEscrow } = accounts
@@ -724,7 +725,9 @@ export async function quote(
724
725
  [modifyComputeUnits, web3Ix],
725
726
  web3Ix.programId,
726
727
  toWeb3JsPublicKey(payer),
727
- 'confirmed'
728
+ 'confirmed',
729
+ undefined,
730
+ addressLookupTable === undefined ? undefined : toWeb3JsPublicKey(addressLookupTable)
728
731
  )
729
732
  const fee = EndpointProgram.types.messagingFeeBeet.read(buffer, 0)
730
733
  return { nativeFee: BigInt(fee.nativeFee.toString()), lzTokenFee: BigInt(fee.lzTokenFee.toString()) }