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

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
@@ -1147,7 +1147,7 @@ declare function quote$1(rpc: RpcInterface, accounts: {
1147
1147
  }, programs: {
1148
1148
  oft: PublicKey;
1149
1149
  endpoint?: PublicKey;
1150
- }, remainingAccounts?: AccountMeta[], addressLookupTable?: PublicKey): Promise<{
1150
+ }, remainingAccounts?: AccountMeta[], addressLookupTables?: PublicKey | PublicKey[]): Promise<{
1151
1151
  nativeFee: bigint;
1152
1152
  lzTokenFee: bigint;
1153
1153
  }>;
package/dist/index.d.ts CHANGED
@@ -1147,7 +1147,7 @@ declare function quote$1(rpc: RpcInterface, accounts: {
1147
1147
  }, programs: {
1148
1148
  oft: PublicKey;
1149
1149
  endpoint?: PublicKey;
1150
- }, remainingAccounts?: AccountMeta[], addressLookupTable?: PublicKey): Promise<{
1150
+ }, remainingAccounts?: AccountMeta[], addressLookupTables?: PublicKey | PublicKey[]): Promise<{
1151
1151
  nativeFee: bigint;
1152
1152
  lzTokenFee: bigint;
1153
1153
  }>;
package/dist/index.mjs CHANGED
@@ -1824,7 +1824,7 @@ async function send2(rpc, accounts, sendParams, programs, remainingAccounts) {
1824
1824
  })
1825
1825
  ).items[0];
1826
1826
  }
1827
- async function quote(rpc, accounts, quoteParams, programs, remainingAccounts, addressLookupTable) {
1827
+ async function quote(rpc, accounts, quoteParams, programs, remainingAccounts, addressLookupTables) {
1828
1828
  const { dstEid, to, amountLd, minAmountLd, options, payInLzToken, composeMsg } = quoteParams;
1829
1829
  const { payer, tokenMint, tokenEscrow } = accounts;
1830
1830
  const deriver = new OftPDA(programs.oft);
@@ -1877,7 +1877,7 @@ async function quote(rpc, accounts, quoteParams, programs, remainingAccounts, ad
1877
1877
  EndpointProgram.types.getMessagingFeeSerializer(),
1878
1878
  "confirmed",
1879
1879
  void 0,
1880
- addressLookupTable === void 0 ? void 0 : toWeb3JsPublicKey(addressLookupTable)
1880
+ addressLookupTables !== void 0 ? Array.isArray(addressLookupTables) ? addressLookupTables.map(toWeb3JsPublicKey) : toWeb3JsPublicKey(addressLookupTables) : void 0
1881
1881
  );
1882
1882
  }
1883
1883
  async function quoteOft2(rpc, accounts, quoteParams, oftProgram) {