Merge branch 'next/arvo' into m/scry-vane

This commit is contained in:
fang 2022-01-19 19:28:09 +01:00
commit 3cb3421657
No known key found for this signature in database
GPG Key ID: EB035760C1BBA972
9 changed files with 107 additions and 33 deletions

6
.gitattributes vendored
View File

@ -8,4 +8,8 @@ pkg/arvo/tmp/landscape.jam filter=lfs diff=lfs merge=lfs -text
pkg/arvo/tmp/base.jam filter=lfs diff=lfs merge=lfs -text pkg/arvo/tmp/base.jam filter=lfs diff=lfs merge=lfs -text
pkg/arvo/tmp/bitcoin.jam filter=lfs diff=lfs merge=lfs -text pkg/arvo/tmp/bitcoin.jam filter=lfs diff=lfs merge=lfs -text
pkg/arvo/tmp/webterm.jam filter=lfs diff=lfs merge=lfs -text pkg/arvo/tmp/webterm.jam filter=lfs diff=lfs merge=lfs -text
*.hoon text eol=lf
*.kelvin text eol=lf
*.bill text eol=lf
*.docket-0 text eol=lf
*.ship text eol=lf

View File

@ -200,6 +200,9 @@
=/ contracts (get-contracts network) =/ contracts (get-contracts network)
?+ -.call ecliptic:contracts ?+ -.call ecliptic:contracts
%send-point delegated-sending:contracts %send-point delegated-sending:contracts
::
?(%approve-batch-transfer %transfer-batch %withdraw)
linear-star-release:contracts
== ==
:: ::
++ deed ++ deed
@ -379,7 +382,7 @@
?> =(%king (clan:title s)) ?> =(%king (clan:title s))
(~(put in ss) (^sein:title s)) (~(put in ss) (^sein:title s))
|- |-
?~ parents txs ?~ parents !! ::txs
=. txs =. txs
%+ do-here ecliptic:mainnet-contracts %+ do-here ecliptic:mainnet-contracts
(set-spawn-proxy:dat i.parents lockup-contract) (set-spawn-proxy:dat i.parents lockup-contract)
@ -394,15 +397,18 @@
=. txs =. txs
%+ do-here ecliptic:mainnet-contracts %+ do-here ecliptic:mainnet-contracts
(set-transfer-proxy:dat i.what lockup-contract) (set-transfer-proxy:dat i.what lockup-contract)
=. txs
%+ do-here lockup-contract
(deposit:dat to i.what)
$(what t.what) $(what t.what)
== ==
:: depositing :: depositing
:: ::
|- |-
?~ what txs ?~ what txs
=. txs :: =. txs
%+ do-here lockup-contract :: %+ do-here lockup-contract
(deposit:dat to i.what) :: (deposit:dat to i.what)
$(what t.what) $(what t.what)
++ do-here ++ do-here
|= [contract=address dat=tape] |= [contract=address dat=tape]

View File

@ -902,6 +902,9 @@
%dv (dy-sing hand+q.bil %a p.bil (snoc q.bil %hoon)) %dv (dy-sing hand+q.bil %a p.bil (snoc q.bil %hoon))
%ge (dy-run-generator (dy-cage p.p.p.bil) q.p.bil) %ge (dy-run-generator (dy-cage p.p.p.bil) q.p.bil)
%sa %sa
=/ has-mark .?((get-fit:clay he-beak %mar p.bil))
?. has-mark
(he-diff(poy ~) %tan leaf+"dojo: %{(trip p.bil)} missing" ~)
=+ .^(=dais:clay cb+(en-beam he-beak /[p.bil])) =+ .^(=dais:clay cb+(en-beam he-beak /[p.bil]))
(dy-hand p.bil *vale:dais) (dy-hand p.bil *vale:dais)
:: ::
@ -910,8 +913,12 @@
=/ has-mark .?((get-fit:clay he-beak %mar p.bil)) =/ has-mark .?((get-fit:clay he-beak %mar p.bil))
?. has-mark :: yolo ?. has-mark :: yolo
(dy-hand p.bil q.cag) (dy-hand p.bil q.cag)
=+ .^(=tube:clay cc+(en-beam he-beak /[p.cag]/[p.bil])) =/ res
(dy-hand p.bil (tube q.cag)) =+ .^(=tube:clay cc+(en-beam he-beak /[p.cag]/[p.bil]))
(mule |.((tube q.cag)))
?: ?=(%| -.res)
(he-diff(poy ~) %tan leaf+"dojo: %as %{(trip p.bil)} failed" p.res)
(dy-hand p.bil p.res)
:: ::
%do %do
=/ gat (dy-eval p.bil) =/ gat (dy-eval p.bil)

