%blackhole
- Front end on a ship that can send(write) and receive information from%darkpool
.%darkpool
- An agent running on another ship that is a mock darkpool smart contract. This will match orders, send back acknowledgements and generate a proof of corresponding trades.
A trader wants to submit a larger order to a darkpool without revealing incomplete information. The logic order:
- Start the
%blackhole
agent on their ship - Wallet connect
- The trader inputs
Type
,Quantity
andPrice
and submits the order to the%darkpool
%darkpool
is a gall agent on another ship that is a mock darkpool smart contract- Once an order is matched,
%darkpool
will acknowledge the trade to each party and submit a proof to Eden for computation - Once that proof is generated, each party to the trade will receive the proof.
-
Boot a fake ship
./urbit -F zod
-
Create a
%blackhole
desk in the dojo> |mount %base > |merge %blackhole our %base > |mount %blackhole
-
Start a watcher in a new terminal, to sync the code into the fakeship
watch rsync -zr --delete /location/of/blackhole/desk/* /path/to/fake/zod/blackhole
-
Commit and install
%blackhole
on the fakeship> |commit %blackhole > |install our %blackhole
-
Boot a fake ship
~bud
./urbit -F bud
-
Create a
%darkpool
desk in the dojo> |mount %base > |merge %darkpool our %base > |mount %darkpool
-
Start a watcher in a new terminal, to sync the code into the fakeship
watch rsync -zr --delete /location/of/darkpool/desk/* /path/to/fake/dev/darkpool
-
Commit and install
%darkpool
on the fakeship> |commit %darkpool > |install our %darkpool
To send an order from %blackhole
to the %darkpool
agent in the dojo, with this format:
[%buy/%sell id target ticker quantity price]
> :blackhole &blackhole-order [%sell 4 ~bud 'ZORP' 71 3]
Clone this repo, switch to the ui
directory and run:
npm install
then
npm start
To learn app development on Urbit and Zorp, follow the guides here: