@layerzerolabs/layerzero-v2-ton 3.0.35 → 3.0.36

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.
Files changed (81) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/build/ActionsSerde.test.compiled.json +1 -1
  3. package/build/BaseContract.test.compiled.json +1 -1
  4. package/build/Channel.compiled.json +1 -1
  5. package/build/Channel.permissions.test.compiled.json +1 -1
  6. package/build/ChannelBurn.test.compiled.json +1 -1
  7. package/build/ChannelCommitPacket.test.compiled.json +1 -1
  8. package/build/ChannelConfig.test.compiled.json +1 -1
  9. package/build/ChannelInitialize.test.compiled.json +1 -1
  10. package/build/ChannelMsglibIntegration.test.compiled.json +1 -1
  11. package/build/ChannelMsglibSendCallback.test.compiled.json +1 -1
  12. package/build/ChannelNilify.test.compiled.json +1 -1
  13. package/build/ChannelReceive.test.compiled.json +1 -1
  14. package/build/ChannelReceiveCallback.test.compiled.json +1 -1
  15. package/build/ChannelReceiveView.test.compiled.json +1 -1
  16. package/build/ChannelSend.test.compiled.json +1 -1
  17. package/build/ChannelSerde.test.compiled.json +1 -1
  18. package/build/Controller.assertions.test.compiled.json +1 -1
  19. package/build/Controller.permissions.test.compiled.json +1 -1
  20. package/build/Controller.test.compiled.json +1 -1
  21. package/build/Counter.permissions.test.compiled.json +1 -1
  22. package/build/Counter.setters.test.compiled.json +1 -1
  23. package/build/Counter.test.compiled.json +1 -1
  24. package/build/Dvn.test.compiled.json +1 -1
  25. package/build/DvnPermissions.test.compiled.json +1 -1
  26. package/build/Endpoint.permissions.test.compiled.json +1 -1
  27. package/build/Endpoint.test.compiled.json +1 -1
  28. package/build/EndpointSerde.test.compiled.json +1 -1
  29. package/build/EndpointSetEpConfigDefaults.test.compiled.json +1 -1
  30. package/build/Executor.test.compiled.json +1 -1
  31. package/build/ExecutorPermissions.test.compiled.json +1 -1
  32. package/build/LzClassesSerde.test.compiled.json +1 -1
  33. package/build/MaliciousFeeLib.compiled.json +1 -0
  34. package/build/MsgDataSerde.test.compiled.json +1 -1
  35. package/build/PipelinedOutOfOrderSerde.test.compiled.json +1 -1
  36. package/build/PriceFeedCache.test.compiled.json +1 -1
  37. package/build/PriceFeedCache.test.permissions.compiled.json +1 -1
  38. package/build/PriceFeedCacheSerde.test.compiled.json +1 -1
  39. package/build/PriceFeedFeeLibSerde.test.compiled.json +1 -1
  40. package/build/Proxy.permissions.test.compiled.json +1 -1
  41. package/build/Proxy.test.compiled.json +1 -1
  42. package/build/SmlConnection.permissions.test.compiled.json +1 -1
  43. package/build/SmlConnection.test.compiled.json +1 -1
  44. package/build/SmlManager.permissions.test.compiled.json +1 -1
  45. package/build/SmlManager.test.compiled.json +1 -1
  46. package/build/Uln.test.compiled.json +1 -1
  47. package/build/UlnConnection.test.compiled.json +1 -1
  48. package/build/UlnConnectionPermissions.test.compiled.json +1 -1
  49. package/build/UlnConnectionSerde.test.compiled.json +1 -1
  50. package/build/UlnManagement.test.compiled.json +1 -1
  51. package/build/UlnManager.test.compiled.json +1 -1
  52. package/build/UlnManagerPermissions.test.compiled.json +1 -1
  53. package/build/UlnMsgDataSerde.test.compiled.json +1 -1
  54. package/build/UlnPermissions.test.compiled.json +1 -1
  55. package/build/UlnSend.test.compiled.json +1 -1
  56. package/build/UlnSendWithDvnFeeLib.test.compiled.json +1 -1
  57. package/build/UlnSendWithExecFeeLib.test.compiled.json +1 -1
  58. package/build/UlnSerde.test.compiled.json +1 -1
  59. package/build/WorkerCore.test.compiled.json +1 -1
  60. package/build/WorkerCoreMsgDataSerde.test.compiled.json +1 -1
  61. package/build/badFeeLib1.test.compiled.json +1 -1
  62. package/build/badFeeLib10.test.compiled.json +1 -1
  63. package/build/badFeeLib11.test.compiled.json +1 -1
  64. package/build/badFeeLib12.test.compiled.json +1 -1
  65. package/build/badFeeLib2.test.compiled.json +1 -1
  66. package/build/badFeeLib3.test.compiled.json +1 -1
  67. package/build/badFeeLib4.test.compiled.json +1 -1
  68. package/build/badFeeLib5.test.compiled.json +1 -1
  69. package/build/badFeeLib6.test.compiled.json +1 -1
  70. package/build/badFeeLib7.test.compiled.json +1 -1
  71. package/build/badFeeLib8.test.compiled.json +1 -1
  72. package/build/badFeeLib9.test.compiled.json +1 -1
  73. package/package.json +1 -1
  74. package/src/funC++/classlib.fc +2 -1
  75. package/src/protocol/channel/handler.fc +5 -24
  76. package/src/protocol/channel/storage.fc +1 -1
  77. package/src/protocol/msglibs/ultralightnode/ulnConnection/handler.fc +1 -1
  78. package/src/protocol/msglibs/ultralightnode/ulnManager/handler.fc +3 -3
  79. package/src/protocol/msglibs/ultralightnode/workerFeeLibs/dvnFeeLib/handler.fc +8 -1
  80. package/src/protocol/msglibs/ultralightnode/workerFeeLibs/maliciousFeeLib/handler.fc +9 -0
  81. package/src/protocol/msglibs/ultralightnode/workerFeeLibs/maliciousFeeLib/main.fc +3 -0