View File

@ -42,8 +42,14 @@
%adopt (adopt:dat +.call) %adopt (adopt:dat +.call)
%start-document-poll (start-document-poll:dat +.call) %start-document-poll (start-document-poll:dat +.call)
%cast-document-vote (cast-document-vote:dat +.call) %cast-document-vote (cast-document-vote:dat +.call)
%start-upgrade-poll (start-upgrade-poll:dat +.call)
%cast-upgrade-vote (cast-upgrade-vote:dat +.call)
:: ::
%send-point (send-point:dat +.call) %send-point (send-point:dat +.call)
::
%approve-batch-transfer (approve-batch-transfer:dat +.call)
%transfer-batch (transfer-batch:dat +.call)
%withdraw (withdraw:dat +.call)
== ==
:: ::
+$ call-data call-data:rpc +$ call-data call-data:rpc
@ -67,12 +73,18 @@
++ adopt (enc adopt:cal) ++ adopt (enc adopt:cal)
++ start-document-poll (enc start-document-poll:cal) ++ start-document-poll (enc start-document-poll:cal)
++ cast-document-vote (enc cast-document-vote:cal) ++ cast-document-vote (enc cast-document-vote:cal)
++ start-upgrade-poll (enc start-upgrade-poll:cal)
++ cast-upgrade-vote (enc cast-upgrade-vote:cal)
:: ::
++ register-linear (enc register-linear:cal) ++ register-linear (enc register-linear:cal)
++ register-conditional (enc register-conditional:cal) ++ register-conditional (enc register-conditional:cal)
++ deposit (enc deposit:cal) ++ deposit (enc deposit:cal)
:: ::
++ send-point (enc send-point:cal) ++ send-point (enc send-point:cal)
::
++ approve-batch-transfer (enc approve-batch-transfer:cal)
++ transfer-batch (enc transfer-batch:cal)
++ withdraw (enc withdraw:cal)
-- --
:: ::
::TODO lib ::TODO lib
@ -170,6 +182,25 @@
[%bool support] [%bool support]
== ==
:: ::
++ start-upgrade-poll
|= [gal=ship =address]
^- call-data
?> =(%czar (clan:title gal))
:- 'startUpgradePoll(uint8,address)'
:~ [%uint `@`gal]
[%address address]
==
::
++ cast-upgrade-vote
|= [gal=ship =address support=?]
^- call-data
?> =(%czar (clan:title gal))
:- 'castUpgradeVote(uint8,address,bool)'
:~ [%uint `@`gal]
[%address address]
[%bool support]
==
::
:: ::
++ set-dns-domains ++ set-dns-domains
|= [pri=tape sec=tape ter=tape] |= [pri=tape sec=tape ter=tape]
@ -252,6 +283,27 @@
[%address to] [%address to]
== ==
:: ::
++ approve-batch-transfer
|= to=address
^- call-data
:- 'approveBatchTransfer(address)'
:~ [%address to]
==
::
++ transfer-batch
|= from=address
^- call-data
:- 'transferBatch(address)'
:~ [%address from]
==
::
++ withdraw
|= to=address
^- call-data
:- 'withdraw(address)'
:~ [%address to]
==
::
:: read calls :: read calls
:: ::
++ rights ++ rights

View File

@ -66,8 +66,14 @@
[%adopt who=ship] [%adopt who=ship]
[%start-document-poll gal=ship hash=@] [%start-document-poll gal=ship hash=@]
[%cast-document-vote gal=ship hash=@ vote=?] [%cast-document-vote gal=ship hash=@ vote=?]
[%start-upgrade-poll gal=ship =address]
[%cast-upgrade-vote gal=ship =address vote=?]
:: ::
[%send-point as=ship point=ship to=address] [%send-point as=ship point=ship to=address]
::
[%approve-batch-transfer to=address]
[%transfer-batch from=address]
[%withdraw to=address]
== ==
:: ::
++ prep-result ++ prep-result

View File

