-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtrigger.fc
More file actions
25 lines (23 loc) · 763 Bytes
/
Copy pathtrigger.fc
File metadata and controls
25 lines (23 loc) · 763 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
() init() impure inline_ref {
;; int_msg_info$0 ihr_disabled:Bool bounce:Bool bounced:Bool src:MsgAddress -> 011000
var msg = begin_cell()
.store_uint(0x18, 6)
.store_slice(addr())
.store_grams(1000000000)
.store_uint(4 + 2, 1 + 4 + 4 + 64 + 32 + 1 + 1 + 1) ;; init:(Maybe (Either StateInit ^StateInit)) body:(Either X ^X)
.store_ref(body());
send_raw_message(msg.end_cell(), 1);
}
() destroy() impure inline_ref {
;; int_msg_info$0 ihr_disabled:Bool bounce:Bool bounced:Bool src:MsgAddress -> 011000
var msg = begin_cell()
.store_uint(0x18, 6)
.store_slice(addr())
.store_grams(1000000000)
.store_uint(0, 1 + 4 + 4 + 64 + 32 + 1 + 1);
send_raw_message(msg.end_cell(), 1);
}
() main () {
init();
destroy();
}