refactor compiles

This commit is contained in:
timlucmiptev 2020-12-23 18:47:22 +02:00 committed by ixv
parent 976d4f47fa
commit 0d97b7b034
2 changed files with 9 additions and 5 deletions

View File

@ -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]

View File

@ -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]
==
--