@layerzerolabs/layerzero-v2-ton 3.0.29 → 3.0.30-ton.0

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 (116) hide show
  1. package/build/ActionsSerde.test.compiled.json +1 -1
  2. package/build/AllStorages.compiled.json +1 -1
  3. package/build/AllStorages.test.compiled.json +1 -1
  4. package/build/BaseContract.test.compiled.json +1 -1
  5. package/build/Channel.compiled.json +1 -1
  6. package/build/Channel.permissions.test.compiled.json +1 -1
  7. package/build/ChannelBurn.test.compiled.json +1 -1
  8. package/build/ChannelCommitPacket.test.compiled.json +1 -1
  9. package/build/ChannelConfig.test.compiled.json +1 -1
  10. package/build/ChannelInitialize.test.compiled.json +1 -1
  11. package/build/ChannelMsglibIntegration.test.compiled.json +1 -1
  12. package/build/ChannelMsglibSendCallback.test.compiled.json +1 -1
  13. package/build/ChannelNilify.test.compiled.json +1 -1
  14. package/build/ChannelReceive.test.compiled.json +1 -1
  15. package/build/ChannelReceiveCallback.test.compiled.json +1 -1
  16. package/build/ChannelReceiveView.test.compiled.json +1 -1
  17. package/build/ChannelSend.test.compiled.json +1 -1
  18. package/build/ChannelSerde.test.compiled.json +1 -1
  19. package/build/Classlib.test.compiled.json +1 -1
  20. package/build/ComputeDataSizeGas.test.compiled.json +1 -1
  21. package/build/Connection.compiled.json +1 -1
  22. package/build/Controller.assertions.test.compiled.json +1 -1
  23. package/build/Controller.compiled.json +1 -1
  24. package/build/Controller.permissions.test.compiled.json +1 -1
  25. package/build/Controller.test.compiled.json +1 -1
  26. package/build/Counter.compiled.json +1 -1
  27. package/build/Counter.permissions.test.compiled.json +1 -1
  28. package/build/Counter.setters.test.compiled.json +1 -1
  29. package/build/Counter.test.compiled.json +1 -1
  30. package/build/Dvn.compiled.json +1 -1
  31. package/build/Dvn.test.compiled.json +1 -1
  32. package/build/DvnFeeLib.compiled.json +1 -1
  33. package/build/DvnFeeLibSerde.test.compiled.json +1 -1
  34. package/build/DvnPermissions.test.compiled.json +1 -1
  35. package/build/DvnSerde.test.compiled.json +1 -1
  36. package/build/Endpoint.compiled.json +1 -1
  37. package/build/Endpoint.permissions.test.compiled.json +1 -1
  38. package/build/Endpoint.test.compiled.json +1 -1
  39. package/build/EndpointSerde.test.compiled.json +1 -1
  40. package/build/EndpointSetEpConfigDefaults.test.compiled.json +1 -1
  41. package/build/Executor.compiled.json +1 -1
  42. package/build/Executor.test.compiled.json +1 -1
  43. package/build/ExecutorFeeLib.compiled.json +1 -1
  44. package/build/ExecutorFeeLibSerde.test.compiled.json +1 -1
  45. package/build/ExecutorPermissions.test.compiled.json +1 -1
  46. package/build/ExecutorSerde.test.compiled.json +1 -1
  47. package/build/LzClasses.test.compiled.json +1 -1
  48. package/build/LzClassesSerde.test.compiled.json +1 -1
  49. package/build/LzUtil.test.compiled.json +1 -1
  50. package/build/MsgData.test.compiled.json +1 -1
  51. package/build/MsgDataSerde.test.compiled.json +1 -1
  52. package/build/MsglibPacketCodec.test.compiled.json +1 -1
  53. package/build/PipelinedOutOfOrder.test.compiled.json +1 -1
  54. package/build/PipelinedOutOfOrderSerde.test.compiled.json +1 -1
  55. package/build/PriceFeedCache.compiled.json +1 -1
  56. package/build/PriceFeedCache.test.compiled.json +1 -1
  57. package/build/PriceFeedCache.test.permissions.compiled.json +1 -1
  58. package/build/PriceFeedCacheSerde.test.compiled.json +1 -1
  59. package/build/PriceFeedFeeLibSerde.test.compiled.json +1 -1
  60. package/build/Proxy.compiled.json +1 -1
  61. package/build/Proxy.permissions.test.compiled.json +1 -1
  62. package/build/Proxy.test.compiled.json +1 -1
  63. package/build/SmlConnection.compiled.json +1 -1
  64. package/build/SmlConnection.permissions.test.compiled.json +1 -1
  65. package/build/SmlConnection.test.compiled.json +1 -1
  66. package/build/SmlManager.compiled.json +1 -1
  67. package/build/SmlManager.permissions.test.compiled.json +1 -1
  68. package/build/SmlManager.test.compiled.json +1 -1
  69. package/build/Uln.compiled.json +1 -1
  70. package/build/Uln.test.compiled.json +1 -1
  71. package/build/UlnConnection.compiled.json +1 -1
  72. package/build/UlnConnection.test.compiled.json +1 -1
  73. package/build/UlnConnectionPermissions.test.compiled.json +1 -1
  74. package/build/UlnConnectionSerde.test.compiled.json +1 -1
  75. package/build/UlnManagement.test.compiled.json +1 -1
  76. package/build/UlnManager.compiled.json +1 -1
  77. package/build/UlnManager.test.compiled.json +1 -1
  78. package/build/UlnManagerPermissions.test.compiled.json +1 -1
  79. package/build/UlnManagerUtil.test.compiled.json +1 -1
  80. package/build/UlnMsgDataSerde.test.compiled.json +1 -1
  81. package/build/UlnPermissions.test.compiled.json +1 -1
  82. package/build/UlnReceiveConfig.test.compiled.json +1 -1
  83. package/build/UlnSend.test.compiled.json +1 -1
  84. package/build/UlnSendConfig.test.compiled.json +1 -1
  85. package/build/UlnSendWithDvnFeeLib.test.compiled.json +1 -1
  86. package/build/UlnSendWithExecFeeLib.test.compiled.json +1 -1
  87. package/build/UlnSendWorkerFactory.test.compiled.json +1 -1
  88. package/build/UlnSerde.test.compiled.json +1 -1
  89. package/build/UlnUtil.test.compiled.json +1 -1
  90. package/build/WorkerCore.test.compiled.json +1 -1
  91. package/build/WorkerCoreMsgDataSerde.test.compiled.json +1 -1
  92. package/build/WorkerCoreSerde.test.compiled.json +1 -1
  93. package/build/badFeeLib1.test.compiled.json +1 -1
  94. package/build/badFeeLib10.test.compiled.json +1 -1
  95. package/build/badFeeLib11.test.compiled.json +1 -1
  96. package/build/badFeeLib12.test.compiled.json +1 -1
  97. package/build/badFeeLib2.test.compiled.json +1 -1
  98. package/build/badFeeLib3.test.compiled.json +1 -1
  99. package/build/badFeeLib4.test.compiled.json +1 -1
  100. package/build/badFeeLib5.test.compiled.json +1 -1
  101. package/build/badFeeLib6.test.compiled.json +1 -1
  102. package/build/badFeeLib7.test.compiled.json +1 -1
  103. package/build/badFeeLib8.test.compiled.json +1 -1
  104. package/build/badFeeLib9.test.compiled.json +1 -1
  105. package/package.json +1 -1
  106. package/src/classes/msgdata/LzSend.fc +6 -6
  107. package/src/funC++/classlib.fc +22 -0
  108. package/src/protocol/msglibs/ultralightnode/ulnConnection/handler.fc +5 -0
  109. package/src/workers/core/abstract/workerHandler.fc +15 -5
  110. package/src/workers/core/interface.fc +1 -0
  111. package/src/workers/dvn/handler.fc +5 -0
  112. package/src/workers/dvn/main.fc +2 -0
  113. package/src/workers/executor/handler.fc +6 -2
  114. package/src/workers/executor/main.fc +2 -0
  115. package/src/workers/msgdata/ClaimTon.fc +18 -0
  116. package/src/workers/proxy/handler.fc +2 -2
@@ -106,8 +106,12 @@ tuple setAdmins(cell $addressList) impure inline {
106
106
  return _setAdmins(emptyActions(), $addressList);
107
107
  }
108
108
 
109
- tuple claimTon(cell $coinsAmount) impure inline {
110
- return _claimTon(emptyActions(), $coinsAmount);
109
+ tuple claimTon(cell $claimTon) impure inline {
110
+ return _claimTon(emptyActions(), $claimTon);
111
+ }
112
+
113
+ tuple claimTonFromProxy(cell $claimTon) impure inline {
114
+ return _claimTonFromProxy(emptyActions(), $claimTon);
111
115
  }
112
116
 
113
117
  tuple setProxy(cell $setAddress) impure inline {
@@ -14,6 +14,8 @@ tuple _executeOpcode(int op, cell $md) impure inline {
14
14
  return setAdmins($md);
15
15
  } elseif (op == Worker::OP::CLAIM_TON) {
16
16
  return claimTon($md);
17
+ } elseif (op == Worker::OP::CLAIM_TON_FROM_PROXY) {
18
+ return claimTonFromProxy($md);
17
19
  } elseif (op == Worker::OP::CALL_VIA_PROXY) {
18
20
  return callViaProxy($md);
19
21
  } elseif (op == Worker::OP::SET_PROXY) {
@@ -0,0 +1,18 @@
1
+ #include "../../funC++/classlib.fc";
2
+
3
+ ;; required storage name
4
+ const int md::ClaimTon::NAME = "claimTon"u;
5
+
6
+ ;; field names
7
+ const int md::ClaimTon::amount = 0;
8
+ const int md::ClaimTon::target = 1;
9
+
10
+ cell md::ClaimTon::New(int amount, int target) inline method_id {
11
+ return cl::declare(
12
+ md::ClaimTon::NAME,
13
+ unsafeTuple([
14
+ [cl::t::coins, amount], ;; md::ClaimTon::amount
15
+ [cl::t::address, target] ;; md::ClaimTon::target
16
+ ])
17
+ );
18
+ }
@@ -38,8 +38,8 @@ tuple setAdmins(cell $addressList) impure inline {
38
38
  return _setAdmins(emptyActions(), $addressList);
39
39
  }
40
40
 
41
- tuple claimTon(cell $coinsAmount) impure inline {
42
- return _claimTon(emptyActions(), $coinsAmount);
41
+ tuple claimTon(cell $claimTon) impure inline {
42
+ return _claimTon(emptyActions(), $claimTon);
43
43
  }
44
44
 
45
45
  tuple callContract(cell $executeParams) impure inline {