@layerzerolabs/layerzero-v2-ton 3.0.12-ton.0 → 3.0.18-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 (211) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/package.json +15 -4
  3. package/src/classes/lz/EpConfig.fc +3 -3
  4. package/src/classes/lz/Packet.fc +16 -3
  5. package/src/classes/lz/Path.fc +10 -1
  6. package/src/classes/msgdata/ChannelNonceInfo.fc +3 -3
  7. package/src/classes/msgdata/Deploy.fc +15 -3
  8. package/src/classes/msgdata/LzReceivePrepare.fc +18 -0
  9. package/src/classes/msgdata/LzSend.fc +1 -1
  10. package/src/classes/msgdata/OptionsV2.fc +7 -4
  11. package/src/funC++/abstract/contractMainAbstract.fc +12 -1
  12. package/src/funC++/abstract/handlerAbstract.fc +10 -2
  13. package/src/funC++/actions/call.fc +5 -3
  14. package/src/funC++/actions/dispatch.fc +10 -6
  15. package/src/funC++/baseInterface.fc +9 -8
  16. package/src/funC++/classlib.fc +30 -33
  17. package/src/funC++/constants.fc +2 -2
  18. package/src/funC++/contractMain.fc +2 -0
  19. package/src/funC++/dataStructures/AddressList.fc +89 -0
  20. package/src/funC++/dataStructures/DeterministicInsertionCircularQueue.fc +1 -1
  21. package/src/funC++/dataStructures/PipelinedOutOfOrder.fc +25 -1
  22. package/src/funC++/handlerCore.fc +2 -0
  23. package/src/funC++/stdlib.fc +1 -1
  24. package/src/funC++/testutils.fc +99 -0
  25. package/src/funC++/utils.fc +66 -2
  26. package/src/multisig/bocs/MultiSig.compiled.json +5 -0
  27. package/src/multisig/bocs/MultiSigOrder.compiled.json +5 -0
  28. package/tests/baseContractTest.fc +15 -12
  29. package/build/AllStorages.boc +0 -0
  30. package/build/AllStorages.compiled.json +0 -1
  31. package/build/AllStorages.fif +0 -4164
  32. package/build/AllStorages.test.boc +0 -0
  33. package/build/AllStorages.test.compiled.json +0 -1
  34. package/build/AllStorages.test.fif +0 -1831
  35. package/build/BaseContract.test.boc +0 -0
  36. package/build/BaseContract.test.compiled.json +0 -1
  37. package/build/BaseContract.test.fif +0 -3553
  38. package/build/Channel.boc +0 -0
  39. package/build/Channel.compiled.json +0 -1
  40. package/build/Channel.fif +0 -5001
  41. package/build/Channel.permissions.test.boc +0 -0
  42. package/build/Channel.permissions.test.compiled.json +0 -1
  43. package/build/Channel.permissions.test.fif +0 -7569
  44. package/build/ChannelBurn.test.boc +0 -0
  45. package/build/ChannelBurn.test.compiled.json +0 -1
  46. package/build/ChannelBurn.test.fif +0 -7454
  47. package/build/ChannelCommitPacket.test.boc +0 -0
  48. package/build/ChannelCommitPacket.test.compiled.json +0 -1
  49. package/build/ChannelCommitPacket.test.fif +0 -7981
  50. package/build/ChannelConfig.test.boc +0 -0
  51. package/build/ChannelConfig.test.compiled.json +0 -1
  52. package/build/ChannelConfig.test.fif +0 -7442
  53. package/build/ChannelInitialize.test.boc +0 -0
  54. package/build/ChannelInitialize.test.compiled.json +0 -1
  55. package/build/ChannelInitialize.test.fif +0 -7289
  56. package/build/ChannelMsglibIntegration.test.boc +0 -0
  57. package/build/ChannelMsglibIntegration.test.compiled.json +0 -1
  58. package/build/ChannelMsglibIntegration.test.fif +0 -7404
  59. package/build/ChannelMsglibSendCallback.test.boc +0 -0
  60. package/build/ChannelMsglibSendCallback.test.compiled.json +0 -1
  61. package/build/ChannelMsglibSendCallback.test.fif +0 -7711
  62. package/build/ChannelNilify.test.boc +0 -0
  63. package/build/ChannelNilify.test.compiled.json +0 -1
  64. package/build/ChannelNilify.test.fif +0 -7672
  65. package/build/ChannelReceive.test.boc +0 -0
  66. package/build/ChannelReceive.test.compiled.json +0 -1
  67. package/build/ChannelReceive.test.fif +0 -7702
  68. package/build/ChannelReceiveCallback.test.boc +0 -0
  69. package/build/ChannelReceiveCallback.test.compiled.json +0 -1
  70. package/build/ChannelReceiveCallback.test.fif +0 -7549
  71. package/build/ChannelReceiveView.test.boc +0 -0
  72. package/build/ChannelReceiveView.test.compiled.json +0 -1
  73. package/build/ChannelReceiveView.test.fif +0 -7352
  74. package/build/ChannelSend.test.boc +0 -0
  75. package/build/ChannelSend.test.compiled.json +0 -1
  76. package/build/ChannelSend.test.fif +0 -7658
  77. package/build/Classlib.test.boc +0 -0
  78. package/build/Classlib.test.compiled.json +0 -1
  79. package/build/Classlib.test.fif +0 -4728
  80. package/build/Connection.boc +0 -0
  81. package/build/Connection.compiled.json +0 -1
  82. package/build/Connection.fif +0 -3503
  83. package/build/Connection.test.boc +0 -0
  84. package/build/Connection.test.compiled.json +0 -1
  85. package/build/Connection.test.fif +0 -6575
  86. package/build/Controller.assertions.test.boc +0 -0
  87. package/build/Controller.assertions.test.compiled.json +0 -1
  88. package/build/Controller.assertions.test.fif +0 -6130
  89. package/build/Controller.boc +0 -0
  90. package/build/Controller.compiled.json +0 -1
  91. package/build/Controller.fif +0 -3195
  92. package/build/Controller.permissions.test.boc +0 -0
  93. package/build/Controller.permissions.test.compiled.json +0 -1
  94. package/build/Controller.permissions.test.fif +0 -6237
  95. package/build/Controller.test.boc +0 -0
  96. package/build/Controller.test.compiled.json +0 -1
  97. package/build/Controller.test.fif +0 -6400
  98. package/build/Counter.boc +0 -0
  99. package/build/Counter.compiled.json +0 -1
  100. package/build/Counter.fif +0 -4809
  101. package/build/Counter.permissions.test.boc +0 -0
  102. package/build/Counter.permissions.test.compiled.json +0 -1
  103. package/build/Counter.permissions.test.fif +0 -7106
  104. package/build/Counter.setters.test.boc +0 -0
  105. package/build/Counter.setters.test.compiled.json +0 -1
  106. package/build/Counter.setters.test.fif +0 -7083
  107. package/build/Counter.test.boc +0 -0
  108. package/build/Counter.test.compiled.json +0 -1
  109. package/build/Counter.test.fif +0 -7540
  110. package/build/Dvn.boc +0 -0
  111. package/build/Dvn.compiled.json +0 -1
  112. package/build/Dvn.fif +0 -2923
  113. package/build/Dvn.test.boc +0 -0
  114. package/build/Dvn.test.compiled.json +0 -1
  115. package/build/Dvn.test.fif +0 -5753
  116. package/build/Endpoint.boc +0 -0
  117. package/build/Endpoint.compiled.json +0 -1
  118. package/build/Endpoint.fif +0 -3694
  119. package/build/Endpoint.permissions.test.boc +0 -0
  120. package/build/Endpoint.permissions.test.compiled.json +0 -1
  121. package/build/Endpoint.permissions.test.fif +0 -6211
  122. package/build/Endpoint.test.boc +0 -0
  123. package/build/Endpoint.test.compiled.json +0 -1
  124. package/build/Endpoint.test.fif +0 -6899
  125. package/build/EndpointSetEpConfigDefaults.test.boc +0 -0
  126. package/build/EndpointSetEpConfigDefaults.test.compiled.json +0 -1
  127. package/build/EndpointSetEpConfigDefaults.test.fif +0 -6529
  128. package/build/Executor.boc +0 -0
  129. package/build/Executor.compiled.json +0 -1
  130. package/build/Executor.fif +0 -2731
  131. package/build/Executor.test.boc +0 -0
  132. package/build/Executor.test.compiled.json +0 -1
  133. package/build/Executor.test.fif +0 -5822
  134. package/build/LzClasses.test.boc +0 -0
  135. package/build/LzClasses.test.compiled.json +0 -1
  136. package/build/LzClasses.test.fif +0 -4457
  137. package/build/LzUtil.test.boc +0 -0
  138. package/build/LzUtil.test.compiled.json +0 -1
  139. package/build/LzUtil.test.fif +0 -1831
  140. package/build/MsgData.test.boc +0 -0
  141. package/build/MsgData.test.compiled.json +0 -1
  142. package/build/MsgData.test.fif +0 -4318
  143. package/build/MsglibPacketCodec.test.boc +0 -0
  144. package/build/MsglibPacketCodec.test.compiled.json +0 -1
  145. package/build/MsglibPacketCodec.test.fif +0 -4851
  146. package/build/MultiSig.boc +0 -0
  147. package/build/MultiSig.compiled.json +0 -1
  148. package/build/MultiSig.fif +0 -727
  149. package/build/MultiSigOrder.boc +0 -0
  150. package/build/MultiSigOrder.compiled.json +0 -1
  151. package/build/MultiSigOrder.fif +0 -650
  152. package/build/PipelinedOutOfOrder.test.boc +0 -0
  153. package/build/PipelinedOutOfOrder.test.compiled.json +0 -1
  154. package/build/PipelinedOutOfOrder.test.fif +0 -2188
  155. package/build/SmlConnection.boc +0 -0
  156. package/build/SmlConnection.compiled.json +0 -1
  157. package/build/SmlConnection.fif +0 -2517
  158. package/build/SmlConnection.permissions.test.boc +0 -0
  159. package/build/SmlConnection.permissions.test.compiled.json +0 -1
  160. package/build/SmlConnection.permissions.test.fif +0 -5497
  161. package/build/SmlConnection.test.boc +0 -0
  162. package/build/SmlConnection.test.compiled.json +0 -1
  163. package/build/SmlConnection.test.fif +0 -5494
  164. package/build/SmlManager.boc +0 -0
  165. package/build/SmlManager.compiled.json +0 -1
  166. package/build/SmlManager.fif +0 -3904
  167. package/build/SmlManager.permissions.test.boc +0 -0
  168. package/build/SmlManager.permissions.test.compiled.json +0 -1
  169. package/build/SmlManager.permissions.test.fif +0 -6018
  170. package/build/SmlManager.test.boc +0 -0
  171. package/build/SmlManager.test.compiled.json +0 -1
  172. package/build/SmlManager.test.fif +0 -6047
  173. package/build/Uln.boc +0 -0
  174. package/build/Uln.compiled.json +0 -1
  175. package/build/Uln.fif +0 -4841
  176. package/build/Uln.test.boc +0 -0
  177. package/build/Uln.test.compiled.json +0 -1
  178. package/build/Uln.test.fif +0 -7077
  179. package/build/UlnManager.boc +0 -0
  180. package/build/UlnManager.compiled.json +0 -1
  181. package/build/UlnManager.fif +0 -3851
  182. package/build/UlnManager.test.boc +0 -0
  183. package/build/UlnManager.test.compiled.json +0 -1
  184. package/build/UlnManager.test.fif +0 -6571
  185. package/build/UlnReceiveConfig.test.boc +0 -0
  186. package/build/UlnReceiveConfig.test.compiled.json +0 -1
  187. package/build/UlnReceiveConfig.test.fif +0 -4413
  188. package/build/UlnSend.test.boc +0 -0
  189. package/build/UlnSend.test.compiled.json +0 -1
  190. package/build/UlnSend.test.fif +0 -6576
  191. package/build/UlnSendConfig.test.boc +0 -0
  192. package/build/UlnSendConfig.test.compiled.json +0 -1
  193. package/build/UlnSendConfig.test.fif +0 -4431
  194. package/build/UlnSendWorkerFactory.test.boc +0 -0
  195. package/build/UlnSendWorkerFactory.test.compiled.json +0 -1
  196. package/build/UlnSendWorkerFactory.test.fif +0 -6683
  197. package/build/UlnUtil.test.boc +0 -0
  198. package/build/UlnUtil.test.compiled.json +0 -1
  199. package/build/UlnUtil.test.fif +0 -5873
  200. package/build/WorkerCore.test.boc +0 -0
  201. package/build/WorkerCore.test.compiled.json +0 -1
  202. package/build/WorkerCore.test.fif +0 -5630
  203. package/build/ZroMinter.boc +0 -0
  204. package/build/ZroMinter.compiled.json +0 -1
  205. package/build/ZroMinter.fif +0 -2300
  206. package/build/ZroWallet.boc +0 -0
  207. package/build/ZroWallet.compiled.json +0 -1
  208. package/build/ZroWallet.fif +0 -2471
  209. package/src/classes/lz/Attestation.fc +0 -23
  210. package/src/classes/msgdata/ClaimUnaccountedPoolFunds.fc +0 -0
  211. package/src/classes/msgdata/InitUlnConnection.fc +0 -18
