@layerzerolabs/lz-movevm-sdk-v2 3.0.84-aptos-301.0 → 3.0.84

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 CHANGED
@@ -1,5 +1,41 @@
1
1
  # @layerzerolabs/lz-movevm-sdk-v2
2
2
 
3
+ ## 3.0.84
4
+
5
+ ### Patch Changes
6
+
7
+ - 3161729: lens
8
+ - Updated dependencies [3161729]
9
+ - @layerzerolabs/lz-definitions@3.0.84
10
+ - @layerzerolabs/lz-serdes@3.0.84
11
+ - @layerzerolabs/lz-utilities@3.0.84
12
+ - @layerzerolabs/lz-v2-utilities@3.0.84
13
+ - @layerzerolabs/move-definitions@3.0.84
14
+
15
+ ## 3.0.83
16
+
17
+ ### Patch Changes
18
+
19
+ - 6f36477: add flags for ton sdk to print tx log
20
+ - Updated dependencies [6f36477]
21
+ - @layerzerolabs/lz-definitions@3.0.83
22
+ - @layerzerolabs/lz-serdes@3.0.83
23
+ - @layerzerolabs/lz-utilities@3.0.83
24
+ - @layerzerolabs/lz-v2-utilities@3.0.83
25
+ - @layerzerolabs/move-definitions@3.0.83
26
+
27
+ ## 3.0.82
28
+
29
+ ### Patch Changes
30
+
31
+ - e0e402e: animechain
32
+ - Updated dependencies [e0e402e]
33
+ - @layerzerolabs/lz-definitions@3.0.82
34
+ - @layerzerolabs/lz-serdes@3.0.82
35
+ - @layerzerolabs/lz-utilities@3.0.82
36
+ - @layerzerolabs/lz-v2-utilities@3.0.82
37
+ - @layerzerolabs/move-definitions@3.0.82
38
+
3
39
  ## 3.0.81
4
40
 
5
41
  ### Patch Changes
package/dist/index.cjs CHANGED
@@ -454,35 +454,6 @@ var DvnWorker = class {
454
454
  throw e;
455
455
  }
456
456
  }
