@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.
- package/CHANGELOG.md +6 -0
- package/build/ActionsSerde.test.compiled.json +1 -1
- package/build/BaseContract.test.compiled.json +1 -1
- package/build/Channel.compiled.json +1 -1
- package/build/Channel.permissions.test.compiled.json +1 -1
- package/build/ChannelBurn.test.compiled.json +1 -1
- package/build/ChannelCommitPacket.test.compiled.json +1 -1
- package/build/ChannelConfig.test.compiled.json +1 -1
- package/build/ChannelInitialize.test.compiled.json +1 -1
- package/build/ChannelMsglibIntegration.test.compiled.json +1 -1
- package/build/ChannelMsglibSendCallback.test.compiled.json +1 -1
- package/build/ChannelNilify.test.compiled.json +1 -1
- package/build/ChannelReceive.test.compiled.json +1 -1
- package/build/ChannelReceiveCallback.test.compiled.json +1 -1
- package/build/ChannelReceiveView.test.compiled.json +1 -1
- package/build/ChannelSend.test.compiled.json +1 -1
- package/build/ChannelSerde.test.compiled.json +1 -1
- package/build/Controller.assertions.test.compiled.json +1 -1
- package/build/Controller.permissions.test.compiled.json +1 -1
- package/build/Controller.test.compiled.json +1 -1
- package/build/Counter.permissions.test.compiled.json +1 -1
- package/build/Counter.setters.test.compiled.json +1 -1
- package/build/Counter.test.compiled.json +1 -1
- package/build/Dvn.test.compiled.json +1 -1
- package/build/DvnPermissions.test.compiled.json +1 -1
- package/build/Endpoint.permissions.test.compiled.json +1 -1
- package/build/Endpoint.test.compiled.json +1 -1
- package/build/EndpointSerde.test.compiled.json +1 -1
- package/build/EndpointSetEpConfigDefaults.test.compiled.json +1 -1
- package/build/Executor.test.compiled.json +1 -1
- package/build/ExecutorPermissions.test.compiled.json +1 -1
- package/build/LzClassesSerde.test.compiled.json +1 -1
- package/build/MaliciousFeeLib.compiled.json +1 -0
- package/build/MsgDataSerde.test.compiled.json +1 -1
- package/build/PipelinedOutOfOrderSerde.test.compiled.json +1 -1
- package/build/PriceFeedCache.test.compiled.json +1 -1
- package/build/PriceFeedCache.test.permissions.compiled.json +1 -1
- package/build/PriceFeedCacheSerde.test.compiled.json +1 -1
- package/build/PriceFeedFeeLibSerde.test.compiled.json +1 -1
- package/build/Proxy.permissions.test.compiled.json +1 -1
- package/build/Proxy.test.compiled.json +1 -1
- package/build/SmlConnection.permissions.test.compiled.json +1 -1
- package/build/SmlConnection.test.compiled.json +1 -1
- package/build/SmlManager.permissions.test.compiled.json +1 -1
- package/build/SmlManager.test.compiled.json +1 -1
- package/build/Uln.test.compiled.json +1 -1
- package/build/UlnConnection.test.compiled.json +1 -1
- package/build/UlnConnectionPermissions.test.compiled.json +1 -1
- package/build/UlnConnectionSerde.test.compiled.json +1 -1
- package/build/UlnManagement.test.compiled.json +1 -1
- package/build/UlnManager.test.compiled.json +1 -1
- package/build/UlnManagerPermissions.test.compiled.json +1 -1
- package/build/UlnMsgDataSerde.test.compiled.json +1 -1
- package/build/UlnPermissions.test.compiled.json +1 -1
- package/build/UlnSend.test.compiled.json +1 -1
- package/build/UlnSendWithDvnFeeLib.test.compiled.json +1 -1
- package/build/UlnSendWithExecFeeLib.test.compiled.json +1 -1
- package/build/UlnSerde.test.compiled.json +1 -1
- package/build/WorkerCore.test.compiled.json +1 -1
- package/build/WorkerCoreMsgDataSerde.test.compiled.json +1 -1
- package/build/badFeeLib1.test.compiled.json +1 -1
- package/build/badFeeLib10.test.compiled.json +1 -1
- package/build/badFeeLib11.test.compiled.json +1 -1
- package/build/badFeeLib12.test.compiled.json +1 -1
- package/build/badFeeLib2.test.compiled.json +1 -1
- package/build/badFeeLib3.test.compiled.json +1 -1
- package/build/badFeeLib4.test.compiled.json +1 -1
- package/build/badFeeLib5.test.compiled.json +1 -1
- package/build/badFeeLib6.test.compiled.json +1 -1
- package/build/badFeeLib7.test.compiled.json +1 -1
- package/build/badFeeLib8.test.compiled.json +1 -1
- package/build/badFeeLib9.test.compiled.json +1 -1
- package/package.json +1 -1
- package/src/funC++/classlib.fc +2 -1
- package/src/protocol/channel/handler.fc +5 -24
- package/src/protocol/channel/storage.fc +1 -1
- package/src/protocol/msglibs/ultralightnode/ulnConnection/handler.fc +1 -1
- package/src/protocol/msglibs/ultralightnode/ulnManager/handler.fc +3 -3
- package/src/protocol/msglibs/ultralightnode/workerFeeLibs/dvnFeeLib/handler.fc +8 -1
- package/src/protocol/msglibs/ultralightnode/workerFeeLibs/maliciousFeeLib/handler.fc +9 -0
- 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::
|
|
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::
|
|
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
|
-
|
|
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
|