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

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/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # @layerzerolabs/oft-v2-solana-sdk
2
2
 
3
+ ## 3.0.42
4
+
5
+ ### Patch Changes
6
+
7
+ - 6dd4df1: deploy aptos mainnet
8
+ - Updated dependencies [6dd4df1]
9
+ - @layerzerolabs/lz-foundation@3.0.42
10
+ - @layerzerolabs/lz-solana-sdk-v2@3.0.42
11
+ - @layerzerolabs/lz-v2-utilities@3.0.42
12
+
13
+ ## 3.0.41
14
+
15
+ ### Patch Changes
16
+
17
+ - 5243a57: add addressLookupTable parameter to quote function
18
+ - Updated dependencies [5243a57]
19
+ - @layerzerolabs/lz-foundation@3.0.41
20
+ - @layerzerolabs/lz-solana-sdk-v2@3.0.41
21
+ - @layerzerolabs/lz-v2-utilities@3.0.41
22
+
3
23
  ## 3.0.40
4
24
 
5
25
  ### Patch Changes
package/dist/index.cjs CHANGED
@@ -1822,7 +1822,7 @@ async function send2(rpc, accounts, sendParams, programs, remainingAccounts) {
1822
1822
  })
1823
1823
  ).items[0];
1824
1824
  }
1825
- async function quote(rpc, accounts, quoteParams, programs, remainingAccounts) {
1825
+ async function quote(rpc, accounts, quoteParams, programs, remainingAccounts, addressLookupTable) {
1826
1826
  const { dstEid, to, amountLd, minAmountLd, options, payInLzToken, composeMsg } = quoteParams;
1827
1827
  const { payer, tokenMint, tokenEscrow } = accounts;
1828
1828
  const deriver = new OftPDA(programs.oft);
@@ -1879,7 +1879,9 @@ async function quote(rpc, accounts, quoteParams, programs, remainingAccounts) {
1879
1879
  [modifyComputeUnits, web3Ix],
1880
1880
  web3Ix.programId,
1881
1881
  umiWeb3jsAdapters.toWeb3JsPublicKey(payer),
1882
- "confirmed"
1882
+ "confirmed",
1883
+ void 0,
1884
+ addressLookupTable === void 0 ? void 0 : umiWeb3jsAdapters.toWeb3JsPublicKey(addressLookupTable)
1883
1885
  );
1884
1886
  const fee = lzSolanaSdkV2.EndpointProgram.types.messagingFeeBeet.read(buffer, 0);
1885
1887
  return { nativeFee: BigInt(fee.nativeFee.toString()), lzTokenFee: BigInt(fee.lzTokenFee.toString()) };