457
- async createUln301ForDVNPayload(uln301Address) {
458
- if (await this.sdk.isObjectAddress(this.module[0])) {
459
- const functionIdOrBytecode = uln301DvnScriptHex(
460
- this.sdk.accounts.deploy_to_object,
461
- uln301Address
462
- );
463
- const functionArguments = [this.module[0]];
464
- const functionArgumentTypes = ["address"];
465
- return {
466
- function: functionIdOrBytecode,
467
- functionArguments,
468
- functionArgumentTypes
469
- };
470
- }
471
- throw new Error("Only supported object deployment");
472
- }
473
- /**
474
- * Gets the opt in/out status of a worker
475
- * @param uln301Address - The ULN 301 address
476
- * @returns {Promise<boolean>} The opt in/out status of the worker
477
- */
478
- async getWorkerConfigForFeeLibRoutingOptIn(uln301Address) {
479
- const view = await this.sdk.viewFunction({
480
- functionName: `${uln301Address}::msglib::worker_config_for_fee_lib_routing_opt_in`,
481
- functionArgs: [this.module[0]],
482
- functionArgTypes: ["address"]
483
- });
484
- return view[0];
485
- }
486
457
  /**
487
458
  * Gets the destination configuration for the specified endpoint.
488
459
  *
@@ -513,19 +484,6 @@ var DvnWorker = class {
513
484
  throw e;
514
485
  }
515
486
  }
516
- /**
517
- * Creates a payload for setting the supported message libraries.
518
- *
519
- * @param {string[]} msglibs - The supported message libraries.
520
- * @returns {InputEntryFunctionData} The input entry function data.
521
- */
522
- createSetSupportedMsglibsPayload(msglibs, expiration, signatures) {
523
- return {
524
- function: `${this.module[0]}::${this.module[1]}::set_supported_msglibs`,
525
- functionArguments: [msglibs, expiration, lzUtilities.arrayify(signatures)],
526
- functionArgumentTypes: ["vector<address>", "u64", "vector<u8>"]
527
- };
528
- }
529
487
  /**
530
488
  * Creates a payload for setting the destination configuration.
531
489
  *
@@ -664,11 +622,6 @@ var initializeDvnScriptHex = (deployerAddressHex, dvnAddressHex, uln302AddressHe
664
622
  uln302AddressHex = lzV2Utilities.trim0x(lzUtilities.padify(uln302AddressHex));
665
623
  return `a11ceb0b060000000701000a030a1a042402052657077d9201088f028001068f031d000000010102020303040405030400010606070101000708090002080a020003090b0200010508060c05050a020a02030a0205170c0101010303030a020a05060c0a020a0a020303030303030303030a020a050002060c05010c010203060a09000303010a0900010a02010507060c050a050a0a02030a050502060c010866726f6d5f62637306766563746f720364766e066d73676c6962166f626a6563745f636f64655f6465706c6f796d656e74166765745f636f64655f6f626a6563745f7369676e657205736c6963650a746f5f616464726573730a696e697469616c697a652c7365745f776f726b65725f636f6e6669675f666f725f6665655f6c69625f726f7574696e675f6f70745f696e${stdAddressHex}${dvnAddressHex}${uln302AddressHex}${deployerAddressHex}03082000000000000000030840000000000000000a0501000a0a020100000001b0010b000b0111000c080e080c110e0341050c170a1707001906000000000000000021041005140b11010601000000000000002707020c100600000000000000000c14090c090b1707001a0c0c0a0904250b14060100000000000000160c140527080c090a140a0c23043b0a140700180c1a0e030a1a0b1a07001638000c0f0d100b0f11024409051e0e0641050c180a1807001906000000000000000021044505490b11010601000000000000002707020c1e0600000000000000000c15090c0a0b1807001a0c0e0a0a045a0b15060100000000000000160c15055c080c0a0a150a0e2304700a150700180c1c0e060a1c0b1c07001638000c1d0d1e0b1d1102440905530e0441050c190a1907011906000000000000000021047a057e0b11010601000000000000002707030c130600000000000000000c16090c0b0b1907011a0c0d0a0b048f010b16060100000000000000160c16059101080c0b0a160a0d2304a4010a160701180c1b0e040a1b0b1b07011638000c120d130b1244080588010a110b020b100b130b050b1e0b0711030b1108110402`;
666
624
  };
667
- var uln301DvnScriptHex = (deployerAddressHex, uln301AddressHex) => {
668
- deployerAddressHex = lzV2Utilities.trim0x(lzUtilities.padify(deployerAddressHex));
669
- uln301AddressHex = lzV2Utilities.trim0x(lzUtilities.padify(uln301AddressHex));
670
- return `a11ceb0b060000000501000403040a050e0b071962087b40000001010102000100000303020002060c05010c0002060c01066d73676c6962166f626a6563745f636f64655f6465706c6f796d656e74166765745f636f64655f6f626a6563745f7369676e65722c7365745f776f726b65725f636f6e6669675f666f725f6665655f6c69625f726f7574696e675f6f70745f696e${uln301AddressHex}${deployerAddressHex}000001080b000b0111000c020e0208110102`;
671
- };
672
625
  var Endpoint = class {
673
626
  /**
674
627
  * Creates an instance of Endpoint.
@@ -1457,35 +1410,6 @@ var Executor = class {
1457
1410
  gasOptions
1458
1411
  );
1459
1412
  }
1460
- async createUln301ForExecutorPayload(uln301Address) {
1461
- if (await this.sdk.isObjectAddress(this.module[0])) {
1462
- const functionIdOrBytecode = uln301ExecutorScriptHex(
1463
- this.sdk.accounts.deploy_to_object,
1464
- uln301Address
1465
- );
1466
- const functionArguments = [this.module[0]];
1467
- const functionArgumentTypes = ["address"];
1468
- return {
1469
- function: functionIdOrBytecode,
1470
- functionArguments,
1471
- functionArgumentTypes
1472
- };
1473
- }
1474
- throw new Error("Only supported object deployment");
1475
- }
1476
- /**
1477
- * Gets the opt in/out status of a worker
1478
- * @param uln301Address - The ULN 301 address
1479
- * @returns {Promise<boolean>} The opt in/out status of the worker
1480
- */
1481
- async getWorkerConfigForFeeLibRoutingOptIn(uln301Address) {
1482
- const view = await this.sdk.viewFunction({
1483
- functionName: `${uln301Address}::msglib::worker_config_for_fee_lib_routing_opt_in`,
1484
- functionArgs: [this.module[0]],
1485
- functionArgTypes: ["address"]
1486
- });
1487
- return view[0];
1488
- }
1489
1413
  /**
1490
1414
  * Gets the destination configuration for the specified endpoint.
1491
1415
  *
@@ -1929,11 +1853,6 @@ var initializeExecutorScriptHex = (deployerAddressHex, executorAddressHex, uln30
1929
1853
  uln302AddressHex = lzV2Utilities.trim0x(lzUtilities.padify(uln302AddressHex));
1930
1854
  return `a11ceb0b060000000701000a030a1a042402052648076e970108850280010685030e000000010102020303040405030400010606070101000708090002080a020003090b0200010507060c0505050a020a0205100c010103030a020a05060c0303030303030a020a050002060c05010c010203060a09000303010a0900010a02010506060c05050a050a050502060c010866726f6d5f62637306766563746f72086578656375746f72066d73676c6962166f626a6563745f636f64655f6465706c6f796d656e74166765745f636f64655f6f626a6563745f7369676e657205736c6963650a746f5f616464726573730a696e697469616c697a652c7365745f776f726b65725f636f6e6669675f666f725f6665655f6c69625f726f7574696e675f6f70745f696e${stdAddressHex}${executorAddressHex}${uln302AddressHex}${deployerAddressHex}030820000000000000000a0501000000017b0b000b0111000c070e070c0e0e0441050c110a1107001906000000000000000021041005140b0e010601000000000000002707010c0d0600000000000000000c0f090c080b1107001a0c0a0a0804250b0f060100000000000000160c0f0527080c080a0f0a0a23043b0a0f0700180c130e040a130b1307001638000c0c0d0d0b0c11024409051e0e0541050c120a1207001906000000000000000021044505490b0e010601000000000000002707010c160600000000000000000c10090c090b1207001a0c0b0a09045a0b10060100000000000000160c10055c080c090a100a0b2304700a100700180c140e050a140b1407001638000c150d160b151102440905530a0e0b020b030b0d0b160b0611030b0e08110402`;
1931
1855
  };
1932
- var uln301ExecutorScriptHex = (deployerAddressHex, uln301AddressHex) => {
1933
- deployerAddressHex = lzV2Utilities.trim0x(lzUtilities.padify(deployerAddressHex));
1934
- uln301AddressHex = lzV2Utilities.trim0x(lzUtilities.padify(uln301AddressHex));
1935
- return `a11ceb0b060000000501000403040a050e0b071962087b40000001010102000100000303020002060c05010c0002060c01066d73676c6962166f626a6563745f636f64655f6465706c6f796d656e74166765745f636f64655f6f626a6563745f7369676e65722c7365745f776f726b65725f636f6e6669675f666f725f6665655f6c69625f726f7574696e675f6f70745f696e${uln301AddressHex}${deployerAddressHex}000001080b000b0111000c020e0208110102`;
1936
- };
1937
1856
  function asciiToHex(str) {
1938
1857
  let hex = "";
1939
1858
  for (let i = 0; i < str.length; i++) {