@layerzerolabs/lz-aptos-sdk-v1 3.0.16 → 3.0.18-ton.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 +18 -0
- package/dist/index.cjs +4 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +97 -98
- package/dist/index.d.ts +97 -98
- package/dist/index.mjs +4 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @layerzerolabs/lz-aptos-sdk-v1
|
|
2
2
|
|
|
3
|
+
## 3.0.18-ton.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- uln302
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
- @layerzerolabs/lz-definitions@3.0.18-ton.0
|
|
10
|
+
|
|
11
|
+
## 3.0.17
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- 40f2269: islander mainnet
|
|
16
|
+
- 40f2269: testnets
|
|
17
|
+
- Updated dependencies [40f2269]
|
|
18
|
+
- Updated dependencies [40f2269]
|
|
19
|
+
- @layerzerolabs/lz-definitions@3.0.17
|
|
20
|
+
|
|
3
21
|
## 3.0.16
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
package/dist/index.cjs
CHANGED
|
@@ -2698,13 +2698,11 @@ var Executor = class {
|
|
|
2698
2698
|
decodeAdapterParams(adapterParams) {
|
|
2699
2699
|
const type = adapterParams[0] * 256 + adapterParams[1];
|
|
2700
2700
|
if (type === 1) {
|
|
2701
|
-
if (adapterParams.length !== 10)
|
|
2702
|
-
throw new Error("invalid adapter params");
|
|
2701
|
+
if (adapterParams.length !== 10) throw new Error("invalid adapter params");
|
|
2703
2702
|
const uaGas = adapterParams.slice(2, 10);
|
|
2704
2703
|
return [type, convertBytesToUint64(uaGas), 0n, ""];
|
|
2705
2704
|
} else if (type === 2) {
|
|
2706
|
-
if (adapterParams.length <= 18)
|
|
2707
|
-
throw new Error("invalid adapter params");
|
|
2705
|
+
if (adapterParams.length <= 18) throw new Error("invalid adapter params");
|
|
2708
2706
|
const uaGas = adapterParams.slice(2, 10);
|
|
2709
2707
|
const airdropAmount = adapterParams.slice(10, 18);
|
|
2710
2708
|
const airdropAddressBytes = adapterParams.slice(18);
|
|
@@ -7429,7 +7427,7 @@ var SDK = class {
|
|
|
7429
7427
|
} else if (signFunc) {
|
|
7430
7428
|
items = await signFunc(signingMessage);
|
|
7431
7429
|
} else {
|
|
7432
|
-
throw "No signFunc or signedItems provided";
|
|
7430
|
+
throw new Error("No signFunc or signedItems provided");
|
|
7433
7431
|
}
|
|
7434
7432
|
const signatures = items.map((item) => item.signature);
|
|
7435
7433
|
const bitmap = items.map((item) => item.bitmap);
|
|
@@ -7495,5 +7493,5 @@ exports.format = format_exports;
|
|
|
7495
7493
|
exports.types = types_exports;
|
|
7496
7494
|
exports.uln = uln_exports;
|
|
7497
7495
|
exports.utils = utils_exports;
|
|
7498
|
-
//# sourceMappingURL=
|
|
7496
|
+
//# sourceMappingURL=index.cjs.map
|
|
7499
7497
|
//# sourceMappingURL=index.cjs.map
|