@@ -261,7 +261,7 @@ tuple getMsglibInfo(cell $addMsglib) impure inline method_id {
261
261
  return actions;
262
262
  }
263
263
 
264
- ;; @in_opcode UlnManager::OP::SET_DEFAULT_ULN_RECEIVE_CONFIG
264
+ ;; @in_opcode UlnManager::OP::SET_DEFAULT_ULN_SEND_CONFIG
265
265
  tuple setDefaultUlnSendConfig(cell $mdEid) impure inline method_id {
266
266
  (cell $storage, tuple actions) = preamble();
267
267
  cell $sanitizedMdEid = $mdEid.md::MdEid::sanitize();
@@ -329,7 +329,7 @@ tuple setOAppUlnSendConfig(cell $mdObj) impure inline method_id {
329
329
  return actions;
330
330
  }
331
331
 
332
- ;; @in_opcode UlnManager::OP::ADD_ULN_WORKER_INFO
332
+ ;; @in_opcode UlnManager::OP::REGISTER_WORKER_FEELIB_BYTECODE
333
333
  tuple registerWorkerFeelibBytecode(cell $ulnWorkerFeelibBytecode) impure inline method_id {
334
334
  (cell $storage, tuple actions) = preamble();
335
335
 
@@ -361,11 +361,11 @@ tuple registerWorkerFeelibBytecode(cell $ulnWorkerFeelibBytecode) impure inline
361
361
  tuple addWorkerFeelibToUln(cell $UlnWorkerFeelibInfo) impure inline method_id {
362
362
  (cell $storage, tuple actions) = preamble();
363
363
 
364
+ ;; invariant: guarantees that getCaller() == $UlnWorkerFeelibInfo.workerAddress
364
365
  cell $sanitizedUlnWorkerFeelibInfo = $UlnWorkerFeelibInfo
365
366
  .UlnWorkerFeelibInfo::sanitize()
366
367
  .cl::set(UlnWorkerFeelibInfo::workerAddress, getCaller());
367
368
 
368
- ;; invariant: checkPermissions guarantees that getCaller() == $UlnWorkerFeelibInfo.workerAddress
369
369
  int bytecodeId = $sanitizedUlnWorkerFeelibInfo
370
370
  .cl::get<cellRef>(UlnWorkerFeelibInfo::workerFeelibBytecode)
371
371
  .cell_hash();
@@ -8,8 +8,15 @@
8
8
  #include "../common.fc";
9
9
  #include "storage.fc";
10
10
 
11
- const int DvnFeelib::EXECUTE_FIXED_BYTES = 260; ;; encoded: funcSigHash + params -> 4 + (32 * 2)
11
+ ;; From DVNFeeLib.sol
12
+ ;; encoded( execute(ExecuteParam[]) ):
13
+ ;; funcSigHash + params -> 4 + 32(Offset of the array) + 32(array size) + 32(first element start offset)
14
+ ;; + 32(vid) + 32(target) + 32(calldata-offset) + 32(expiration) + 32(signatures-offset) = 260
15
+ const int DvnFeelib::EXECUTE_FIXED_BYTES = 260;
12
16
  const int DvnFeelib::SIGNATURE_RAW_BYTES = 65; ;; not encoded
17
+ ;; verify(bytes calldata _packetHeader, bytes32 _payloadHash, uint64 _confirmations)\
18
+ ;; 4 + 32(header offset) + 32(payloadHash) + 32(confirmations, 8 -> 32 padded) + 32(header-size) + 96(81 -> header-padded) = 228,
19
+ ;; padded to multiples of 32 = 256, encoded as bytes with an 32 byte for the bytes size = 288
13
20
  const int DvnFeelib::VERIFY_BYTES_ULN = 288;
14
21
 
15
22
  ;; just validate options
@@ -0,0 +1,9 @@
1
+ #include "../../../../../funC++/utils.fc";
2
+
3
+ tuple ulnWorker::quote(tuple inputs) method_id {
4
+ int x = 0;
5
+ while (true) {
6
+ x += 1;
7
+ }
8
+ return unsafeTuple([x]);
9
+ }
@@ -0,0 +1,3 @@
1
+ #include "handler.fc";
2
+
3
+ () main() { }