@layerzerolabs/oft-v2-solana-sdk 3.0.39 → 3.0.41
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 +20 -0
- package/dist/index.cjs +4 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +4 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +6 -6
- package/src/oft.ts +5 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @layerzerolabs/oft-v2-solana-sdk
|
|
2
2
|
|
|
3
|
+
## 3.0.41
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 5243a57: add addressLookupTable parameter to quote function
|
|
8
|
+
- Updated dependencies [5243a57]
|
|
9
|
+
- @layerzerolabs/lz-foundation@3.0.41
|
|
10
|
+
- @layerzerolabs/lz-solana-sdk-v2@3.0.41
|
|
11
|
+
- @layerzerolabs/lz-v2-utilities@3.0.41
|
|
12
|
+
|
|
13
|
+
## 3.0.40
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- 4e53aef: redeploy aptos testnet
|
|
18
|
+
- Updated dependencies [4e53aef]
|
|
19
|
+
- @layerzerolabs/lz-foundation@3.0.40
|
|
20
|
+
- @layerzerolabs/lz-solana-sdk-v2@3.0.40
|
|
21
|
+
- @layerzerolabs/lz-v2-utilities@3.0.40
|
|
22
|
+
|
|
3
23
|
## 3.0.39
|
|
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()) };
|