mirror of
https://github.com/urbit/shrub.git
synced 2024-12-19 16:51:42 +03:00
ported RPC actions
This commit is contained in:
parent
5276680cba
commit
8ef372f1c0
@ -46,7 +46,8 @@
|
||||
?+ mark (on-poke:def mark vase)
|
||||
%btc-bridge-command
|
||||
(handle-command:hc !<(command vase))
|
||||
%btc-bridge-action
|
||||
%btc-bridge-rpc-action
|
||||
~& > !<(rpc-action vase)
|
||||
`state
|
||||
==
|
||||
[cards this]
|
||||
|
13
gen/btc-bridge/rpc-action.hoon
Normal file
13
gen/btc-bridge/rpc-action.hoon
Normal file
@ -0,0 +1,13 @@
|
||||
:: Sends a raw RPC action to the BTC Bridge
|
||||
::
|
||||
:: Commands:
|
||||
::
|
||||
::
|
||||
::
|
||||
/- *btc-bridge
|
||||
::
|
||||
:- %say
|
||||
|= $: [now=@da eny=@uvJ =beak]
|
||||
[[ract=rpc-action ~] ~]
|
||||
==
|
||||
[%btc-bridge-rpc-action ract]
|
@ -1,4 +1,5 @@
|
||||
/- *btc
|
||||
/- *btc, bnh=btc-node-hook
|
||||
|
||||
|%
|
||||
+$ credentials [rpc-url=@t rpc-user=@t rpc-password=@t]
|
||||
+$ status
|
||||
@ -17,4 +18,21 @@
|
||||
[%connect-as-client host=ship]
|
||||
[%allow-clients users=(set ship)]
|
||||
==
|
||||
+$ rpc-action
|
||||
$% [%erpc action:electrum:rpc]
|
||||
[%brpc action:bitcoin-core:rpc]
|
||||
==
|
||||
++ rpc
|
||||
|%
|
||||
++ electrum
|
||||
|%
|
||||
+$ action
|
||||
$% [%timluc ~]
|
||||
==
|
||||
--
|
||||
++ bitcoin-core
|
||||
|%
|
||||
+$ action btc-node-hook-action:bnh
|
||||
--
|
||||
--
|
||||
--
|
||||
|
Loading…
Reference in New Issue
Block a user