@ -48,7 +48,7 @@
+$ dock (pair @p term) +$ dock (pair @p term)
+$ gang (unit (set ship)) +$ gang (unit (set ship))
+$ mark @tas +$ mark @tas
+$ mein [our=ship now=@da eny=@uvJ] +$ mien [our=ship now=@da eny=@uvJ]
++ omen |$ [a] (pair path (cask a)) ++ omen |$ [a] (pair path (cask a))
+$ ship @p +$ ship @p
+$ sink (trel bone ship path) +$ sink (trel bone ship path)
@ -214,7 +214,7 @@
:: zen: Outside knowledge :: zen: Outside knowledge
:: mod: internal modules :: mod: internal modules
:: ::
mein mien
$= fad $= fad
$: :: lac: not verbose $: :: lac: not verbose
:: ::
@ -1294,31 +1294,30 @@
^- mass ^- mass
=; sam=(list mass) =; sam=(list mass)
:+ %arvo %| :+ %arvo %|
:~ hoon+&+pit :~ :+ %hoon %|
zuse+&+zus.mod :~ one+&+..bloq
two+&+..turn
tri+&+..year
qua+&+..sane
pen+&+..ride
==
hex+&+..part
pit+&+pit
lull+|+[dot+&+q typ+&+p ~]:lul.mod
zuse+|+[dot+&+q typ+&+p ~]:zus.mod
vane+|+sam vane+|+sam
== ==
:: ::
=/ von %+ turn
(sort ~(tap by van.mod) |=([[a=@tas *] [b=@tas *]] (aor a b))) (sort ~(tap by van.mod) |=([[a=@tas *] [b=@tas *]] (aor a b)))
:: =/ bem=beam [[our %home da+now] /whey] ::TODO %base?
:~ :+ %reports %| |= [nam=term =vane]
=/ bem=beam [[our %home da+now] /whey] ::TODO %base? =; mas=(list mass)
%+ turn von nam^|+(welp mas [dot+&+q.vase typ+&+p.vase sac+&+worm ~]:vane)
|= [nam=term =vane] ?~ met=(peek [~ ~] nam bem) ~
=/ met (peek [~ ~] nam bem) ?~ u.met ~
~| mass/nam ~| mass+nam
?> &(?=(^ met) ?=(^ u.met)) :: XX make optional ;;((list mass) q.q.u.u.met)
nam^|+;;((list mass) q.q.u.u.met)
::
:+ %caches %|
%+ turn von
|=([nam=term =vane] nam^&+worm.vane)
::
:+ %dregs %|
%+ turn von
|=([nam=term =vane] nam^&+vase.vane)
==
:: +peek: read from the entire namespace :: +peek: read from the entire namespace
:: ::
++ peek ++ peek

View File

@ -4422,7 +4422,7 @@
:: :: ++chrd:de-xml:html :: :: ++chrd:de-xml:html
++ chrd :: character data ++ chrd :: character data
%+ cook |=(a=tape ^-(mars ;/(a))) %+ cook |=(a=tape ^-(mars ;/(a)))
(plus ;~(less doq ;~(pose (just `@`10) escp))) (plus ;~(pose (just `@`10) escp))
:: :: ++comt:de-xml:html :: :: ++comt:de-xml:html
++ comt :: comments ++ comt :: comments
=- (ifix [(jest '<!--') (jest '-->')] (star -)) =- (ifix [(jest '<!--') (jest '-->')] (star -))

View File

@ -87,7 +87,7 @@
0x223c.067f.8cf2.8ae1.73ee.5caf.ea60.ca44.c335.fecb 0x223c.067f.8cf2.8ae1.73ee.5caf.ea60.ca44.c335.fecb
:: ::
++ ecliptic ++ ecliptic
0xa5b6.109a.d2d3.5191.b3bc.32c0.0e45.26be.56fe.321f 0x33ee.cbf9.0847.8c10.6146.26a9.d304.bfe1.8b78.dd73
:: ::
++ linear-star-release ++ linear-star-release
0x86cd.9cd0.992f.0423.1751.e376.1de4.5cec.ea5d.1801 0x86cd.9cd0.992f.0423.1751.e376.1de4.5cec.ea5d.1801

View File

@ -349,7 +349,7 @@
++ on-peek ++ on-peek
|= =path |= =path
^- (unit (unit cage)) ^- (unit (unit cage))
?. =(/x/dbug/state path) ~ ?. =(/x/dbug/state path) (on-peek:og path)
``noun+(slop on-save:og !>(shoe=state)) ``noun+(slop on-save:og !>(shoe=state))
:: ::
++ on-agent ++ on-agent