@layerzerolabs/layerzero-v2-ton 3.0.42 → 3.0.43
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/Dvn.compiled.json +1 -1
- package/build/Dvn.test.compiled.json +1 -1
- package/build/DvnPermissions.test.compiled.json +1 -1
- package/build/Executor.compiled.json +1 -1
- package/build/Executor.test.compiled.json +1 -1
- package/build/ExecutorPermissions.test.compiled.json +1 -1
- package/build/PriceFeedCache.compiled.json +1 -1
- package/build/PriceFeedCache.test.compiled.json +1 -1
- package/build/PriceFeedCache.test.permissions.compiled.json +1 -1
- package/build/Proxy.compiled.json +1 -1
- package/build/Proxy.permissions.test.compiled.json +1 -1
- package/build/Proxy.test.compiled.json +1 -1
- package/build/WorkerCore.test.compiled.json +1 -1
- package/package.json +1 -1
- package/src/workers/core/abstract/workerHandler.fc +18 -2
- package/src/workers/core/interface.fc +2 -1
- package/src/workers/proxy/handler.fc +4 -13
- package/src/workers/proxy/interface.fc +0 -1
- package/src/workers/proxy/main.fc +0 -2
|
@@ -20,7 +20,10 @@
|
|
|
20
20
|
|
|
21
21
|
;; this is special in proxy, only the people in the address book can call 'callContract'
|
|
22
22
|
() _checkPermissions(int op, cell $md) impure inline {
|
|
23
|
-
if (
|
|
23
|
+
if (
|
|
24
|
+
(op == Proxy::OP::CALL_CONTRACT)
|
|
25
|
+
| (op == Proxy::OP::EMIT_EVENT)
|
|
26
|
+
) {
|
|
24
27
|
return assertLatestAdmin();
|
|
25
28
|
} elseif (
|
|
26
29
|
(op == Worker::OP::SET_ADMINS)
|
|
@@ -57,18 +60,6 @@ tuple emitEvent(cell $event) impure inline {
|
|
|
57
60
|
return actions;
|
|
58
61
|
}
|
|
59
62
|
|
|
60
|
-
tuple sendTon(cell $claimTon) impure inline {
|
|
61
|
-
(cell $storage, tuple actions) = preamble();
|
|
62
|
-
|
|
63
|
-
actions~pushAction<payment>(
|
|
64
|
-
$claimTon.cl::get<address>(md::ClaimTon::target),
|
|
65
|
-
$claimTon.cl::get<coins>(md::ClaimTon::amount),
|
|
66
|
-
0
|
|
67
|
-
);
|
|
68
|
-
|
|
69
|
-
return actions;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
63
|
tuple callback(cell $md) impure inline {
|
|
73
64
|
(cell $storage, tuple actions) = preamble();
|
|
74
65
|
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
;;; ==========================OPCODES=====================================
|
|
2
2
|
const int Proxy::OP::CALL_CONTRACT = "Proxy::OP::CALL_CONTRACT"c;
|
|
3
3
|
const int Proxy::OP::EMIT_EVENT = "Proxy::OP::EMIT_EVENT"c;
|
|
4
|
-
const int Proxy::OP::SEND_TON = "Proxy::OP::SEND_TON"c;
|
|
5
4
|
|
|
6
5
|
;; this is the opcode that we will "send out" of proxy to specify the callback
|
|
7
6
|
;; note that every other opcode that's namespaced by some contract is handled by the contract itself
|
|
@@ -12,8 +12,6 @@ tuple _executeOpcode(int op, cell $md) impure inline {
|
|
|
12
12
|
return callContract($md);
|
|
13
13
|
} elseif (op == Proxy::OP::TOGGLE_CALLBACK) {
|
|
14
14
|
return toggleCallback($md);
|
|
15
|
-
} elseif (op == Proxy::OP::SEND_TON) {
|
|
16
|
-
return sendTon($md);
|
|
17
15
|
} elseif (op == Proxy::OP::EMIT_EVENT) {
|
|
18
16
|
return emitEvent($md);
|
|
19
17
|
}
|