@layerzerolabs/lz-movevm-sdk-v2 3.0.27 → 3.0.28

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,17 @@
1
1
  # @layerzerolabs/lz-movevm-sdk-v2
2
2
 
3
+ ## 3.0.28
4
+
5
+ ### Patch Changes
6
+
7
+ - 0ced4cd: fix zksync artifacts
8
+ - Updated dependencies [0ced4cd]
9
+ - @layerzerolabs/lz-definitions@3.0.28
10
+ - @layerzerolabs/lz-serdes@3.0.28
11
+ - @layerzerolabs/lz-utilities@3.0.28
12
+ - @layerzerolabs/lz-v2-utilities@3.0.28
13
+ - @layerzerolabs/move-definitions@3.0.28
14
+
3
15
  ## 3.0.27
4
16
 
5
17
  ### Patch Changes
package/dist/index.cjs CHANGED
@@ -585,6 +585,32 @@ var DvnWorker = class {
585
585
  functionArgumentTypes: ["address", "address"]
586
586
  };
587
587
  }
588
+ /**
589
+ * Creates a payload for verifying a packet.
590
+ *
591
+ * @param {Date} date - The date of the transaction.
592
+ * @param {PacketV1Codec} codec - The codec for the packet.
593
+ * @param {string} receiveMessageLibAddress - The address of the receive message library.
594
+ * @param {number} inboundConfirmation - The number of inbound confirmations.
595
+ * @param {number} expiration - The expiration time.
596
+ * @param {string} signatures - The signatures for the transaction.
597
+ * @returns {InputEntryFunctionData} The input entry function data, used to build the transaction.
598
+ */
599
+ createVerifyPayload(date, codec, receiveMessageLibAddress, inboundConfirmation, expiration, signatures) {
600
+ const payload = {
601
+ function: `${this.module[0]}::${this.module[1]}::verify`,
602
+ functionArguments: [
603
+ lzUtilities.arrayify(codec.header()),
604
+ lzUtilities.arrayify(codec.payloadHash()),
605
+ BigInt(inboundConfirmation),
606
+ receiveMessageLibAddress,
607
+ BigInt(expiration) + BigInt(date.getTime()),
608
+ lzUtilities.arrayify(signatures)
609
+ ],
610
+ functionArgumentTypes: ["vector<u8>", "vector<u8>", "u64", "address", "u64", "vector<u8>"]
611
+ };
612
+ return payload;
613
+ }
588
614
  };
589
615
  var initializeDvnScriptHex = (deployerAddressHex, dvnAddressHex, uln302AddressHex) => {
590
616
  const stdAddressHex = "0000000000000000000000000000000000000000000000000000000000000001";