@@ -1,926 +0,0 @@
10−:: Transfers on L1 to this address count as depositing to L2
12−++ deposit-address 0x1111.1111.1111.1111.1111.1111.1111.1111.1111.1111
15− :: Generated with (keccak-256:keccak:crypto (as-octs:mimes:html name))
17− :: OwnerChanged(uint32,address)
19− 0x16d0.f539.d49c.6cad.822b.767a.9445.bfb1.
20− cf7e.a6f2.a6c2.b120.a7ea.4cc7.660d.8fda
24− 0xe74c.0380.9d07.69e1.b1f7.06cc.8414.258c.
25− d1f3.b6fe.020c.d15d.0165.c210.ba50.3a0f
27− :: Spawned(uint32,uint32)
29− 0xb2d3.a6e7.a339.f5c8.ff96.265e.2f03.a010.
30− a854.1070.f374.4a24.7090.9644.1508.1546
32− :: OwnershipTransferred(address,address)
33− ++ ownership-transferred
34− 0x8be0.079c.5316.5914.1344.cd1f.d0a4.f284.
35− 1949.7f97.22a3.daaf.e3b4.186f.6b64.57e0
37− :: EscapeRequested(uint32,uint32)
39− 0xb4d4.850b.8f21.8218.141c.5665.cba3.79e5.
40− 3e9b.b015.b51e.8d93.4be7.0210.aead.874a
42− :: EscapeCanceled(uint32,uint32)
44− 0xd653.bb0e.0bb7.ce83.93e6.24d9.8fbf.17cd.
45− a590.2c83.28ed.0cd0.9988.f368.90d9.932a
47− :: EscapeAccepted(uint32,uint32)
49− 0x7e44.7c9b.1bda.4b17.4b07.96e1.00bf.7f34.
50− ebf3.6dbb.7fe6.6549.0b1b.fce6.246a.9da5
52− :: LostSponsor(uint32,uint32)
54− 0xd770.4f9a.2519.3dbd.0b0c.b4a8.09fe.ffff.
55− a7f1.9d1a.ae88.17a7.1346.c194.4482.10d5
57− :: ChangedKeys(uint32,bytes32,bytes32,uint32,uint32)
59− 0xaa10.e7a0.117d.4323.f1d9.9d63.0ec1.69be.
60− bb3a.988e.8957.70e3.5198.7e01.ff54.23d5
62− :: BrokeContinuity(uint32,uint32)
64− 0x2929.4799.f1c2.1a37.ef83.8e15.f79d.d91b.
65− cee2.df99.d63c.d1c1.8ac9.68b1.2951.4e6e
67− :: ChangedSpawnProxy(uint32,address)
68− ++ changed-spawn-proxy
69− 0x9027.36af.7b3c.efe1.0d9e.840a.ed0d.687e.
70− 35c8.4095.122b.2505.1a20.ead8.866f.006d
72− :: ChangedTransferProxy(uint32,address)
73− ++ changed-transfer-proxy
74− 0xcfe3.69b7.197e.7f0c.f067.93ae.2472.a9b1.
75− 3583.fecb.ed2f.78df.a14d.1f10.796b.847c
77− :: ChangedManagementProxy(uint32,address)
78− ++ changed-management-proxy
79− 0xab9c.9327.cffd.2acc.168f.afed.be06.139f.
80− 5f55.cb84.c761.df05.e051.1c25.1e2e.e9bf
82− :: ChangedVotingProxy(uint32,address)
83− ++ changed-voting-proxy
84− 0xcbd6.269e.c714.57f2.c7b1.a227.74f2.46f6.
85− c5a2.eae3.795e.d730.0db5.1768.0c61.c805
87− :: ChangedDns(string,string,string)
89− 0xfafd.04ad.e1da.ae2e.1fdb.0fc1.cc6a.899f.
90− d424.063e.d5c9.2120.e67e.0730.53b9.4898
92− :: ApprovalForAll(address,address,bool)
94− 0x1730.7eab.39ab.6107.e889.9845.ad3d.59bd.
95− 9653.f200.f220.9204.89ca.2b59.3769.6c31
100−:: ethereum address, 20 bytes.
104−+$ dominion ?(%l1 %l2 %spawn)
105−+$ keys [=life suite=@ud auth=@ crypt=@]
106−++ orm ((on ship point) por)
115− $: owner=[=address =nonce]
116− spawn-proxy=[=address =nonce]
117− management-proxy=[=address =nonce]
118− voting-proxy=[=address =nonce]
119− transfer-proxy=[=address =nonce]
127− sponsor=[has=? who=@p]
133− $% [%nonce =ship =proxy =nonce]
134− [%tx =raw-tx err=(unit @tas)]
135− [%operator owner=address operator=address approved=?]
136− [%dns domains=(list @t)]
140− [%sponsor sponsor=(unit @p)]
141− [%escape to=(unit @p)]
143− [%spawn-proxy =address]
144− [%management-proxy =address]
145− [%voting-proxy =address]
146− [%transfer-proxy =address]
147− [%dominion =dominion]
156−+$ points (tree [ship point])
157−+$ operators (jug address address)
158−+$ effects (list diff)
159−+$ proxy ?(%own %spawn %manage %vote %transfer)
160−+$ roll (list raw-tx)
161−+$ raw-tx [sig=@ raw=octs =tx]
162−+$ tx [from=[=ship =proxy] skim-tx]
164− $% [%transfer-point =address reset=?]
165− [%spawn =ship =address]
166− [%configure-keys encrypt=@ auth=@ crypto-suite=@ breach=?]
167− [%escape parent=ship]
168− [%cancel-escape parent=ship]
172− [%set-management-proxy =address]
173− [%set-spawn-proxy =address]
174− [%set-transfer-proxy =address]
189−:: Must keccak `dat` and recover the ethereum address which signed.
190−:: Must not crash. `v` will normally be between 0 and 3; if it is not,
191−:: should produce null.
193−+$ verifier $-([dat=octs v=@ r=@ s=@] (unit address))
208− =/ las (met 0 batch)
212− =/ parse-result (parse-raw-tx pos batch)
213− :: Parsing failed, abort batch
216− (debug %parse-failed ~)
217− =^ =raw-tx pos u.parse-result
218− $(roll [raw-tx roll])
221− |= [pos=@ud batch=@]
222− ^- (unit [raw-tx pos=@ud])
224− =^ sig pos (take 3 65)
225− =/ res=(unit [=tx pos=@ud]) parse-tx
227− =/ dif (sub pos.u.res pos)
228− =/ len =>((dvr dif 8) ?>(=(0 q) p))
230− [sig [len (cut 0 [pos dif] batch)] tx.u.res]
233− ^- (unit [tx pos=@ud])
234− =^ from-proxy=@ pos (take 0 3)
235− ?. ?=(?(%0 %1 %2 %3 %4) from-proxy) (debug %bad-proxy ~)
244− =^ pad pos (take 0 5)
245− =^ from-ship=ship pos (take 3 4)
248− `[[[from-ship proxy] skim-tx.u.res] pos.u.res]
249− ^- res=(unit [=skim-tx pos=@ud])
250− =^ op pos (take 0 7)
251− ?+ op (debug %strange-opcode ~)
253− =^ reset=@ pos (take 0)
254− =^ =address pos (take 3 20)
255− `[[%transfer-point address =(0 reset)] pos]
258− =^ pad=@ pos (take 0)
259− =^ =ship pos (take 3 4)
260− =^ =address pos (take 3 20)
261− `[[%spawn ship address] pos]
264− =^ breach=@ pos (take 0)
265− =^ encrypt=@ pos (take 3 32)
266− =^ auth=@ pos (take 3 32)
267− =^ crypto-suite=@ pos (take 3 4)
268− `[[%configure-keys encrypt auth crypto-suite =(0 breach)] pos]
270− %3 =^(res pos take-ship `[[%escape res] pos])
271− %4 =^(res pos take-ship `[[%cancel-escape res] pos])
272− %5 =^(res pos take-ship `[[%adopt res] pos])
273− %6 =^(res pos take-ship `[[%reject res] pos])
274− %7 =^(res pos take-ship `[[%detach res] pos])
275− %8 =^(res pos take-address `[[%set-management-proxy res] pos])
276− %9 =^(res pos take-address `[[%set-spawn-proxy res] pos])
277− %10 =^(res pos take-address `[[%set-transfer-proxy res] pos])
287− (mul step.bite (bex bloq.bite))
288− [(cut 0 [pos step] batch) (add pos step)]
289− :: Encode ship and address
293− =^ pad=@ pos (take 0)
294− =^ =address pos (take 3 20)
296− :: Encode escape-related txs
300− =^ pad=@ pos (take 0)
301− =^ other=ship pos (take 3 4)
307− ^- [=address =nonce]
310− %spawn spawn-proxy.own
311− %manage management-proxy.own
312− %vote voting-proxy.own
313− %transfer transfer-proxy.own
316−++ verify-sig-and-nonce
317− |= [=verifier chain-t=@t =state =raw-tx]
320− =/ point (get-point state ship.from.tx.raw-tx)
321− ?> ?=(^ point) :: we never parse more than four bytes for a ship
322− =/ need=[=address =nonce]
323− (proxy-from-point proxy.from.tx.raw-tx u.point)
324− :: We include a domain separator to avoid letting signatures be
325− :: accidentally reused with other applications. We include the name
326− :: UrbitID, a signature format version number, and the EIP-155 chain
329− :: We also include a nonce so that a transaction cannot be
332− =/ prepared-data=octs
335− (met 3 chain-t)^chain-t
341− :: Wallets which support personal_sign include this preamble to avoid
342− :: letting personal_sign be used to sign ethereum transactions
345− =/ len (ud-to-ascii p.prepared-data)
347− 26^'\19Ethereum Signed Message:\0a'
352− =/ dress (verify-sig sig.raw-tx signed-data)
355− =(address.need u.dress)
356− :: Verify signature and produce signer address
359− |= [sig=@ txdata=octs]
362− :: Reversed of the usual r-s-v order because Ethereum integers are
366− =^ s sig (take 3 32)
367− =^ r sig (take 3 32)
368− :: In Ethereum, v is generally 27 + recid, and verifier expects a
369− :: recid. Old versions of geth used 0 + recid, so most software
370− :: now supports either format. See:
372− :: https://github.com/ethereum/go-ethereum/issues/2053
374− =? v (gte v 27) (sub v 27)
375− (verifier txdata v r s)
379− [(end bite sig) (rsh bite sig)]
382−:: ASCII-decimal encode
391− $(n p, l [(add '0' q) l])
395− ^- ?(%0 %1 %2 %3 %4)
396− ?: (lth ship 0x100) %0
397− ?: (lth ship 0x1.0000) %1
398− ?: (lth ship 0x1.0000.0000) %2
399− ?: (lth ship 0x1.0000.0000.0000.0000) %3
405− =/ mir (ship-rank who)
414−:: Produces null only if ship is not a galaxy, star, or planet
419− =/ existing (get:orm points.state ship)
423− =. who.sponsor.net.point (sein ship)
424− ?+ (ship-rank ship) (debug %strange-point ~)
425− %0 `point(dominion %l1)
427− =/ existing-parent $(ship (sein ship))
428− ?~ existing-parent ~
432− ?- dominion.u.existing-parent
441−:: Receive log from L1 transaction
444− |= [=state log=event-log]
446− =* log-name i.topics.log
447− ?: =(log-name activated:log-names) `state
448− ?: =(log-name spawned:log-names) `state
449− ?: =(log-name ownership-transferred:log-names) `state
450− ?: =(log-name changed-dns:log-names)
451− ?> ?=(~ t.topics.log)
452− =/ words (rip 8 data.log)
453− :: This is only true if each domain is <= 32 bytes
455− ?. ?=([c=@ @ b=@ @ a=@ @ @ @ @ ~] words) `state
459− =/ domains ~[(swp 3 one) (swp 3 two) (swp 3 tri)]
463− ?: =(log-name approval-for-all:log-names)
464− ?> ?=([@ @ ~] t.topics.log)
465− =* owner i.t.topics.log
466− =* operator i.t.t.topics.log
467− =/ approved !=(0 data.log)
468− :- [%operator owner operator approved]~
469− =- state(operators -)
471− (~(put ju operators.state) owner operator)
472− (~(del ju operators.state) owner operator)
474− :: The rest of the logs modify a particular ship, specified in the
475− :: second topic. We fetch it, and insert the modification back into
478− ?> ?=([@ *] t.topics.log)
479− =* ship=@ i.t.topics.log
480− =/ the-point (get-point state ship)
482− =* point u.the-point
484− :: Important to fully no-op on failure so we don't insert an entry
485− :: into points.state
489− [effects.u.res state(points (put:orm points.state ship new-point.u.res))]
490− ^- res=(unit [=effects new-point=^point])
492− ?: =(log-name changed-spawn-proxy:log-names)
493− ?. ?=(%l1 -.point) ~
494− ?> ?=([@ ~] t.t.topics.log)
495− =* to i.t.t.topics.log
496− :: Depositing to L2 is represented by a spawn proxy change on L1,
497− :: but it doesn't change the actual spawn proxy.
499− ?: =(deposit-address to)
500− :+ ~ [%point ship %dominion %spawn]~
501− point(dominion %spawn)
502− :+ ~ [%point ship %spawn-proxy to]~
503− point(address.spawn-proxy.own to)
505− ?: =(log-name escape-accepted:log-names)
506− ?> ?=([@ ~] t.t.topics.log)
507− =* parent=@ i.t.t.topics.log
508− =/ parent-point (get-point state parent)
509− ?> ?=(^ parent-point)
510− ?: ?=(%l2 -.u.parent-point) ~
511− :+ ~ [%point ship %sponsor `parent]~
512− point(escape.net ~, sponsor.net [%& parent])
514− ?: =(log-name lost-sponsor:log-names)
515− ?> ?=([@ ~] t.t.topics.log)
516− =* parent=@ i.t.t.topics.log
517− :: If the sponsor we lost was not our actual sponsor, we didn't
518− :: actually lose anything.
520− ?. =(parent who.sponsor.net.point) ~
522− =/ parent-point (get-point state parent)
523− ?> ?=(^ parent-point)
525− :: We can detach even if the child is on L2, as long as the parent
528− ?: ?=(%l2 -.u.parent-point) ~
529− :+ ~ [%point ship %sponsor ~]~
530− point(has.sponsor.net %|)
532− :: The rest can be done by any ship on L1, even if their spawn proxy
535− ?: ?=(%l2 -.point) ~
537− ?: =(log-name escape-requested:log-names)
538− ?> ?=([@ ~] t.t.topics.log)
539− =* parent=@ i.t.t.topics.log
540− =/ parent-point (get-point state parent)
541− ?> ?=(^ parent-point)
542− :+ ~ [%point ship %escape `parent]~
543− point(escape.net `parent)
545− ?: =(log-name escape-canceled:log-names)
546− ?> ?=([@ ~] t.t.topics.log)
547− =* parent=@ i.t.t.topics.log
548− =/ parent-point (get-point state parent)
549− ?> ?=(^ parent-point)
550− :+ ~ [%point ship %escape ~]~
553− ?: =(log-name broke-continuity:log-names)
554− ?> ?=(~ t.t.topics.log)
556− :+ ~ [%point ship %rift rift]~
557− point(rift.net rift)
559− ?: =(log-name changed-keys:log-names)
560− ?> ?=(~ t.t.topics.log)
562− :* life=(cut 8 [0 1] data.log)
563− suite=(cut 8 [1 1] data.log)
564− auth=(cut 8 [2 1] data.log)
565− crypt=(cut 8 [3 1] data.log)
567− :+ ~ [%point ship %keys keys]~
568− point(keys.net keys)
570− ?: =(log-name owner-changed:log-names)
571− ?> ?=([@ ~] t.t.topics.log)
572− =* to i.t.t.topics.log
573− :: Depositing to L2 is represented by an ownership change on L1,
574− :: but it doesn't change who actually owns the ship.
576− ?: =(deposit-address to)
577− :+ ~ [%point ship %dominion %l2]~
579− :+ ~ [%point ship %owner to]~
580− point(address.owner.own to)
582− ?: =(log-name changed-transfer-proxy:log-names)
583− ?> ?=([@ ~] t.t.topics.log)
584− =* to i.t.t.topics.log
585− :+ ~ [%point ship %transfer-proxy to]~
586− point(address.transfer-proxy.own to)
588− ?: =(log-name changed-management-proxy:log-names)
589− ?> ?=([@ ~] t.t.topics.log)
590− =* to i.t.t.topics.log
591− :+ ~ [%point ship %management-proxy to]~
592− point(address.management-proxy.own to)
594− ?: =(log-name changed-voting-proxy:log-names)
595− ?> ?=([@ ~] t.t.topics.log)
596− =* to i.t.t.topics.log
597− :+ ~ [%point ship %voting-proxy to]~
598− point(address.voting-proxy.own to)
600− (debug %unknown-log ~)
602−:: Receive batch of L2 transactions
605− |= [=verifier chain-id=@ud =state batch=@]
606− =/ chain-t (ud-to-ascii chain-id)
607− =/ =roll (parse-roll batch)
608− |- ^- [effects ^state]
611− :: Verify signature, else skip tx
613− ?. (verify-sig-and-nonce verifier chain-t state i.roll)
614− %+ debug %l2-sig-failed
615− =^ effects state $(roll t.roll)
617− [[%tx i.roll `%sig-or-nonce-failed] effects]
618− :: Increment nonce, even if it later fails
620− =^ effects-1 points.state (increment-nonce state from.tx.i.roll)
624− =/ tx-result=(unit [=effects =^state]) (receive-tx state tx.i.roll)
626− %+ debug %l2-tx-failed
627− [[%tx i.roll `%tx-failed]~ state]
628− [[[%tx i.roll ~] effects.u.tx-result] state.u.tx-result]
629− =^ effects-3 state $(roll t.roll)
630− [:(welp effects-1 effects-2 effects-3) state]
633− |= [=state =ship =proxy]
634− =/ point (get-point state ship)
635− ?> ?=(^ point) :: we only parsed 4 bytes
641− u.point(nonce.owner.own +(nonce.owner.own))
644− :- nonce.spawn-proxy.own
645− u.point(nonce.spawn-proxy.own +(nonce.spawn-proxy.own))
648− :- nonce.management-proxy.own
649− u.point(nonce.management-proxy.own +(nonce.management-proxy.own))
652− :- nonce.voting-proxy.own
653− u.point(nonce.voting-proxy.own +(nonce.voting-proxy.own))
656− :- nonce.transfer-proxy.own
657− u.point(nonce.transfer-proxy.own +(nonce.transfer-proxy.own))
660− :- [%nonce ship proxy nonce]~
661− (put:orm points.state ship u.point)
663−:: Receive an individual L2 transaction
668− ^- (unit [effects ^state])
670− %spawn (process-spawn +>.tx)
671− %transfer-point (w-point process-transfer-point ship.from.tx +>.tx)
672− %configure-keys (w-point process-configure-keys ship.from.tx +>.tx)
673− %escape (w-point-esc process-escape ship.from.tx +>.tx)
674− %cancel-escape (w-point-esc process-cancel-escape ship.from.tx +>.tx)
675− %adopt (w-point-esc process-adopt ship.tx +>.tx)
676− %reject (w-point-esc process-reject ship.tx +>.tx)
677− %detach (w-point-esc process-detach ship.tx +>.tx)
679− (w-point-spawn process-set-spawn-proxy ship.from.tx +>.tx)
682− (w-point process-set-transfer-proxy ship.from.tx +>.tx)
684− %set-management-proxy
685− (w-point process-set-management-proxy ship.from.tx +>.tx)
689− |* [fun=$-([ship point *] (unit [effects point])) =ship rest=*]
690− ^- (unit [effects ^state])
691− =/ point (get-point state ship)
692− ?~ point (debug %strange-ship ~)
693− ?. ?=(%l2 -.u.point) (debug %ship-not-on-l2 ~)
694− :: Important to fully no-op on failure so we don't insert an entry
695− :: into points.state
697− =/ res=(unit [=effects new-point=^point]) (fun u.point rest)
700− `[effects.u.res state(points (put:orm points.state ship new-point.u.res))]
703− |* [fun=$-([ship point *] (unit [effects point])) =ship rest=*]
704− ^- (unit [effects ^state])
705− =/ point (get-point state ship)
706− ?~ point (debug %strange-ship ~)
707− =/ res=(unit [=effects new-point=^point]) (fun u.point rest)
710− `[effects.u.res state(points (put:orm points.state ship new-point.u.res))]
713− |* [fun=$-([ship point *] (unit [effects point])) =ship rest=*]
714− ^- (unit [effects ^state])
715− =/ point (get-point state ship)
716− ?~ point (debug %strange-ship ~)
717− ?: ?=(%l1 -.u.point) (debug %ship-on-l2 ~)
718− =/ res=(unit [=effects new-point=^point]) (fun u.point rest)
721− `[effects.u.res state(points (put:orm points.state ship new-point.u.res))]
723− ++ process-transfer-point
724− |= [=point to=address reset=?]
725− =* ship ship.from.tx
726− :: Assert from owner or transfer prxoy
728− ?. |(=(%own proxy.from.tx) =(%transfer proxy.from.tx))
729− (debug %bad-permission ~)
733− ~[[%point ship %owner to] [%point ship %transfer-proxy *address]]
734− =: address.owner.own.point to
735− address.transfer-proxy.own.point *address
737− :: Execute reset if requested
742− =^ effects-2 net.point
743− ?: =([0 0 0] +.keys.net.point)
745− =/ =keys [+(life.keys.net.point) 0 0 0]
746− :- [%point ship %keys keys]~
747− [rift.net.point keys sponsor.net.point escape.net.point]
748− =^ effects-3 rift.net.point
749− ?: =(0 life.keys.net.point)
751− :- [%point ship %rift +(rift.net.point)]~
754− :~ [%point ship %spawn-proxy *address]
755− [%point ship %management-proxy *address]
756− [%point ship %voting-proxy *address]
757− [%point ship %transfer-proxy *address]
759− =: address.spawn-proxy.own.point *address
760− address.management-proxy.own.point *address
761− address.voting-proxy.own.point *address
762− address.transfer-proxy.own.point *address
764− `[:(welp effects-1 effects-2 effects-3 effects-4) point]
767− |= [=ship to=address]
768− ^- (unit [effects ^state])
769− =/ parent=^ship (sein ship)
770− :: Assert parent is on L2
772− =/ parent-point (get-point state parent)
774− ?. ?=(?(%l2 %spawn) -.u.parent-point) ~
775− :: Assert from owner or spawn proxy
777− ?. ?& =(parent ship.from.tx)
778− |(=(%own proxy.from.tx) =(%spawn proxy.from.tx))
780− (debug %bad-permission ~)
781− :: Assert child not already spawned
783− ?^ (get:orm points.state ship) (debug %spawn-exists ~)
784− :: Assert one-level-down
786− ?. =(+((ship-rank parent)) (ship-rank ship)) (debug %bad-rank ~)
788− =/ [=effects new-point=point]
789− =/ point=(unit point) (get-point state ship)
790− ?> ?=(^ point) :: only parsed 4 bytes
791− :: If spawning to self, just do it
793− ?: ?| ?& =(%own proxy.from.tx)
794− =(to address.owner.own.u.parent-point)
796− ?& =(%spawn proxy.from.tx)
797− =(to address.spawn-proxy.own.u.parent-point)
800− :- ~[[%point ship %dominion %l2] [%point ship %owner to]]
801− u.point(address.owner.own to)
802− :: Else spawn to parent and set transfer proxy
804− :- :~ [%point ship %dominion %l2]
805− [%point ship %owner address.owner.own.u.parent-point]
806− [%point ship %transfer-proxy to]
809− address.owner.own address.owner.own.u.parent-point
810− address.transfer-proxy.own to
812− `[effects state(points (put:orm points.state ship new-point))]
814− ++ process-configure-keys
815− |= [=point crypt=@ auth=@ suite=@ breach=?]
816− =* ship ship.from.tx
818− ?. |(=(%own proxy.from.tx) =(%manage proxy.from.tx))
819− (debug %bad-permission ~)
821− =^ rift-effects rift.net.point
824− [[%point ship %rift +(rift.net.point)]~ +(rift.net.point)]
826− =^ keys-effects keys.net.point
827− ?: =(+.keys.net.point [suite auth crypt])
830− [+(life.keys.net.point) suite auth crypt]
831− [[%point ship %keys keys]~ keys]
833− `[(welp rift-effects keys-effects) point]
836− |= [=point parent=ship]
837− =* ship ship.from.tx
838− ?. |(=(%own proxy.from.tx) =(%manage proxy.from.tx))
839− (debug %bad-permission ~)
841− ?. =(+((ship-rank parent)) (ship-rank ship))
844− :+ ~ [%point ship %escape `parent]~
845− point(escape.net `parent)
847− ++ process-cancel-escape
848− |= [=point parent=ship]
849− =* ship ship.from.tx
850− ?. |(=(%own proxy.from.tx) =(%manage proxy.from.tx))
851− (debug %bad-permission ~)
853− :+ ~ [%point ship %escape ~]~
858− =* parent ship.from.tx
859− ?. |(=(%own proxy.from.tx) =(%manage proxy.from.tx))
860− (debug %bad-permission ~)
862− ?. =(escape.net.point `parent) (debug %no-adopt ~)
863− :+ ~ [%point ship %sponsor `parent]~
864− point(escape.net ~, sponsor.net [%& parent])
868− =* parent ship.from.tx
869− ?. |(=(%own proxy.from.tx) =(%manage proxy.from.tx))
870− (debug %bad-permission ~)
872− ?. =(escape.net.point `parent) (debug %no-reject ~)
873− :+ ~ [%point ship %escape ~]~
878− =* parent ship.from.tx
879− ?. |(=(%own proxy.from.tx) =(%manage proxy.from.tx))
880− (debug %bad-permission ~)
882− ?. =(who.sponsor.net.point parent) (debug %no-detach ~)
883− :+ ~ [%point ship %sponsor ~]~
884− point(has.sponsor.net %|)
886− ++ process-set-management-proxy
887− |= [=point =address]
888− ?. |(=(%own proxy.from.tx) =(%manage proxy.from.tx))
889− (debug %bad-permission ~)
891− :+ ~ [%point ship.from.tx %management-proxy address]~
892− point(address.management-proxy.own address)
894− ++ process-set-spawn-proxy
895− |= [=point =address]
896− ?. |(=(%own proxy.from.tx) =(%spawn proxy.from.tx))
897− (debug %bad-permission ~)
899− ?: (gte (ship-rank ship.from.tx) 2)
900− (debug %spawn-proxy-planet ~)
902− :+ ~ [%point ship.from.tx %spawn-proxy address]~
903− point(address.spawn-proxy.own address)
905− ++ process-set-transfer-proxy
906− |= [=point =address]
907− ?. |(=(%own proxy.from.tx) =(%transfer proxy.from.tx))
908− (debug %bad-permission ~)
910− :+ ~ [%point ship.from.tx %transfer-proxy address]~
911− point(address.transfer-proxy.own address)
915−:: State transition function
917−|= [=verifier chain-id=@ud =state =input]
920− :: Received log from L1 transaction
922− (receive-log state event-log.input)
926−(receive-batch verifier chain-id state batch.input)