@layerzerolabs/lz-aptos-sdk-v1 3.0.113 → 3.0.115
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 +1 -1
- 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 +1 -1
- package/deployments/aptos-sandbox-local/executor_fee_lib_router_v3.json +1 -1
- package/deployments/aptos-sandbox-local/executor_fee_lib_v1.json +1 -1
- package/deployments/aptos-sandbox-local/executor_v2_fee_lib_router_v1.json +1 -1
- package/deployments/aptos-sandbox-local/executor_v2_fee_lib_router_v2.json +1 -1
- 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 +50 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +32 -4
- package/dist/index.d.ts +32 -4
- package/dist/index.mjs +50 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# @layerzerolabs/lz-aptos-sdk-v1
|
|
2
2
|
|
|
3
|
+
## 3.0.115
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 4e463b5: humanity endpoint
|
|
8
|
+
- Updated dependencies [4e463b5]
|
|
9
|
+
- @layerzerolabs/lz-definitions@3.0.115
|
|
10
|
+
- @layerzerolabs/lz-serdes@3.0.115
|
|
11
|
+
- @layerzerolabs/lz-utilities@3.0.115
|
|
12
|
+
- @layerzerolabs/lz-movevm-sdk-v2@3.0.115
|
|
13
|
+
- @layerzerolabs/lz-v2-utilities@3.0.115
|
|
14
|
+
|
|
15
|
+
## 3.0.114
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- 327bf23: Publish new official packages at 18 July 2025 by yadong
|
|
20
|
+
- Updated dependencies [327bf23]
|
|
21
|
+
- @layerzerolabs/lz-definitions@3.0.114
|
|
22
|
+
- @layerzerolabs/lz-serdes@3.0.114
|
|
23
|
+
- @layerzerolabs/lz-utilities@3.0.114
|
|
24
|
+
- @layerzerolabs/lz-movevm-sdk-v2@3.0.114
|
|
25
|
+
- @layerzerolabs/lz-v2-utilities@3.0.114
|
|
26
|
+
|
|
3
27
|
## 3.0.113
|
|
4
28
|
|
|
5
29
|
### Patch Changes
|
|
@@ -8,5 +8,5 @@
|
|
|
8
8
|
"v1"
|
|
9
9
|
],
|
|
10
10
|
"bytecodeHash": "d257012f7d58a69eb76e3c11b65ef2c42dccc0a58f9ef424985c940ac8f4dbb3",
|
|
11
|
-
"transactionHash": "
|
|
11
|
+
"transactionHash": "0x54cefb82dee29169229686aff34dda89d40f75beba357d10e1119c643eae3791"
|
|
12
12
|
}
|
|
@@ -8,5 +8,5 @@
|
|
|
8
8
|
"v1"
|
|
9
9
|
],
|
|
10
10
|
"bytecodeHash": "23c574411ac16bca7e6691ff166d3aa695d096ce8e55402b4b310d45449dc7b6",
|
|
11
|
-
"transactionHash": "
|
|
11
|
+
"transactionHash": "0xdf224f4da5ea8b573117c239a692726e12d94ae1b444e07a3b38e22a4a88618b"
|
|
12
12
|
}
|
|
@@ -8,5 +8,5 @@
|
|
|
8
8
|
"v1"
|
|
9
9
|
],
|
|
10
10
|
"bytecodeHash": "f65f21429f10242d85b762e09e3b7b53710987eb99e12f026ae62ee45d8d08a0",
|
|
11
|
-
"transactionHash": "
|
|
11
|
+
"transactionHash": "0x59de01cadb2d957737463b44a4a50f83f688f6e813e89457733c37fa9a4ef8f9"
|
|
12
12
|
}
|
|
@@ -8,5 +8,5 @@
|
|
|
8
8
|
"v1"
|
|
9
9
|
],
|
|
10
10
|
"bytecodeHash": "f194aa4e9a7477a990e3b21a00737523784803b762a074c815bad7732f012b36",
|
|
11
|
-
"transactionHash": "
|
|
11
|
+
"transactionHash": "0x8ddcc33641223f11e6ace87a55e036e67ef836ba46d406a1571ec410bfa9538d"
|
|
12
12
|
}
|
|
@@ -8,5 +8,5 @@
|
|
|
8
8
|
"v1"
|
|
9
9
|
],
|
|
10
10
|
"bytecodeHash": "f3878297b6b9ed6c80080c50ee2bb51ca8238b80dadb47c865327ae5b0e69f33",
|
|
11
|
-
"transactionHash": "
|
|
11
|
+
"transactionHash": "0x1224637ee3c9d3bba15096ade087922b11406cd79a0087207e8443fc7870812e"
|
|
12
12
|
}
|
|
@@ -8,5 +8,5 @@
|
|
|
8
8
|
"v1"
|
|
9
9
|
],
|
|
10
10
|
"bytecodeHash": "88d910540543c7d36f544f1163f8756d3fe4f79d8412660cafd361acaff8dd4c",
|
|
11
|
-
"transactionHash": "
|
|
11
|
+
"transactionHash": "0xab9e90f8758d76620cad90cd293c64c74ce86dd5e70d22492630d205ed321eb7"
|
|
12
12
|
}
|
|
@@ -8,5 +8,5 @@
|
|
|
8
8
|
"v1"
|
|
9
9
|
],
|
|
10
10
|
"bytecodeHash": "c0166105e932208fcdb3421092cff3f0a1aebb5448c28fff4f67ee72543591a3",
|
|
11
|
-
"transactionHash": "
|
|
11
|
+
"transactionHash": "0xf0ac30a519717c661ef24a48d42640aab6e531f9e607fdbce6c576caa93a2011"
|
|
12
12
|
}
|
|
@@ -8,5 +8,5 @@
|
|
|
8
8
|
"v1"
|
|
9
9
|
],
|
|
10
10
|
"bytecodeHash": "3acce5bc015062156dab22b5a18c3a46ca4b0a49feb4108e1b9ff86678417a04",
|
|
11
|
-
"transactionHash": "
|
|
11
|
+
"transactionHash": "0x7919b9e0fbefa42298213fc03b742767774e19be3e71060faf51c70f2d991c5e"
|
|
12
12
|
}
|
|
@@ -8,5 +8,5 @@
|
|
|
8
8
|
"v1"
|
|
9
9
|
],
|
|
10
10
|
"bytecodeHash": "24e119914d5e2ac4a45497ae5b0d696adc5620fdc10c099058b94cc2f612615d",
|
|
11
|
-
"transactionHash": "
|
|
11
|
+
"transactionHash": "0x6daefe0a8139103a8147fc9197bdf52c9913af2b65766b86e62da79a502dfa11"
|
|
12
12
|
}
|
|
@@ -8,5 +8,5 @@
|
|
|
8
8
|
"v1"
|
|
9
9
|
],
|
|
10
10
|
"bytecodeHash": "d36386bf031f909917a6732ee61e6f04d0fc16745f3ebb54d87fa4a118837554",
|
|
11
|
-
"transactionHash": "
|
|
11
|
+
"transactionHash": "0xfe5ebe06aff59404236dd9f4aac1d9150f4d4132ba210ca16f58a2fa2e16e7c2"
|
|
12
12
|
}
|
|
@@ -8,5 +8,5 @@
|
|
|
8
8
|
"v1"
|
|
9
9
|
],
|
|
10
10
|
"bytecodeHash": "f30380d4344631dcb83a661490e6d408572d7919b17acf6260fefd4d6574619f",
|
|
11
|
-
"transactionHash": "
|
|
11
|
+
"transactionHash": "0xf38a63cc971aa16dccd80967b4479bce1e99c0f0467250fb2d18780b5c4cbd57"
|
|
12
12
|
}
|
|
@@ -8,5 +8,5 @@
|
|
|
8
8
|
"v1"
|
|
9
9
|
],
|
|
10
10
|
"bytecodeHash": "2736f4dc14b0a23229cc513f097acfb32643b3bffc8a18997ee243b6af3dc4c6",
|
|
11
|
-
"transactionHash": "
|
|
11
|
+
"transactionHash": "0x78288ce7ee5cd71580b449e6c3ae8b035830f3a308eac0ddda4e62b5af75fb37"
|
|
12
12
|
}
|
|
@@ -8,5 +8,5 @@
|
|
|
8
8
|
"v1"
|
|
9
9
|
],
|
|
10
10
|
"bytecodeHash": "6ffb4bcd73f276cc640cd079fdca64115003648cf4a1566122dca2a25123d7d5",
|
|
11
|
-
"transactionHash": "
|
|
11
|
+
"transactionHash": "0x6e0f522b7b2d29d0ac9d9231544c5e73567d8aaca2836702deba788968f0b4a6"
|
|
12
12
|
}
|
|
@@ -8,5 +8,5 @@
|
|
|
8
8
|
"v1"
|
|
9
9
|
],
|
|
10
10
|
"bytecodeHash": "84b1e1fe02e222ec9509149c860e43a1ea6093d6a3293b58adae3c98d235fa8c",
|
|
11
|
-
"transactionHash": "
|
|
11
|
+
"transactionHash": "0xa7b169c7e0852a7fbcc92ee0a4c087ef715365d4b02a9940cbb9f8c94e2d8fe9"
|
|
12
12
|
}
|
|
@@ -8,5 +8,5 @@
|
|
|
8
8
|
"v1"
|
|
9
9
|
],
|
|
10
10
|
"bytecodeHash": "071fa3b6bdb99dafdc102e220a0a979608d4cc025030e3d8206df010a3fe2d16",
|
|
11
|
-
"transactionHash": "
|
|
11
|
+
"transactionHash": "0x07812c7ad3255d3fb8d1e9361bdc90c81f19a2b7bdad3bb18de3a7ff94aa56bf"
|
|
12
12
|
}
|
|
@@ -8,5 +8,5 @@
|
|
|
8
8
|
"v1"
|
|
9
9
|
],
|
|
10
10
|
"bytecodeHash": "b9de0a84866a9e2bdfd0fddc2922475c45dd53c1113897a9fb689321e8ae4dc9",
|
|
11
|
-
"transactionHash": "
|
|
11
|
+
"transactionHash": "0xaf4be0e4c5b37ff61ae3833bc871ff2938ffe092d80dae967fefbbde744e1264"
|
|
12
12
|
}
|
|
@@ -8,5 +8,5 @@
|
|
|
8
8
|
"v1"
|
|
9
9
|
],
|
|
10
10
|
"bytecodeHash": "814b7738f439d58a25b86045d66fa502b36705a0a249b8083932509bb80a80fa",
|
|
11
|
-
"transactionHash": "
|
|
11
|
+
"transactionHash": "0x05779e9cc3644c2f30bb7658e174274edf817b08b0d7d60efe462068d32b3a37"
|
|
12
12
|
}
|
|
@@ -8,5 +8,5 @@
|
|
|
8
8
|
"v1"
|
|
9
9
|
],
|
|
10
10
|
"bytecodeHash": "117e1b1fa5512d9f6eb611f80360ec2c02f17e803a4bede8b85940aab28ece7f",
|
|
11
|
-
"transactionHash": "
|
|
11
|
+
"transactionHash": "0x8a8fc3f85d767349942d03b59a3f4a72e79bc1d1a2cdeadbed5534c7d79b68de"
|
|
12
12
|
}
|
|
@@ -8,5 +8,5 @@
|
|
|
8
8
|
"v1"
|
|
9
9
|
],
|
|
10
10
|
"bytecodeHash": "db931c72e61301af9b3b2f3b98e859e61e4605d27a6775913175f335c49853d7",
|
|
11
|
-
"transactionHash": "
|
|
11
|
+
"transactionHash": "0x2dc7b8b8da97889385a69be1a24c056bd24ff622cab502ceb1d0fb3eeff218c5"
|
|
12
12
|
}
|
|
@@ -8,5 +8,5 @@
|
|
|
8
8
|
"v1"
|
|
9
9
|
],
|
|
10
10
|
"bytecodeHash": "81e9e5e6e419b7b665fa144fe6381969d905d5a4d319a28996ae94f653c1455b",
|
|
11
|
-
"transactionHash": "
|
|
11
|
+
"transactionHash": "0xbf0b74b7e1540fd70609810f960ef5f7b1edc31643b0998070a7815b8dfc58f5"
|
|
12
12
|
}
|
|
@@ -8,5 +8,5 @@
|
|
|
8
8
|
"v1"
|
|
9
9
|
],
|
|
10
10
|
"bytecodeHash": "b0cc02e8aacfc8586717873bc24f3270ae30764b7007ddb3bec57f6c1a3f5a42",
|
|
11
|
-
"transactionHash": "
|
|
11
|
+
"transactionHash": "0xebc34f128a8da4ccef6207c32df7d44d9fe8642e1b22f4542435a537aec288d2"
|
|
12
12
|
}
|
|
@@ -8,5 +8,5 @@
|
|
|
8
8
|
"v1"
|
|
9
9
|
],
|
|
10
10
|
"bytecodeHash": "79724aa6f5a4cc2515c92b1a723d79a0046dff510db5e135b81e30be74040750",
|
|
11
|
-
"transactionHash": "
|
|
11
|
+
"transactionHash": "0x04dfffd7ca7c90aa3f94b1499fe2be30d5fe48d0ab8b6b8a679d7ae21e5a9435"
|
|
12
12
|
}
|
|
@@ -8,5 +8,5 @@
|
|
|
8
8
|
"v1"
|
|
9
9
|
],
|
|
10
10
|
"bytecodeHash": "91d12ffcc364268cff228bcf251e5dbaae41562c6d59a1751d06d6587c376cd3",
|
|
11
|
-
"transactionHash": "
|
|
11
|
+
"transactionHash": "0x2a5eff8a33fe42660cec92b2433024ea212c734d20eed55763f3f9380936cab8"
|
|
12
12
|
}
|
|
@@ -8,5 +8,5 @@
|
|
|
8
8
|
"v1"
|
|
9
9
|
],
|
|
10
10
|
"bytecodeHash": "58547e2df1a7d482adcc59515a2904ba46c484f58dc1e964fd086cb32ccd8e0c",
|
|
11
|
-
"transactionHash": "
|
|
11
|
+
"transactionHash": "0xe79c9fdb9db2e2da52b249a88afc86629785a651d904597479c1059c983c36c8"
|
|
12
12
|
}
|
|
@@ -8,5 +8,5 @@
|
|
|
8
8
|
"v1"
|
|
9
9
|
],
|
|
10
10
|
"bytecodeHash": "df24ae2f43a5d67db8051cacb0f8c3da583facc4f7b1b1e42d48ebd81bcff410",
|
|
11
|
-
"transactionHash": "
|
|
11
|
+
"transactionHash": "0x2f1b8165cc07d4a39f1a22d9bea2ebc50460a83d74ca09dd0db80a37b7a19779"
|
|
12
12
|
}
|
package/dist/index.cjs
CHANGED
|
@@ -52,6 +52,7 @@ __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,
|
|
55
56
|
EXECUTOR_V2_ADDRESS: () => EXECUTOR_V2_ADDRESS,
|
|
56
57
|
FAUCET_URL: () => FAUCET_URL,
|
|
57
58
|
LAYERZERO_ADDRESS: () => LAYERZERO_ADDRESS,
|
|
@@ -151,6 +152,12 @@ var EXECUTOR_V2_ADDRESS = {
|
|
|
151
152
|
[lzDefinitions.Stage.TESTNET]: "0x1759cc0d3161f1eb79f65847d4feb9d1f74fb79014698a23b16b28b9cd4c37e3",
|
|
152
153
|
[lzDefinitions.Stage.SANDBOX]: "0xf2e1e034475dc0439487dd09dfc3950c462f731599e53a6b015dd85502352e68"
|
|
153
154
|
};
|
|
155
|
+
var EXECUTOR_FEE_LIB_V1_ADDRESS = {
|
|
156
|
+
[lzDefinitions.Stage.MAINNET]: "",
|
|
157
|
+
// MAINNET
|
|
158
|
+
[lzDefinitions.Stage.TESTNET]: "",
|
|
159
|
+
[lzDefinitions.Stage.SANDBOX]: "0x53268a3c075dbe2518b60b5e6f9f8a4df7433f48cd350375538c5f5205d7b6b3"
|
|
160
|
+
};
|
|
154
161
|
var LAYERZERO_APPS_PUBKEY = {
|
|
155
162
|
[lzDefinitions.Stage.MAINNET]: "0xf57e5a95ae0e2b5f999ac14abd0ff73daf64e6e7e2a1fad024f2e44422e88d76",
|
|
156
163
|
// MAINNET
|
|
@@ -3137,6 +3144,34 @@ var ExecutorConfig = class {
|
|
|
3137
3144
|
};
|
|
3138
3145
|
}
|
|
3139
3146
|
};
|
|
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
|
+
};
|
|
3140
3175
|
var MsgLib = class {
|
|
3141
3176
|
/**
|
|
3142
3177
|
* Creates an instance of the MsgLib class.
|
|
@@ -4687,6 +4722,11 @@ var Layerzero = class {
|
|
|
4687
4722
|
* @see {@link Executor}
|
|
4688
4723
|
*/
|
|
4689
4724
|
Executor;
|
|
4725
|
+
/**
|
|
4726
|
+
* The ExecutorV2 instance.
|
|
4727
|
+
* @see {@link ExecutorV2}
|
|
4728
|
+
*/
|
|
4729
|
+
ExecutorV2;
|
|
4690
4730
|
/**
|
|
4691
4731
|
* The Endpoint instance.
|
|
4692
4732
|
* @see {@link Endpoint}
|
|
@@ -4735,6 +4775,7 @@ var Layerzero = class {
|
|
|
4735
4775
|
constructor(sdk) {
|
|
4736
4776
|
this.Channel = new Channel(sdk);
|
|
4737
4777
|
this.Executor = new Executor(sdk);
|
|
4778
|
+
this.ExecutorV2 = new ExecutorV2(sdk);
|
|
4738
4779
|
this.Endpoint = new Endpoint(sdk);
|
|
4739
4780
|
this.MsgLibConfig = new MsgLibConfig(sdk);
|
|
4740
4781
|
this.MsgLibAuth = new MsgLibAuth(sdk);
|
|
@@ -6135,13 +6176,14 @@ var Counter = class {
|
|
|
6135
6176
|
* @param {aptos.BCS.Uint16} remoteChainId - The remote chain ID.
|
|
6136
6177
|
* @param {aptos.BCS.Uint64 | aptos.BCS.Uint32} fee - The fee amount.
|
|
6137
6178
|
* @param {Uint8Array} adapterParams - The adapter parameters.
|
|
6179
|
+
* @param {Uint8Array} msglibParams - The msglib parameters.
|
|
6138
6180
|
* @returns {aptos.Types.EntryFunctionPayload} The entry function payload.
|
|
6139
6181
|
*/
|
|
6140
|
-
sendToRemotePayload(remoteChainId, fee, adapterParams) {
|
|
6182
|
+
sendToRemotePayload(remoteChainId, fee, adapterParams, msglibParams) {
|
|
6141
6183
|
const result = {
|
|
6142
6184
|
function: `${this.address}::counter::send_to_remote`,
|
|
6143
6185
|
type_arguments: [],
|
|
6144
|
-
arguments: [remoteChainId, fee, Array.from(adapterParams)]
|
|
6186
|
+
arguments: [remoteChainId, fee, Array.from(adapterParams), Array.from(msglibParams)]
|
|
6145
6187
|
};
|
|
6146
6188
|
return result;
|
|
6147
6189
|
}
|
|
@@ -6152,13 +6194,14 @@ var Counter = class {
|
|
|
6152
6194
|
* @param {aptos.BCS.Uint16} remoteChainId - The remote chain ID.
|
|
6153
6195
|
* @param {aptos.BCS.Uint64 | aptos.BCS.Uint32} fee - The fee amount.
|
|
6154
6196
|
* @param {Uint8Array} adapterParams - The adapter parameters.
|
|
6197
|
+
* @param {Uint8Array} msglibParams - The msglib parameters.
|
|
6155
6198
|
* @returns {Promise<aptos.Types.Transaction>} The transaction result.
|
|
6156
6199
|
*/
|
|
6157
|
-
async sendToRemote(signer, remoteChainId, fee, adapterParams) {
|
|
6200
|
+
async sendToRemote(signer, remoteChainId, fee, adapterParams, msglibParams) {
|
|
6158
6201
|
const transaction = {
|
|
6159
6202
|
function: `${this.address}::counter::send_to_remote`,
|
|
6160
6203
|
type_arguments: [],
|
|
6161
|
-
arguments: [remoteChainId, fee, Array.from(adapterParams)]
|
|
6204
|
+
arguments: [remoteChainId, fee, Array.from(adapterParams), Array.from(msglibParams)]
|
|
6162
6205
|
};
|
|
6163
6206
|
return this.sdk.sendAndConfirmTransaction(signer, transaction);
|
|
6164
6207
|
}
|
|
@@ -6202,14 +6245,15 @@ var Counter = class {
|
|
|
6202
6245
|
*
|
|
6203
6246
|
* @param {aptos.BCS.Uint16} remoteChainId - The remote chain ID.
|
|
6204
6247
|
* @param {string} adapterParams - The adapter parameters.
|
|
6248
|
+
* @param {string} msglibParams - The msglib parameters.
|
|
6205
6249
|
* @param {boolean} payInZro - Whether to pay the fee in ZRO tokens.
|
|
6206
6250
|
* @returns {Promise<[aptos.BCS.Uint64, aptos.BCS.Uint64]>} A tuple containing the native fee and ZRO fee.
|
|
6207
6251
|
*/
|
|
6208
|
-
async quoteFee(remoteChainId, adapterParams, payInZro) {
|
|
6252
|
+
async quoteFee(remoteChainId, adapterParams, msglibParams, payInZro) {
|
|
6209
6253
|
const payload = {
|
|
6210
6254
|
function: `${this.address}::counter::quote_fee`,
|
|
6211
6255
|
type_arguments: [],
|
|
6212
|
-
arguments: [remoteChainId.toString(), adapterParams, payInZro]
|
|
6256
|
+
arguments: [remoteChainId.toString(), adapterParams, msglibParams, payInZro]
|
|
6213
6257
|
};
|
|
6214
6258
|
const view = await this.sdk.viewFunction(payload);
|
|
6215
6259
|
return view[0];
|