You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/getting_started.md
+91-25
Original file line number
Diff line number
Diff line change
@@ -65,15 +65,16 @@ Onwards with the installation and running our example app!
65
65
### Installation
66
66
67
67
Quartz is built in Rust (+wasm32 target). It expects to interact with a CosmWasm compatible
68
-
blockchain (eg. `neutrond`), built in Go (or run with Docker). And it requires `npm` for
69
-
building the frontend. Here we cover how to install Rust, Quartz, and CosmWasm
70
-
blockchains. You're responsible for installing Go and NPM.
68
+
blockchain (eg. `neutrond`), built in Go (or run with Docker).
69
+
It also requires a local version of `neutrond` for handling signing keys. And it requires `npm` for
70
+
building the frontend. Here we cover how to install Rust, Quartz, and Neutrond. You're responsible for installing Go and NPM (and optionally Docker).
71
71
72
72
Pre-reqs:
73
73
- Git
74
74
- Make
75
-
- Go or Docker
76
-
- Docker desktop v.4.34.3 with `host networking` enabled [here](https://docs.docker.com/engine/network/drivers/host/?uuid=67f19d61-ae59-4996-9060-01ebef9a586c%0A#docker-desktop).
75
+
- Go
76
+
- Docker
77
+
- For Mac, Docker desktop v.4.34.3 with `host networking` enabled [here](https://docs.docker.com/engine/network/drivers/host/?uuid=67f19d61-ae59-4996-9060-01ebef9a586c%0A#docker-desktop).
77
78
- NPM
78
79
79
80
#### Install Rust
@@ -109,22 +110,62 @@ And check that it worked:
109
110
quartz --help
110
111
```
111
112
112
-
#### Install a CosmWasm Client
113
+
#### Install Neutrond
113
114
114
-
For the local testnet, we can use `neutrond` with a single validator (we have a docker image for this).
115
+
A version of `neutrond` is required both for running a node and for managing
116
+
keys. Running the node can be done via docker, which is easier to get running,
117
+
but the Go binary will have to be installed regardless for signing transactions.
115
118
116
-
For `neutrond`:
119
+
To install the `neutrond` binary:
120
+
121
+
```bash
122
+
git clone -b main https://github.com/neutron-org/neutron.git
123
+
cd neutron
124
+
git checkout v4.0.1
125
+
make install-test-binary
126
+
```
127
+
128
+
You can now start the node either using this version of `neutrond` or using
129
+
Docker.
130
+
131
+
To use your local `neutrond` to run the node, you'll have to setup your
132
+
config and genesis files. See the [neutrond setup guide](/docs/neutrond_setup.md), and then return back here and
133
+
skip down to the bottom of this section.
134
+
135
+
Alternatively, you can start the node using docker.
136
+
137
+
If you're on Mac using Docker Desktop, make sure to enable [host networking](https://docs.docker.com/engine/network/drivers/host/?uuid=67f19d61-ae59-4996-9060-01ebef9a586c%0A#docker-desktop).
138
+
139
+
Then:
117
140
118
141
```bash
119
142
cd docker
120
143
docker compose up node
121
144
```
122
145
123
146
It will pre-configure a few keys (admin, alice, etc.) and allocate funds to them.
124
-
The default sending account for quartz txs is `admin`.
147
+
The default sending account for txs is `admin`, as specified in
148
+
`examples/transfers/quartz.toml`.
125
149
126
-
If building from source, you'll need to initialize the accounts yourself. See
127
-
the guide on [setting up a CosmWasm chain](/docs/neutrond_setup.md) and then return back here.
150
+
Finally, you'll need to import the keys from the docker container into your
Copy file name to clipboardexpand all lines: docs/neutrond_setup.md
+45-27
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,10 @@
1
-
# CosmWasm Binaries: Manual Install and Configure
1
+
# Neutrond Setup
2
2
3
-
> Note - We highly recommend setting up `neutrond` with the docker image provided. However, we have provided these detailed instructions in case you wanted to take a deeper look.
3
+
> Note - We would like to highly recommend setting up the `neutrond`node with the docker image provided. However, we also understand that docker is a poison upon the human soul, and thus provide these instructions for setting up the neutrond node locally, without imbibing such poision. It will probably take less time to follow these instructions than it will to build the docker image anyways. Up to you 🫡
4
4
5
5
Quartz expects to interact with a CosmWasm-based blockchain.
6
-
The default/archetypal binary is `neutrond`. We have included instructions for `wasmd`, but it is not supported in the cli today.
6
+
The default/archetypal binary is `neutrond`. Currently its hardcoded to use
7
+
`neutrond` though of course we will make this configurable soon.
7
8
8
9
Here we describe how to get setup from scratch or how to use an existing `neutrond`
9
10
binary/network you have access to.
@@ -21,39 +22,33 @@ For `neutrond`:
21
22
```bash
22
23
git clone -b main https://github.com/neutron-org/neutron.git
23
24
cd neutron
24
-
git checkout v4.0.0
25
-
make install
26
-
```
27
-
28
-
For `wasmd` (NOTE - NOT SUPPORTED BY CLI):
29
-
30
-
```bash
31
-
git clone https://github.com/cosmwasm/wasmd/
32
-
cd wasmd
33
-
git checkout v0.45.0
34
-
go install ./cmd/wasmd
25
+
git checkout v4.0.1
26
+
make install-test-binary
35
27
```
36
28
37
29
## Configure From Scratch
38
30
39
31
We have to initialize a new chain and load it with some accounts.
40
32
41
-
We'll assume you're using `neutrond` but it could be `wasmd` or any other.
33
+
If you already have `neutrond` keys, you may need to rename them or use
34
+
different names if the names overlap.
42
35
43
36
We also have to give the chain a chain ID. We'll use `testing`.
0 commit comments