mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-13 11:45:45 +03:00
refactor compiles
This commit is contained in:
parent
976d4f47fa
commit
0d97b7b034
@ -227,6 +227,7 @@
|
||||
==
|
||||
?~ prov ~
|
||||
:- (poke-provider host.u.prov [%tx-info txid.act])
|
||||
?~ poym ~
|
||||
?~ payee.u.poym ~
|
||||
:_ ~
|
||||
%- poke-hook
|
||||
@ -281,7 +282,7 @@
|
||||
?> (piym-matches u.pay)
|
||||
:_ (update-pend-piym txid.act u.pay(pend `txid.act))
|
||||
?~ prov ~
|
||||
~[(poke-provider host.u.prov [%txinfo txid.act])]
|
||||
~[(poke-provider host.u.prov [%tx-info txid.act])]
|
||||
::
|
||||
++ piym-matches
|
||||
|= p=payment
|
||||
@ -334,8 +335,11 @@
|
||||
?. ?=(%.y -.upd) `state
|
||||
?- -.p.upd
|
||||
%address-info
|
||||
=+ r=(~(get by reqs) address.p.upd)
|
||||
:_ state(reqs (~(del by reqs) address.p.upd))
|
||||
~[(poke-store p.upd)]
|
||||
?~ r ~
|
||||
?> ?=(%address-info -.u.r)
|
||||
~[(poke-store [%address-info xpub.u.r chyg.u.r idx.u.r +>.p.upd])]
|
||||
::
|
||||
%tx-info
|
||||
:_ state(reqs (~(del by reqs) txid.info.p.upd))
|
||||
@ -572,7 +576,7 @@
|
||||
^- (list card)
|
||||
?~ prov ~|("provider not set" !!)
|
||||
%+ turn ~(tap in ~(key by pend-piym))
|
||||
|=(=txid (poke-provider host.u.prov [%txinfo txid]))
|
||||
|=(=txid (poke-provider host.u.prov [%tx-info txid]))
|
||||
::
|
||||
++ get-raw-tx
|
||||
|= [host=ship =txid]
|
||||
|
@ -89,7 +89,7 @@
|
||||
::
|
||||
+$ action
|
||||
$% [%add-wallet =xpub =fprint scan-to=(unit scon) max-gap=(unit @ud) confs=(unit @ud)]
|
||||
[%address-info =address utxos=(set utxo) used=? block=@ud]
|
||||
[%address-info =xpub =chyg =idx utxos=(set utxo) used=? block=@ud]
|
||||
[%tx-info =info:tx block=@ud]
|
||||
[%generate-address =xpub =chyg =pmet]
|
||||
[%generate-txbu =xpub payee=(unit ship) feyb=sats txos=(list txo)]
|
||||
@ -106,7 +106,7 @@
|
||||
:: last-block: most recent block this address was checked
|
||||
::
|
||||
+$ request
|
||||
$% [%address-info last-block=@ud a=address]
|
||||
$% [%address-info last-block=@ud a=address =xpub =chyg =idx]
|
||||
[%tx-info last-block=@ud =txid]
|
||||
==
|
||||
--
|
||||
|
Loading…
Reference in New Issue
Block a user