@layerzerolabs/oft-v2-solana-sdk 3.0.135 → 3.0.137-sui.0

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.137
4
+
5
+ ### Patch Changes
6
+
7
+ - 553e9dc: sui mainnet
8
+ - Updated dependencies [553e9dc]
9
+ - @layerzerolabs/lz-foundation@3.0.137
10
+ - @layerzerolabs/lz-solana-sdk-v2@3.0.137
11
+ - @layerzerolabs/lz-v2-utilities@3.0.137
12
+
13
+ ## 3.0.136
14
+
15
+ ### Patch Changes
16
+
17
+ - 5b7f5c6: Allow multiple ALTs when quoting OFT send
18
+ - Updated dependencies [5b7f5c6]
19
+ - @layerzerolabs/lz-foundation@3.0.136
20
+ - @layerzerolabs/lz-solana-sdk-v2@3.0.136
21
+ - @layerzerolabs/lz-v2-utilities@3.0.136
22
+
3
23
  ## 3.0.135
4
24
 
5
25
  ### Patch Changes
package/dist/index.cjs CHANGED
@@ -1826,7 +1826,7 @@ async function send2(rpc, accounts, sendParams, programs, remainingAccounts) {
1826
1826
  })
1827
1827
  ).items[0];
1828
1828
  }
1829
- async function quote(rpc, accounts, quoteParams, programs, remainingAccounts, addressLookupTable) {
1829
+ async function quote(rpc, accounts, quoteParams, programs, remainingAccounts, addressLookupTables) {
1830
1830
  const { dstEid, to, amountLd, minAmountLd, options, payInLzToken, composeMsg } = quoteParams;
1831
1831
  const { payer, tokenMint, tokenEscrow } = accounts;
1832
1832
  const deriver = new OftPDA(programs.oft);
@@ -1879,7 +1879,7 @@ async function quote(rpc, accounts, quoteParams, programs, remainingAccounts, ad
1879
1879
  umi.EndpointProgram.types.getMessagingFeeSerializer(),
1880
1880
  "confirmed",
1881
1881
  void 0,
1882
- addressLookupTable === void 0 ? void 0 : umiWeb3jsAdapters.toWeb3JsPublicKey(addressLookupTable)
1882
+ addressLookupTables !== void 0 ? Array.isArray(addressLookupTables) ? addressLookupTables.map(umiWeb3jsAdapters.toWeb3JsPublicKey) : umiWeb3jsAdapters.toWeb3JsPublicKey(addressLookupTables) : void 0
1883
1883
  );
1884
1884
  }
1885
1885
  async function quoteOft2(rpc, accounts, quoteParams, oftProgram) {