@layerzerolabs/lz-movevm-sdk-v2 3.0.113-aptos.0 → 3.0.113
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 +12 -0
- package/dist/index.cjs +0 -37
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +0 -2
- package/dist/index.d.ts +0 -2
- package/dist/index.mjs +0 -37
- package/dist/index.mjs.map +1 -1
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @layerzerolabs/lz-movevm-sdk-v2
|
|
2
2
|
|
|
3
|
+
## 3.0.113
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 45c8e28: Publish new packages, including verification-data.json files in the evm sdk packages
|
|
8
|
+
- Updated dependencies [45c8e28]
|
|
9
|
+
- @layerzerolabs/lz-definitions@3.0.113
|
|
10
|
+
- @layerzerolabs/lz-serdes@3.0.113
|
|
11
|
+
- @layerzerolabs/lz-utilities@3.0.113
|
|
12
|
+
- @layerzerolabs/lz-v2-utilities@3.0.113
|
|
13
|
+
- @layerzerolabs/move-definitions@3.0.113
|
|
14
|
+
|
|
3
15
|
## 3.0.112
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/index.cjs
CHANGED
|
@@ -1615,7 +1615,6 @@ var EndpointCommon = class {
|
|
|
1615
1615
|
return view[0];
|
|
1616
1616
|
}
|
|
1617
1617
|
};
|
|
1618
|
-
var EAPTOS_V1_EXECUTOR_V2_FEE_LIB_NOT_FOUND = 1;
|
|
1619
1618
|
var EEXECUTOR_DST_EID_NOT_CONFIGURED2 = 5;
|
|
1620
1619
|
var EWORKER_NOT_REGISTERED2 = 16;
|
|
1621
1620
|
var Executor = class {
|
|
@@ -1784,22 +1783,6 @@ var Executor = class {
|
|
|
1784
1783
|
}
|
|
1785
1784
|
throw new Error("Only supported object deployment");
|
|
1786
1785
|
}
|
|
1787
|
-
async createRegisterAptosV1ExecutorV2Payload(aptosV1ExecutorV2Address, aptosV1ExecutorFeeLibAddress) {
|
|
1788
|
-
if (await this.sdk.isObjectAddress(this.module[0])) {
|
|
1789
|
-
const functionIdOrBytecode = registerAptosV1ExecutorV2ScriptHex(
|
|
1790
|
-
this.sdk.accounts.deploy_to_object,
|
|
1791
|
-
aptosV1ExecutorV2Address
|
|
1792
|
-
);
|
|
1793
|
-
const functionArguments = [this.module[0], aptosV1ExecutorFeeLibAddress];
|
|
1794
|
-
const functionArgumentTypes = ["address", "address"];
|
|
1795
|
-
return {
|
|
1796
|
-
function: functionIdOrBytecode,
|
|
1797
|
-
functionArguments,
|
|
1798
|
-
functionArgumentTypes
|
|
1799
|
-
};
|
|
1800
|
-
}
|
|
1801
|
-
throw new Error("Only supported object deployment");
|
|
1802
|
-
}
|
|
1803
1786
|
/**
|
|
1804
1787
|
* Gets the opt in/out status of a worker
|
|
1805
1788
|
* @param uln301Address - The ULN 301 address
|
|
@@ -1813,21 +1796,6 @@ var Executor = class {
|
|
|
1813
1796
|
});
|
|
1814
1797
|
return view[0];
|
|
1815
1798
|
}
|
|
1816
|
-
async getAptosV1ExecutorV2FeeLibrary(aptosV1ExecutorV2Address) {
|
|
1817
|
-
try {
|
|
1818
|
-
const view = await this.sdk.viewFunction({
|
|
1819
|
-
functionName: `${aptosV1ExecutorV2Address}::executor_fee_lib_config::get_executor_fee_lib`,
|
|
1820
|
-
functionArgs: [this.module[0]],
|
|
1821
|
-
functionArgTypes: ["address"]
|
|
1822
|
-
});
|
|
1823
|
-
return view[0];
|
|
1824
|
-
} catch (e) {
|
|
1825
|
-
if (e instanceof moveDefinitions.MoveAbortError && e.abortCode === EAPTOS_V1_EXECUTOR_V2_FEE_LIB_NOT_FOUND) {
|
|
1826
|
-
return "";
|
|
1827
|
-
}
|
|
1828
|
-
throw e;
|
|
1829
|
-
}
|
|
1830
|
-
}
|
|
1831
1799
|
/**
|
|
1832
1800
|
* Gets the destination configuration for the specified endpoint.
|
|
1833
1801
|
*
|
|
@@ -2276,11 +2244,6 @@ var setWorkerConfigForFeeLibRoutingOptInForUln301ScriptHex2 = (deployerAddressHe
|
|
|
2276
2244
|
uln301AddressHex = lzV2Utilities.trim0x(lzUtilities.padify(uln301AddressHex));
|
|
2277
2245
|
return `a11ceb0b060000000501000403040a050e0b071962087b40000001010102000100000303020002060c05010c0002060c01066d73676c6962166f626a6563745f636f64655f6465706c6f796d656e74166765745f636f64655f6f626a6563745f7369676e65722c7365745f776f726b65725f636f6e6669675f666f725f6665655f6c69625f726f7574696e675f6f70745f696e${uln301AddressHex}${deployerAddressHex}000001080b000b0111000c020e0208110102`;
|
|
2278
2246
|
};
|
|
2279
|
-
var registerAptosV1ExecutorV2ScriptHex = (deployerAddressHex, aptosV1ExecutorV2AddressHex) => {
|
|
2280
|
-
aptosV1ExecutorV2AddressHex = lzV2Utilities.trim0x(lzUtilities.padify(aptosV1ExecutorV2AddressHex));
|
|
2281
|
-
deployerAddressHex = lzV2Utilities.trim0x(lzUtilities.padify(deployerAddressHex));
|
|
2282
|
-
return `a11ceb0b060000000501000403040a050e0c071a5b087540000001010102030100000303020003060c0505010c0002060c05176578656375746f725f6665655f6c69625f636f6e666967166f626a6563745f636f64655f6465706c6f796d656e74166765745f636f64655f6f626a6563745f7369676e6572147365745f6578656375746f725f6665655f6c6962${aptosV1ExecutorV2AddressHex}${deployerAddressHex}000001080b000b0111000c030e030b02110102`;
|
|
2283
|
-
};
|
|
2284
2247
|
function asciiToHex(str) {
|
|
2285
2248
|
let hex = "";
|
|
2286
2249
|
for (let i = 0; i < str.length; i++) {
|