mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-15 01:52:42 +03:00
55 lines
1.3 KiB
Plaintext
55 lines
1.3 KiB
Plaintext
:: Print useful diagnostic information
|
|
::
|
|
:- %say
|
|
|= [[now=time * bec=beak] ~ ~]
|
|
=* our p.bec
|
|
=/ sponsor (sein:title our now our)
|
|
:- %noun
|
|
=<
|
|
:~
|
|
[%base-hash base-hash]
|
|
[%home-hash .^(@uv %cz (pathify ~.home ~))]
|
|
[%kids-hash .^(@uv %cz (pathify ~.kids ~))]
|
|
::
|
|
(info %our our)
|
|
(info %sponsor sponsor)
|
|
(info %dopzod ~dopzod)
|
|
::
|
|
["Compare lifes and rifts to values here:"]
|
|
["https://etherscan.io/address/azimuth.eth#readContract"]
|
|
[" life - getKeyRevisionNumber"]
|
|
[" rift - getContinuityNumber"]
|
|
==
|
|
|%
|
|
++ pathify
|
|
|= [a=@ta b=(unit ship)]
|
|
^- path
|
|
=/ o=@ta (scot %p our)
|
|
=/ n=@ta (scot %da now)
|
|
?~ b ~[o a n]
|
|
~[o a n (scot %p u.b)]
|
|
::
|
|
++ info
|
|
|= [=term =ship]
|
|
:: unitized life and rift
|
|
=/ lyfe .^((unit @ud) %j (pathify ~.lyfe `ship))
|
|
=/ ryft .^((unit @ud) %j (pathify ~.ryft `ship))
|
|
:* term
|
|
ship=ship
|
|
point=(crip (slag 2 (scow %ui ship)))
|
|
:: report as units
|
|
life=lyfe
|
|
rift=ryft
|
|
==
|
|
::
|
|
++ base-hash
|
|
=+ .^ ota=(unit [=ship =desk =aeon:clay])
|
|
%gx /(scot %p our)/hood/(scot %da now)/kiln/ota/noun
|
|
==
|
|
?~ ota
|
|
*@uv
|
|
=/ parent (scot %p ship.u.ota)
|
|
=+ .^(=cass:clay %cs /[parent]/[desk.u.ota]/1/late/foo)
|
|
.^(@uv %cz /[parent]/[desk.u.ota]/(scot %ud ud.cass))
|
|
--
|