|
1 | 1 |
|
2 | | -### Remove old data if present |
| 2 | +# Tracks Setup Guide |
| 3 | +This guide will help you set up and initialize the Tracks environment. |
| 4 | + |
| 5 | +## Step 1: Remove Old Data |
| 6 | + |
| 7 | +If you have previously set up Tracks, remove any old data to ensure a clean environment. |
| 8 | + |
3 | 9 | ```shell |
4 | 10 | sudo rm -rf ~/.tracks |
5 | 11 | ``` |
| 12 | +## Step 2: Build the Tracks |
| 13 | + |
| 14 | +```bash |
| 15 | +make build |
| 16 | +``` |
| 17 | + |
| 18 | +## Step 3: Initialize the Tracks |
| 19 | + |
| 20 | +Initialize the sequencer with the necessary parameters. |
6 | 21 |
|
7 | | -### Init sequencer |
8 | 22 | ```shell |
9 | | -go run cmd/main.go init --daRpc "mock-rpc" --daKey "mockKey" --daType "mock" --moniker "monkey" --stationRpc "http://127.0.0.1:8545" --stationAPI "http://127.0.0.1:8545" --stationType "evm" |
| 23 | +daRpc="mock-rpc" |
| 24 | +daKey="mockKey" |
| 25 | +daType="mock" |
| 26 | +moniker="monkey" |
| 27 | +stationRpc="http://127.0.0.1:8545" |
| 28 | +stationAPI="http://127.0.0.1:8545" |
| 29 | +stationType="evm" |
| 30 | + |
| 31 | +./build/tracks init --daRpc "$daRpc" --daKey "$daKey" --daType "$daType" --moniker "$moniker" --stationRpc "$stationRpc" --stationAPI "$stationAPI" --stationType "$stationType" |
10 | 32 | ``` |
11 | 33 |
|
12 | | -### Create Keys for Junction |
| 34 | +## Step 4: Initialize the Prover |
| 35 | + |
| 36 | +Initialize the prover. Ensure you specify the correct version. |
| 37 | + |
13 | 38 | ```shell |
14 | | -go run cmd/main.go keys junction --accountName dummy --accountPath .tracks/junction-accounts/keys |
| 39 | +./build/tracks prover v1EVM |
15 | 40 | ``` |
16 | | -OR `Import with mnemonic` |
| 41 | + |
| 42 | +## Step 5: Create Keys for Junction (If not already created) |
| 43 | + |
| 44 | +Create keys for the junction account. If the keys are not already created, use the following command: |
| 45 | + |
| 46 | +```shell |
| 47 | +accountName="dummy" |
| 48 | +accountPath=".tracks/junction-accounts/keys" |
| 49 | + |
| 50 | +./build/tracks keys junction --accountName "$accountName" --accountPath "$accountPath" |
| 51 | +``` |
| 52 | + |
| 53 | +Alternatively, you can import an account using a mnemonic: |
| 54 | + |
17 | 55 | ```shell |
18 | | -go run cmd/main.go keys import --accountName dummy --accountPath .tracks/junction-accounts/keys --mnemonic "huge bounce thing settle diet mobile fruit skill call roast offer soap other upset toward sand dress moral pole smile limb round vacant ecology" |
| 56 | +accountName="dummy" |
| 57 | +accountPath=".tracks/junction-accounts/keys" |
| 58 | +mnemonic="huge bounce thing settle diet mobile fruit skill call roast offer soap other upset toward sand dress moral pole smile limb round vacant ecology" |
| 59 | + |
| 60 | +./build/tracks keys import --accountName "$accountName" --accountPath "$accountPath" --mnemonic "$mnemonic" |
19 | 61 | ``` |
20 | 62 |
|
21 | | -### Init Prover |
| 63 | +## Step 6: Fund the wallet |
| 64 | +- Join [Airchains Discord ](https://discord.gg/airchains) |
| 65 | +- Goto `switchyard-faucet-bot` channel |
| 66 | +- Type `$faucet <your_address>`, you will get 2AMF soon. |
| 67 | + |
| 68 | +## Step 7: Create a Station on Junction |
| 69 | + |
| 70 | +Create a station on the junction with the necessary parameters. |
| 71 | +> NOTE: don't forget to replace `accountAddressArray` with the addresses you want to make track member. Replace it with your new address |
| 72 | +
|
22 | 73 | ```shell |
23 | | -go run cmd/main.go prover v1EVM |
24 | | -``` |
25 | | -### Create station on junction |
26 | | -```sh |
27 | | -go run cmd/main.go create-station --tracks air1l9gjw7yklpx9tn74j328qwlmf7377rhle9hryc --accountName dummy --accountPath .tracks/junction-accounts/keys --jsonRPC "https://junction-testnet-rpc.synergynodes.com/" --info "EVM Track" --bootstrapNode "/ip4/192.168.1.24/tcp/2300/p2p/12D3KooWFoN66sCWotff1biUcnBE2vRTmYJRHJqZy27x1EpBB6AM" |
| 74 | +accountAddressArray="air1knf2an5efl8d9t5w75uds4ty8uj0scxx9yg783" #! replace it with your address |
| 75 | +accountName="dummy" |
| 76 | +accountPath=".tracks/junction-accounts/keys" |
| 77 | +#jsonRPC="http://0.0.0.0:26657" # localhost testing |
| 78 | +jsonRPC="https://junction-testnet-rpc.synergynodes.com/" # junction testnet |
| 79 | +bootstrapNode="/ip4/192.168.1.24/tcp/2300/p2p/12D3KooWFoN66sCWotff1biUcnBE2vRTmYJRHJqZy27x1EpBB6AM" |
| 80 | +info="EVM Track" |
| 81 | + |
| 82 | +./build/tracks create-station --tracks "$accountAddressArray" --accountName "$accountName" --accountPath "$accountPath" --jsonRPC "$jsonRPC" --info "$info" --bootstrapNode "$bootstrapNode" |
28 | 83 | ``` |
29 | 84 |
|
30 | | -### start node |
| 85 | +## Step 8: Start the Tracks |
| 86 | + |
| 87 | +Finally, start the node to begin interacting with the Tracks blockchain. |
| 88 | + |
31 | 89 | ```shell |
32 | | -go run cmd/main.go start |
33 | | -``` |
| 90 | +./build/tracks start |
| 91 | +``` |
| 92 | + |
| 93 | +## Troubleshooting |
| 94 | + |
| 95 | +If you encounter any issues during setup, refer to [official documentation](https://docs.airchains.io/rollups/evm-zk-rollup/system-requirements) or reach out [Airchains discord](https://discord.gg/airchains) for support. |
0 commit comments