mirror of
https://github.com/urbit/shrub.git
synced 2024-12-14 11:08:45 +03:00
changed to :bit+send 0cADDRESS 'BTC-amount'
This commit is contained in:
parent
31527132c6
commit
1515de98c3
@ -83,7 +83,15 @@ $: client-id=(unit ,@t) app-secret=(unit ,@t)
|
|||||||
^- move
|
^- move
|
||||||
[ost %send way [his app.hid] %poke mez]
|
[ost %send way [his app.hid] %poke mez]
|
||||||
::
|
::
|
||||||
++ poke-bit-send :: send to ship
|
++ poke-bit-send :: send to address
|
||||||
|
|= [[ost=bone @] addr=@uc amount=@t]
|
||||||
|
:_ +>.$
|
||||||
|
:_ ~
|
||||||
|
=+ info=[to/s/(rsh 3 2 (scot %uc addr)) amount/s/amount ~]
|
||||||
|
=+ jon=(joba %transaction (jobe info))
|
||||||
|
(api-call ost /send /transactions/'send_money' %post jon)
|
||||||
|
::
|
||||||
|
++ poke-bit-ship-send :: send to ship
|
||||||
|= [[ost=bone @] to=ship amount=@t]
|
|= [[ost=bone @] to=ship amount=@t]
|
||||||
=. outgoing.vat (~(put by outgoing.vat) to amount)
|
=. outgoing.vat (~(put by outgoing.vat) to amount)
|
||||||
:_ +>.$
|
:_ +>.$
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
::
|
::
|
||||||
:::::::
|
:::::::
|
||||||
!:
|
!:
|
||||||
|= [^ [to=ship amo=@t ~] ~]
|
|= [^ [to=@uc amo=@t ~] ~]
|
||||||
[%bit-send to amo]
|
[%bit-send to amo]
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user