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/ROOCH.md
+28-22Lines changed: 28 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,14 +13,22 @@ Before running the script, ensure you have the following prerequisites installed
13
13
14
14
### Step-by-Step Instructions
15
15
16
-
#### Step 1: Create a Roach Account
16
+
#### Step 1: Create a Rooch Account
17
17
18
-
First, you need to create a Roach account. This account will be used throughout the setup process.
18
+
First, you need to have `rooch` binary in hand. The `rooch` binary can be downloaded from the [Rooch GitHub repo](https://github.com/rooch-network/rooch). Use the `rooch` binary to create a Rooch account. This account will be used throughout the setup process.
19
+
20
+
```bash
21
+
rooch init
22
+
```
23
+
24
+
or
19
25
20
26
```bash
21
27
rooch account create
22
28
```
23
29
30
+
if there already exists an account.
31
+
24
32
#### Step 2: Clear and Start Local Network
25
33
26
34
Clear any existing state and start the local network.
@@ -32,12 +40,11 @@ rooch server start
32
40
33
41
#### Step 3: Deploy Contracts
34
42
35
-
Navigate to the `rooch` directory, build the contracts for development, publish them with named addresses and update `.env``ROOCH_ORACLE_ADDRESS` with deployed Address
43
+
Navigate to this repo's [rooch](../rooch) directory, build the contracts for development, and publish them with named addresses and update `.env``ROOCH_ORACLE_ADDRESS` with deployed Address
Copy the example environment file to create your own `.env` file:
83
90
84
91
```bash
85
-
cp .env.example .env
92
+
cp .env.sample .env
86
93
```
87
94
88
95
Export the Rooch Private Key:
89
96
90
97
```bash
91
98
rooch account export --address <Rooch Address>
92
-
93
99
```
94
100
95
101
96
-
To connect to the local Rooch node, set `ROOCH_CHAIN_ID` to `"localnet"`.
97
-
Otherwise, connect to testNet by setting `ROOCH_CHAIN_ID` to `"testnet"`, or to TestNet by setting `ROOCH_CHAIN_ID` to `"testnet"`.
102
+
To connect to the local Rooch node, set `ROOCH_CHAIN_ID` to `"localnet"`.
103
+
Otherwise, connect to DevNet by setting `ROOCH_CHAIN_ID` to `"devnet"`, or to TestNet by setting `ROOCH_CHAIN_ID` to `"testnet"`.
98
104
Ensure that `ROOCH_ORACLE_ADDRESS` is set to the address of the deployed module, e.g., `"0x85859e45551846d9ab8651bb0b6f6e1740c9d758cfda05cfc39d49e2a604d783"`.
0 commit comments