shrub/MOON_INSTALL.md

85 lines
2.0 KiB
Markdown
Raw Normal View History

2020-11-28 10:25:32 +03:00
# Installing on a Moon
Requires base hash at least: `rd3oe`
2021-01-22 11:59:38 +03:00
Moon keys:
```
~sarsev-dapwel-timluc-miptev
0w2.LVGJb.ufXUR.0bn--.rQ6qF.L5Foj.lkIzX.pR~pr.BHZ7x.G~HGK.JUGoG.riHNr.g7v8o.UZ~Hl.Stsdh.uqwRc.4bJcM.Zi~-1.Q84g0.efa28.mu072.tg0g1
~pidlun-hadwyx-timluc-miptev
0w5fCcu.UT9HM.853Z5.2vBGL.YglSz.H9wVI.BIjZT.xOpnG.A31-6.qR29j.Fq7Gu.ZSeI4.No9n0.0HCXS.5eloq.3Be9X.GEz7Q.hgwf0.0URA4.yL01M.Dk7E1
```
2020-11-28 10:25:32 +03:00
## Create Moon
In your Urbit:
```
|moon
```
Copy the key and note the moon name.
## Install New `zuse.hoon`
```
2021-01-22 11:59:38 +03:00
./urbit -w $MOON_NAME -G $COPIED_KEY -c $PIER_DIR
2020-11-28 10:25:32 +03:00
```
The moon will compile and apply OTAs. After that is done, run:
```
|mount %
```
2021-01-22 11:59:38 +03:00
Install files:
2020-11-28 10:25:32 +03:00
```
2021-01-22 11:59:38 +03:00
./install.sh $MOON_PIER
2020-11-28 10:25:32 +03:00
```
2021-01-22 11:59:38 +03:00
## End to End
### On Moon1:
2020-11-28 10:25:32 +03:00
```
2021-02-08 22:21:19 +03:00
=moon1 ~massev-racsyt-timluc-miptev
=moon2 ~raprup-hanpec-dinleb-rambep
2020-11-28 10:25:32 +03:00
|commit %home
2021-01-22 11:59:38 +03:00
|start %btc-provider
|start %btc-wallet-store
|start %btc-wallet-hook
2021-01-28 14:03:53 +03:00
:btc-provider|command [%set-credentials api-url='http://localhost:50002' %main]
2021-01-22 11:59:38 +03:00
:btc-provider|command [%whitelist-clients `(set ship)`(sy ~[moon2])]
2021-02-08 22:21:19 +03:00
=xpubmain 'zpub6rFR7y4Q2AijBEqTUquhVz398htDFrtymD9xYYfG1m4wAcvPhXNfE3EfH1r1ADqtfSdVCToUG868RvUUkgDKf31mGDtKsAYz2oz2AGutZYs'
2021-02-09 13:35:19 +03:00
:btc-wallet-hook|command [%set-provider moon1 %main]
2021-01-22 11:59:38 +03:00
=fprint [%4 0xdead.beef]
2021-02-08 22:21:19 +03:00
:btc-wallet-store|action [%add-wallet xpubmain fprint ~ [~ 8] [~ 6]]
2020-11-28 10:25:32 +03:00
```
2021-01-22 11:59:38 +03:00
### On Moon2:
2020-11-28 10:25:32 +03:00
```
2021-01-22 11:59:38 +03:00
:: xpub from PRIVATE.md
2021-02-08 22:21:19 +03:00
=moon1
=moon2
2021-01-22 11:59:38 +03:00
|commit %home
|start %btc-wallet-store
|start %btc-wallet-hook
2021-02-09 13:35:19 +03:00
:btc-wallet-hook|command [%set-provider moon1 %main]
2021-01-22 11:59:38 +03:00
=xpub2 'zpub6r8dKyWJ31XF6n69KKeEwLjVC5ruqAbiJ4QCqLsrV36Mvx9WEjUaiPNPGFLHNCCqgCdy6iZC8ZgHsm6a1AUTVBMVbKGemNcWFcwBGSjJKbD'
=fprint [%4 0xbeef.dead]
2021-01-26 14:27:32 +03:00
:btc-wallet-store|action [%add-wallet xpub2 fprint ~ [~ 8] [~ 1]]
2020-11-28 10:25:32 +03:00
```
2021-01-22 11:59:38 +03:00
### Request Address
Moon2:
2020-11-28 10:25:32 +03:00
```
2021-02-09 13:35:19 +03:00
:btc-wallet-hook|command [%req-pay-address payee=~massev-racsyt-timluc-miptev value=10.000 [~ 37]]
2021-01-22 11:59:38 +03:00
:btc-wallet-hook +dbug [%state 'poym']
2020-11-28 10:25:32 +03:00
```
2021-01-22 11:59:38 +03:00
## scrys
2020-11-28 10:25:32 +03:00
```
2021-01-22 11:59:38 +03:00
.^((list @t) %gx /=btc-wallet-store=/scanned/noun)
2021-02-08 22:21:19 +03:00
.^(@ud %gx /=btc-wallet-store=/balance/[xpubmain]/noun)
2020-11-28 10:25:32 +03:00
```
2021-02-08 22:21:19 +03:00
1cb10bd68e827de119d89332883f8736038bd703c30e6dbecbb829d448608e94