@@ -1,23 +0,0 @@
1
- #include "../../funC++/classlib.fc";
2
-
3
- ;; required storage name
4
- const int lz::Attestation::NAME = "Attest"u;
5
-
6
- ;; field names
7
- const int lz::Attestation::hash = 0; ;; hash
8
- const int lz::Attestation::confirmations = 1; ;; uint64
9
-
10
- cell lz::Attestation::New(int hash, int confirmations) inline method_id {
11
- return cl::declare(
12
- lz::Attestation::NAME,
13
- unsafeTuple([
14
- [cl::t::uint256, hash], ;; lz::Attestation::hash
15
- [cl::t::uint64, confirmations] ;; lz::Attestation::confirmations
16
- ])
17
- );
18
- }
19
-
20
- int lz::Attestation::isValid(cell self, int hash, int confirmations) inline method_id {
21
- return (self.cl::get<uint256>(lz::Attestation::hash) == hash) &
22
- (self.cl::get<uint64>(lz::Attestation::confirmations) <= confirmations);
23
- }
File without changes
@@ -1,18 +0,0 @@
1
- #include "../../funC++/classlib.fc";
2
-
3
- ;; required storage name
4
- const int md::InitUlnConnection::NAME = "initUlnCon"u;
5
-
6
- ;; field names
7
- const int md::InitUlnConnection::ulnSendConfigOApp = 0;
8
- const int md::InitUlnConnection::UlnReceiveConfigOApp = 1;
9
-
10
- cell md::InitUlnConnection::New(cell $ulnSendConfigOApp, cell $UlnReceiveConfigOApp) inline method_id {
11
- return cl::declare(
12
- md::InitUlnConnection::NAME,
13
- unsafeTuple([
14
- [cl::t::objRef, $ulnSendConfigOApp], ;; md::InitUlnConnection::ulnSendConfigOApp
15
- [cl::t::objRef, $UlnReceiveConfigOApp] ;; md::InitUlnConnection::UlnReceiveConfigOApp
16
- ])
17
- );
18
- }