@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/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # @layerzerolabs/oft-v2-solana-sdk
2
2
 
3
+ ## 3.0.136
4
+
5
+ ### Patch Changes
6
+
7
+ - 5b7f5c6: Allow multiple ALTs when quoting OFT send
8
+ - Updated dependencies [5b7f5c6]
9
+ - @layerzerolabs/lz-foundation@3.0.136
10
+ - @layerzerolabs/lz-solana-sdk-v2@3.0.136
11
+ - @layerzerolabs/lz-v2-utilities@3.0.136
12
+
3
13
  ## 3.0.135
4
14
 
5
15
  ### Patch Changes
@@ -0,0 +1,16 @@
1
+ {
2
+ "source": "@layerzerolabs/oft-v2-solana-sdk",
3
+ "name": "TokenOneOFT",
4
+ "network": "solana-sandbox-local",
5
+ "oftType": "OFT",
6
+ "oftProgramId": "9UovNrJD8pQyBLheeHNayuG1wJSEAoxkmM14vw5gcsTT",
7
+ "tokenMint": "6N1vhTK2NSJ16hz6t7sG8uUL1toTpjT964M8Nc2Qipjh",
8
+ "tokenEscrow": "GnJDDQWwpZKXLrXmRRXuYvs1PENKWtroWj4A4V6CBiqo",
9
+ "address": "BtmanLww8cU2nX9nbDXL69UAy9hBMKGNXEb1ezhpcnZA",
10
+ "compatibleVersions": [
11
+ "v2"
12
+ ],
13
+ "deployer": "2dh2G3zSEjQ14suomJvmrxV3QCoqcD6xzNjzbPuidxWf",
14
+ "admin": "2dh2G3zSEjQ14suomJvmrxV3QCoqcD6xzNjzbPuidxWf",
15
+ "oftVersion": "302"
16
+ }
@@ -0,0 +1,16 @@
1
+ {
2
+ "source": "@layerzerolabs/oft-v2-solana-sdk",
3
+ "name": "TokenThreeOFT",
4
+ "network": "solana-sandbox-local",
5
+ "oftType": "OFT",
6
+ "oftProgramId": "9UovNrJD8pQyBLheeHNayuG1wJSEAoxkmM14vw5gcsTT",
7
+ "tokenMint": "86iff7eXfuzVY1KiauuuDWf4gVM8o5RdmyNB3uU1MCrH",
8
+ "tokenEscrow": "3NUyGP6mMytCudySfVtPfbvgaXtJ9ZtwuWqF1Z7vxA8D",
9
+ "address": "5vQSyfAMoXxi45pmqTDXEdv7cKtzVbyw87mpxDmZJg8M",
10
+ "compatibleVersions": [
11
+ "v2"
12
+ ],
13
+ "deployer": "2dh2G3zSEjQ14suomJvmrxV3QCoqcD6xzNjzbPuidxWf",
14
+ "admin": "2dh2G3zSEjQ14suomJvmrxV3QCoqcD6xzNjzbPuidxWf",
15
+ "oftVersion": "302"
16
+ }
@@ -0,0 +1,16 @@
1
+ {
2
+ "source": "@layerzerolabs/oft-v2-solana-sdk",
3
+ "name": "TokenTwoOFTAdapter",
4
+ "network": "solana-sandbox-local",
5
+ "oftType": "OFTAdapter",
6
+ "oftProgramId": "9UovNrJD8pQyBLheeHNayuG1wJSEAoxkmM14vw5gcsTT",
7
+ "tokenMint": "4q3yyDNV69ga4xjRn3SUK5T1fKPHDV6bXk6Ee2kvWnm9",
8
+ "tokenEscrow": "3xub9G4SMMSKm7NpELrPn5zRX6zsJa51uKetHzhHQYh8",
9
+ "address": "5kSUWPqNWzLigpVuKyZNy4EnKqFQrNAt148uAt1JWneD",
10
+ "compatibleVersions": [
11
+ "v2"
12
+ ],
13
+ "deployer": "2dh2G3zSEjQ14suomJvmrxV3QCoqcD6xzNjzbPuidxWf",
14
+ "admin": "2dh2G3zSEjQ14suomJvmrxV3QCoqcD6xzNjzbPuidxWf",
15
+ "oftVersion": "302"
16
+ }
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) {