@layerzerolabs/lz-aptos-sdk-v1 3.0.112-aptos.0 → 3.0.112
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 +24 -0
- package/deployments/aptos-sandbox-local/Common.json +1 -1
- package/deployments/aptos-sandbox-local/Endpoint.json +1 -1
- package/deployments/aptos-sandbox-local/ExecutorAuth.json +1 -1
- package/deployments/aptos-sandbox-local/ExecutorExt.json +1 -1
- package/deployments/aptos-sandbox-local/ExecutorV2.json +2 -2
- package/deployments/aptos-sandbox-local/MsgLibV1.json +1 -1
- package/deployments/aptos-sandbox-local/MsgLibV2.json +1 -1
- package/deployments/aptos-sandbox-local/MsgLibV21.json +1 -1
- package/deployments/aptos-sandbox-local/MsgLibV3.json +1 -1
- package/deployments/aptos-sandbox-local/MsglibAuth.json +1 -1
- package/deployments/aptos-sandbox-local/Zro.json +1 -1
- package/deployments/aptos-sandbox-local/airdrop_wrapper.json +1 -1
- package/deployments/aptos-sandbox-local/executor_fee_lib_router_v1.json +1 -1
- package/deployments/aptos-sandbox-local/executor_fee_lib_router_v2.json +2 -2
- package/deployments/aptos-sandbox-local/fa_converter.json +1 -1
- package/deployments/aptos-sandbox-local/layerzero_view.json +1 -1
- package/deployments/aptos-sandbox-local/layerzero_view_uln301.json +1 -1
- package/deployments/aptos-sandbox-local/msglib_routing_helper.json +1 -1
- package/deployments/aptos-sandbox-local/packet_converter.json +1 -1
- package/deployments/aptos-sandbox-local/uln_301.json +1 -1
- package/deployments/aptos-sandbox-local/uln_301_receive_helper.json +1 -1
- package/dist/index.cjs +6 -50
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -32
- package/dist/index.d.ts +4 -32
- package/dist/index.mjs +6 -50
- package/dist/index.mjs.map +1 -1
- package/package.json +8 -8
- package/deployments/aptos-sandbox-local/executor_fee_lib_router_v3.json +0 -12
- package/deployments/aptos-sandbox-local/executor_fee_lib_v1.json +0 -12
- package/deployments/aptos-sandbox-local/executor_v2_fee_lib_router_v1.json +0 -12
- package/deployments/aptos-sandbox-local/executor_v2_fee_lib_router_v2.json +0 -12
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# @layerzerolabs/lz-aptos-sdk-v1
|
|
2
2
|
|
|
3
|
+
## 3.0.112
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 270213e: endpoints: camp, converge mainnet. plasma, injective1439 testnet
|
|
8
|
+
- Updated dependencies [270213e]
|
|
9
|
+
- @layerzerolabs/lz-definitions@3.0.112
|
|
10
|
+
- @layerzerolabs/lz-serdes@3.0.112
|
|
11
|
+
- @layerzerolabs/lz-utilities@3.0.112
|
|
12
|
+
- @layerzerolabs/lz-movevm-sdk-v2@3.0.112
|
|
13
|
+
- @layerzerolabs/lz-v2-utilities@3.0.112
|
|
14
|
+
|
|
15
|
+
## 3.0.111
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- e0c412c: Publish new ton packages at July 11 2025
|
|
20
|
+
- Updated dependencies [e0c412c]
|
|
21
|
+
- @layerzerolabs/lz-definitions@3.0.111
|
|
22
|
+
- @layerzerolabs/lz-serdes@3.0.111
|
|
23
|
+
- @layerzerolabs/lz-utilities@3.0.111
|
|
24
|
+
- @layerzerolabs/lz-movevm-sdk-v2@3.0.111
|
|
25
|
+
- @layerzerolabs/lz-v2-utilities@3.0.111
|
|
26
|
+
|
|
3
27
|
## 3.0.110
|
|
4
28
|
|
|
5
29
|
### Patch Changes
|
|
@@ -8,5 +8,5 @@
|
|
|
8
8
|
"v1"
|
|
9
9
|
],
|
|
10
10
|
"bytecodeHash": "d257012f7d58a69eb76e3c11b65ef2c42dccc0a58f9ef424985c940ac8f4dbb3",
|
|
11
|
-
"transactionHash": "
|
|
11
|
+
"transactionHash": "0xac47d7e96315b1a2d51acbc43900966ff9b42c54e4d49a4f4775f018aef76c2f"
|
|
12
12
|
}
|
|
@@ -8,5 +8,5 @@
|
|
|
8
8
|
"v1"
|
|
9
9
|
],
|
|
10
10
|
"bytecodeHash": "23c574411ac16bca7e6691ff166d3aa695d096ce8e55402b4b310d45449dc7b6",
|
|
11
|
-
"transactionHash": "
|
|
11
|
+
"transactionHash": "0x91f8f37453d22bfd79d51023ac88b0f646e892c7e3f7a2f7d3677892a5571b87"
|
|
12
12
|
}
|
|
@@ -8,5 +8,5 @@
|
|
|
8
8
|
"v1"
|
|
9
9
|
],
|
|
10
10
|
"bytecodeHash": "f65f21429f10242d85b762e09e3b7b53710987eb99e12f026ae62ee45d8d08a0",
|
|
11
|
-
"transactionHash": "
|
|
11
|
+
"transactionHash": "0xbd195467d82c49645fb45cf0075f7854d0e9495cfd7eada84da50d2de0fdee5d"
|
|
12
12
|
}
|
|
@@ -8,5 +8,5 @@
|
|
|
8
8
|
"v1"
|
|
9
9
|
],
|
|
10
10
|
"bytecodeHash": "f194aa4e9a7477a990e3b21a00737523784803b762a074c815bad7732f012b36",
|
|
11
|
-
"transactionHash": "
|
|
11
|
+
"transactionHash": "0x5cbfebc8648e448292df366c53f10e5c3f3ce8b49ff41fcbae98bf43de32bf06"
|
|
12
12
|
}
|
|
@@ -7,6 +7,6 @@
|
|
|
7
7
|
"compatibleVersions": [
|
|
8
8
|
"v1"
|
|
9
9
|
],
|
|
10
|
-
"bytecodeHash": "
|
|
11
|
-
"transactionHash": "
|
|
10
|
+
"bytecodeHash": "5acfe8f7cf26e6a3eea6d2cf30e346275a2700f1331d9c6f1525ad18124906af",
|
|
11
|
+
"transactionHash": "0x9fb18b651c25fd2305ba8dde41012c0a97a70c7e14a3be178afad75b1ef6ffeb"
|
|
12
12
|
}
|
|
@@ -8,5 +8,5 @@
|
|
|
8
8
|
"v1"
|
|
9
9
|
],
|
|
10
10
|
"bytecodeHash": "88d910540543c7d36f544f1163f8756d3fe4f79d8412660cafd361acaff8dd4c",
|
|
11
|
-
"transactionHash": "
|
|
11
|
+
"transactionHash": "0xe5ee809f0c9dc437d713f91cf47b02bec5080fc01be8cce734b273ab81f374f9"
|
|
12
12
|
}
|
|
@@ -8,5 +8,5 @@
|
|
|
8
8
|
"v1"
|
|
9
9
|
],
|
|
10
10
|
"bytecodeHash": "c0166105e932208fcdb3421092cff3f0a1aebb5448c28fff4f67ee72543591a3",
|
|
11
|
-
"transactionHash": "
|
|
11
|
+
"transactionHash": "0x2c30994ae4679abd74d0d36abd2db961b1d0e4224ccf54c103e4fdf650a01777"
|
|
12
12
|
}
|
|
@@ -8,5 +8,5 @@
|
|
|
8
8
|
"v1"
|
|
9
9
|
],
|
|
10
10
|
"bytecodeHash": "3acce5bc015062156dab22b5a18c3a46ca4b0a49feb4108e1b9ff86678417a04",
|
|
11
|
-
"transactionHash": "
|
|
11
|
+
"transactionHash": "0xacd60193f9d650bdf032e95c9d4890375565880b6419afe4fbff993540006777"
|
|
12
12
|
}
|
|
@@ -8,5 +8,5 @@
|
|
|
8
8
|
"v1"
|
|
9
9
|
],
|
|
10
10
|
"bytecodeHash": "24e119914d5e2ac4a45497ae5b0d696adc5620fdc10c099058b94cc2f612615d",
|
|
11
|
-
"transactionHash": "
|
|
11
|
+
"transactionHash": "0xd8d4fd206baf96a39c1bceaddcded3ea6a8c73092f095d32e1f3f38da6bc9992"
|
|
12
12
|
}
|
|
@@ -8,5 +8,5 @@
|
|
|
8
8
|
"v1"
|
|
9
9
|
],
|
|
10
10
|
"bytecodeHash": "d36386bf031f909917a6732ee61e6f04d0fc16745f3ebb54d87fa4a118837554",
|
|
11
|
-
"transactionHash": "
|
|
11
|
+
"transactionHash": "0x3c8b0a297436124d9820a28dda5896bcc52381124b15f08e3d626bdc18f6ce87"
|
|
12
12
|
}
|
|
@@ -8,5 +8,5 @@
|
|
|
8
8
|
"v1"
|
|
9
9
|
],
|
|
10
10
|
"bytecodeHash": "f30380d4344631dcb83a661490e6d408572d7919b17acf6260fefd4d6574619f",
|
|
11
|
-
"transactionHash": "
|
|
11
|
+
"transactionHash": "0x1c6d509732b6398886a55ecd4906542bfcdf5ba651fa449fac27ae8fe1087f2d"
|
|
12
12
|
}
|
|
@@ -8,5 +8,5 @@
|
|
|
8
8
|
"v1"
|
|
9
9
|
],
|
|
10
10
|
"bytecodeHash": "2736f4dc14b0a23229cc513f097acfb32643b3bffc8a18997ee243b6af3dc4c6",
|
|
11
|
-
"transactionHash": "
|
|
11
|
+
"transactionHash": "0x4a90ee83a6183690e5c52325c761457f4a8dee35ec5b74cda228fa85c403984d"
|
|
12
12
|
}
|
|
@@ -8,5 +8,5 @@
|
|
|
8
8
|
"v1"
|
|
9
9
|
],
|
|
10
10
|
"bytecodeHash": "6ffb4bcd73f276cc640cd079fdca64115003648cf4a1566122dca2a25123d7d5",
|
|
11
|
-
"transactionHash": "
|
|
11
|
+
"transactionHash": "0x1a3613c95111c9e4af2ac7d987cbe857baadf1652932146809cb4cfd88b8c882"
|
|
12
12
|
}
|
|
@@ -7,6 +7,6 @@
|
|
|
7
7
|
"compatibleVersions": [
|
|
8
8
|
"v1"
|
|
9
9
|
],
|
|
10
|
-
"bytecodeHash": "
|
|
11
|
-
"transactionHash": "
|
|
10
|
+
"bytecodeHash": "d2faa1b65afa41a1ed05fb36f2c3c2e8e512a59653a13c32409721dfba6f86c3",
|
|
11
|
+
"transactionHash": "0x4de3058e738538fc905610456e2fcd68d33f41521483bfd736cb5042c15e0147"
|
|
12
12
|
}
|
|
@@ -8,5 +8,5 @@
|
|
|
8
8
|
"v1"
|
|
9
9
|
],
|
|
10
10
|
"bytecodeHash": "db931c72e61301af9b3b2f3b98e859e61e4605d27a6775913175f335c49853d7",
|
|
11
|
-
"transactionHash": "
|
|
11
|
+
"transactionHash": "0x65a4e4da6a45abc6da1b4f806c57ed39ea04beb044a54444646d9f0b722ed134"
|
|
12
12
|
}
|
|
@@ -8,5 +8,5 @@
|
|
|
8
8
|
"v1"
|
|
9
9
|
],
|
|
10
10
|
"bytecodeHash": "81e9e5e6e419b7b665fa144fe6381969d905d5a4d319a28996ae94f653c1455b",
|
|
11
|
-
"transactionHash": "
|
|
11
|
+
"transactionHash": "0x1783bb98dae3193c2d0133d459ff5798ad1d4ac492268d72ed04a95bfbeb185d"
|
|
12
12
|
}
|
|
@@ -8,5 +8,5 @@
|
|
|
8
8
|
"v1"
|
|
9
9
|
],
|
|
10
10
|
"bytecodeHash": "b0cc02e8aacfc8586717873bc24f3270ae30764b7007ddb3bec57f6c1a3f5a42",
|
|
11
|
-
"transactionHash": "
|
|
11
|
+
"transactionHash": "0x4b6757fc2b57476b3c3e400d7b41884cc2c876cd4254b8abd04956b530fb45d5"
|
|
12
12
|
}
|
|
@@ -8,5 +8,5 @@
|
|
|
8
8
|
"v1"
|
|
9
9
|
],
|
|
10
10
|
"bytecodeHash": "79724aa6f5a4cc2515c92b1a723d79a0046dff510db5e135b81e30be74040750",
|
|
11
|
-
"transactionHash": "
|
|
11
|
+
"transactionHash": "0x904412ad06d274357b105c378c98d6a9c914af8a7544cc1fd5a3b8c287af6995"
|
|
12
12
|
}
|
|
@@ -8,5 +8,5 @@
|
|
|
8
8
|
"v1"
|
|
9
9
|
],
|
|
10
10
|
"bytecodeHash": "91d12ffcc364268cff228bcf251e5dbaae41562c6d59a1751d06d6587c376cd3",
|
|
11
|
-
"transactionHash": "
|
|
11
|
+
"transactionHash": "0xfb1a2cfac95339eb20806759439bb0543190b119a29af857f60073d2284c9632"
|
|
12
12
|
}
|
|
@@ -8,5 +8,5 @@
|
|
|
8
8
|
"v1"
|
|
9
9
|
],
|
|
10
10
|
"bytecodeHash": "58547e2df1a7d482adcc59515a2904ba46c484f58dc1e964fd086cb32ccd8e0c",
|
|
11
|
-
"transactionHash": "
|
|
11
|
+
"transactionHash": "0x3a5c1f897d1c120a34243434134b6cb0bbe8b9a8d28a29269e3e74c49074e189"
|
|
12
12
|
}
|
|
@@ -8,5 +8,5 @@
|
|
|
8
8
|
"v1"
|
|
9
9
|
],
|
|
10
10
|
"bytecodeHash": "df24ae2f43a5d67db8051cacb0f8c3da583facc4f7b1b1e42d48ebd81bcff410",
|
|
11
|
-
"transactionHash": "
|
|
11
|
+
"transactionHash": "0x71b44b946688f9268e85b689b7c922a9a3fb46e6326470adf296b562dfe4db0e"
|
|
12
12
|
}
|
package/dist/index.cjs
CHANGED
|
@@ -52,7 +52,6 @@ __export(constants_exports, {
|
|
|
52
52
|
COUNTER_ADDRESS: () => COUNTER_ADDRESS,
|
|
53
53
|
EXECUTOR_ADDRESS: () => EXECUTOR_ADDRESS,
|
|
54
54
|
EXECUTOR_EXT_ADDRESS: () => EXECUTOR_EXT_ADDRESS,
|
|
55
|
-
EXECUTOR_FEE_LIB_V1_ADDRESS: () => EXECUTOR_FEE_LIB_V1_ADDRESS,
|
|
56
55
|
EXECUTOR_V2_ADDRESS: () => EXECUTOR_V2_ADDRESS,
|
|
57
56
|
FAUCET_URL: () => FAUCET_URL,
|
|
58
57
|
LAYERZERO_ADDRESS: () => LAYERZERO_ADDRESS,
|
|
@@ -152,12 +151,6 @@ var EXECUTOR_V2_ADDRESS = {
|
|
|
152
151
|
[lzDefinitions.Stage.TESTNET]: "0x1759cc0d3161f1eb79f65847d4feb9d1f74fb79014698a23b16b28b9cd4c37e3",
|
|
153
152
|
[lzDefinitions.Stage.SANDBOX]: "0xf2e1e034475dc0439487dd09dfc3950c462f731599e53a6b015dd85502352e68"
|
|
154
153
|
};
|
|
155
|
-
var EXECUTOR_FEE_LIB_V1_ADDRESS = {
|
|
156
|
-
[lzDefinitions.Stage.MAINNET]: "",
|
|
157
|
-
// MAINNET
|
|
158
|
-
[lzDefinitions.Stage.TESTNET]: "",
|
|
159
|
-
[lzDefinitions.Stage.SANDBOX]: "0x53268a3c075dbe2518b60b5e6f9f8a4df7433f48cd350375538c5f5205d7b6b3"
|
|
160
|
-
};
|
|
161
154
|
var LAYERZERO_APPS_PUBKEY = {
|
|
162
155
|
[lzDefinitions.Stage.MAINNET]: "0xf57e5a95ae0e2b5f999ac14abd0ff73daf64e6e7e2a1fad024f2e44422e88d76",
|
|
163
156
|
// MAINNET
|
|
@@ -3144,34 +3137,6 @@ var ExecutorConfig = class {
|
|
|
3144
3137
|
};
|
|
3145
3138
|
}
|
|
3146
3139
|
};
|
|
3147
|
-
|
|
3148
|
-
// src/modules/executor_v2.ts
|
|
3149
|
-
var ExecutorV2 = class {
|
|
3150
|
-
/**
|
|
3151
|
-
* Creates an instance of the UlnReceive class.
|
|
3152
|
-
*
|
|
3153
|
-
* @param {SDK} sdk - The SDK instance.
|
|
3154
|
-
*/
|
|
3155
|
-
constructor(sdk) {
|
|
3156
|
-
this.sdk = sdk;
|
|
3157
|
-
this.module = `${sdk.accounts.executor_v2}::executor_v2`;
|
|
3158
|
-
this.type = `${this.module}::Executor`;
|
|
3159
|
-
}
|
|
3160
|
-
/**
|
|
3161
|
-
* The module name.
|
|
3162
|
-
*/
|
|
3163
|
-
module;
|
|
3164
|
-
type;
|
|
3165
|
-
async quoteFee(uaAddress, executorAddress, dstChainId, adapterParams) {
|
|
3166
|
-
const payload = {
|
|
3167
|
-
function: `${this.module}::quote_fee`,
|
|
3168
|
-
type_arguments: [],
|
|
3169
|
-
arguments: [uaAddress, executorAddress, dstChainId, adapterParams]
|
|
3170
|
-
};
|
|
3171
|
-
const ret = await this.sdk.client.view(payload);
|
|
3172
|
-
return ret[0];
|
|
3173
|
-
}
|
|
3174
|
-
};
|
|
3175
3140
|
var MsgLib = class {
|
|
3176
3141
|
/**
|
|
3177
3142
|
* Creates an instance of the MsgLib class.
|
|
@@ -4722,11 +4687,6 @@ var Layerzero = class {
|
|
|
4722
4687
|
* @see {@link Executor}
|
|
4723
4688
|
*/
|
|
4724
4689
|
Executor;
|
|
4725
|
-
/**
|
|
4726
|
-
* The ExecutorV2 instance.
|
|
4727
|
-
* @see {@link ExecutorV2}
|
|
4728
|
-
*/
|
|
4729
|
-
ExecutorV2;
|
|
4730
4690
|
/**
|
|
4731
4691
|
* The Endpoint instance.
|
|
4732
4692
|
* @see {@link Endpoint}
|
|
@@ -4775,7 +4735,6 @@ var Layerzero = class {
|
|
|
4775
4735
|
constructor(sdk) {
|
|
4776
4736
|
this.Channel = new Channel(sdk);
|
|
4777
4737
|
this.Executor = new Executor(sdk);
|
|
4778
|
-
this.ExecutorV2 = new ExecutorV2(sdk);
|
|
4779
4738
|
this.Endpoint = new Endpoint(sdk);
|
|
4780
4739
|
this.MsgLibConfig = new MsgLibConfig(sdk);
|
|
4781
4740
|
this.MsgLibAuth = new MsgLibAuth(sdk);
|
|
@@ -6176,14 +6135,13 @@ var Counter = class {
|
|
|
6176
6135
|
* @param {aptos.BCS.Uint16} remoteChainId - The remote chain ID.
|
|
6177
6136
|
* @param {aptos.BCS.Uint64 | aptos.BCS.Uint32} fee - The fee amount.
|
|
6178
6137
|
* @param {Uint8Array} adapterParams - The adapter parameters.
|
|
6179
|
-
* @param {Uint8Array} msglibParams - The msglib parameters.
|
|
6180
6138
|
* @returns {aptos.Types.EntryFunctionPayload} The entry function payload.
|
|
6181
6139
|
*/
|
|
6182
|
-
sendToRemotePayload(remoteChainId, fee, adapterParams
|
|
6140
|
+
sendToRemotePayload(remoteChainId, fee, adapterParams) {
|
|
6183
6141
|
const result = {
|
|
6184
6142
|
function: `${this.address}::counter::send_to_remote`,
|
|
6185
6143
|
type_arguments: [],
|
|
6186
|
-
arguments: [remoteChainId, fee, Array.from(adapterParams)
|
|
6144
|
+
arguments: [remoteChainId, fee, Array.from(adapterParams)]
|
|
6187
6145
|
};
|
|
6188
6146
|
return result;
|
|
6189
6147
|
}
|
|
@@ -6194,14 +6152,13 @@ var Counter = class {
|
|
|
6194
6152
|
* @param {aptos.BCS.Uint16} remoteChainId - The remote chain ID.
|
|
6195
6153
|
* @param {aptos.BCS.Uint64 | aptos.BCS.Uint32} fee - The fee amount.
|
|
6196
6154
|
* @param {Uint8Array} adapterParams - The adapter parameters.
|
|
6197
|
-
* @param {Uint8Array} msglibParams - The msglib parameters.
|
|
6198
6155
|
* @returns {Promise<aptos.Types.Transaction>} The transaction result.
|
|
6199
6156
|
*/
|
|
6200
|
-
async sendToRemote(signer, remoteChainId, fee, adapterParams
|
|
6157
|
+
async sendToRemote(signer, remoteChainId, fee, adapterParams) {
|
|
6201
6158
|
const transaction = {
|
|
6202
6159
|
function: `${this.address}::counter::send_to_remote`,
|
|
6203
6160
|
type_arguments: [],
|
|
6204
|
-
arguments: [remoteChainId, fee, Array.from(adapterParams)
|
|
6161
|
+
arguments: [remoteChainId, fee, Array.from(adapterParams)]
|
|
6205
6162
|
};
|
|
6206
6163
|
return this.sdk.sendAndConfirmTransaction(signer, transaction);
|
|
6207
6164
|
}
|
|
@@ -6245,15 +6202,14 @@ var Counter = class {
|
|
|
6245
6202
|
*
|
|
6246
6203
|
* @param {aptos.BCS.Uint16} remoteChainId - The remote chain ID.
|
|
6247
6204
|
* @param {string} adapterParams - The adapter parameters.
|
|
6248
|
-
* @param {string} msglibParams - The msglib parameters.
|
|
6249
6205
|
* @param {boolean} payInZro - Whether to pay the fee in ZRO tokens.
|
|
6250
6206
|
* @returns {Promise<[aptos.BCS.Uint64, aptos.BCS.Uint64]>} A tuple containing the native fee and ZRO fee.
|
|
6251
6207
|
*/
|
|
6252
|
-
async quoteFee(remoteChainId, adapterParams,
|
|
6208
|
+
async quoteFee(remoteChainId, adapterParams, payInZro) {
|
|
6253
6209
|
const payload = {
|
|
6254
6210
|
function: `${this.address}::counter::quote_fee`,
|
|
6255
6211
|
type_arguments: [],
|
|
6256
|
-
arguments: [remoteChainId.toString(), adapterParams,
|
|
6212
|
+
arguments: [remoteChainId.toString(), adapterParams, payInZro]
|
|
6257
6213
|
};
|
|
6258
6214
|
const view = await this.sdk.viewFunction(payload);
|
|
6259
6215
|
return view[0];
|