@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@layerzerolabs/oft-v2-solana-sdk",
3
- "version": "3.0.135-sui.0",
3
+ "version": "3.0.136",
4
4
  "license": "BUSL-1.1",
5
5
  "exports": {
6
6
  ".": {
@@ -31,9 +31,9 @@
31
31
  },
32
32
  "dependencies": {
33
33
  "@ethersproject/bytes": "^5.8.0",
34
- "@layerzerolabs/lz-foundation": "^3.0.135-sui.0",
35
- "@layerzerolabs/lz-solana-sdk-v2": "^3.0.135-sui.0",
36
- "@layerzerolabs/lz-v2-utilities": "^3.0.135-sui.0",
34
+ "@layerzerolabs/lz-foundation": "^3.0.136",
35
+ "@layerzerolabs/lz-solana-sdk-v2": "^3.0.136",
36
+ "@layerzerolabs/lz-v2-utilities": "^3.0.136",
37
37
  "@metaplex-foundation/beet": "^0.7.1",
38
38
  "@metaplex-foundation/beet-solana": "^0.4.0",
39
39
  "@metaplex-foundation/umi": "^0.9.2",
@@ -50,10 +50,10 @@
50
50
  "@kinobi-so/nodes-from-anchor": "^0.21.2",
51
51
  "@kinobi-so/renderers": "^0.21.3",
52
52
  "@kinobi-so/renderers-js-umi": "^0.21.6",
53
- "@layerzerolabs/lz-definitions": "^3.0.135-sui.0",
53
+ "@layerzerolabs/lz-definitions": "^3.0.136",
54
54
  "@layerzerolabs/oft-v2-solana": "^0.0.0",
55
- "@layerzerolabs/tsup-config-next": "^3.0.135-sui.0",
56
- "@layerzerolabs/typescript-config-next": "^3.0.135-sui.0",
55
+ "@layerzerolabs/tsup-config-next": "^3.0.136",
56
+ "@layerzerolabs/typescript-config-next": "^3.0.136",
57
57
  "@metaplex-foundation/mpl-toolbox": "^0.9.2",
58
58
  "@metaplex-foundation/solita": "^0.20.1",
59
59
  "@metaplex-foundation/umi": "^0.9.2",
package/src/oft302.ts CHANGED
@@ -271,9 +271,9 @@ export function setPeerConfig(
271
271
  fields: [
272
272
  param.rateLimit
273
273
  ? some({
274
- refillPerSecond: some(param.rateLimit.refillPerSecond),
275
- capacity: some(param.rateLimit.capacity),
276
- })
274
+ refillPerSecond: some(param.rateLimit.refillPerSecond),
275
+ capacity: some(param.rateLimit.capacity),
276
+ })
277
277
  : null,
278
278
  ],
279
279
  }
@@ -586,7 +586,7 @@ export async function quote(
586
586
  endpoint?: PublicKey
587
587
  },
588
588
  remainingAccounts?: AccountMeta[],
589
- addressLookupTable?: PublicKey
589
+ addressLookupTables?: PublicKey | PublicKey[]
590
590
  ): Promise<{ nativeFee: bigint; lzTokenFee: bigint }> {
591
591
  const { dstEid, to, amountLd, minAmountLd, options, payInLzToken, composeMsg } = quoteParams
592
592
  const { payer, tokenMint, tokenEscrow } = accounts
@@ -647,7 +647,11 @@ export async function quote(
647
647
  EndpointProgram.types.getMessagingFeeSerializer(),
648
648
  'confirmed',
649
649
  undefined,
650
- addressLookupTable === undefined ? undefined : toWeb3JsPublicKey(addressLookupTable)
650
+ addressLookupTables !== undefined
651
+ ? Array.isArray(addressLookupTables)
652
+ ? addressLookupTables.map(toWeb3JsPublicKey)
653
+ : toWeb3JsPublicKey(addressLookupTables)
654
+ : undefined
651
655
  )
652
656
  }
653
657