File tree Expand file tree Collapse file tree 14 files changed +28
-67
lines changed
how-to/perform-http-requests Expand file tree Collapse file tree 14 files changed +28
-67
lines changed Original file line number Diff line number Diff line change @@ -93,10 +93,8 @@ FAUCET_URL=http://localhost:8080
9393# LINERA_TMP_DIR=$(mktemp -d)
9494# FAUCET_URL=https://faucet.testnet-XXX.linera.net # for some value XXX
9595
96- # Set the path of the future wallet.
97- export LINERA_WALLET=" $LINERA_TMP_DIR /wallet.json"
98- export LINERA_KEYSTORE=" $LINERA_TMP_DIR /keystore.json"
99- export LINERA_STORAGE=" rocksdb:$LINERA_TMP_DIR /client.db"
96+ # Set the home directory for future wallets.
97+ export LINERA_HOME=" $LINERA_TMP_DIR "
10098
10199# Initialize a new user wallet.
102100linera wallet init --faucet $FAUCET_URL
Original file line number Diff line number Diff line change @@ -53,9 +53,8 @@ linera_spawn linera net up --with-faucet --faucet-port $FAUCET_PORT
5353Create the user wallet and add chains to it:
5454
5555``` bash
56- export LINERA_WALLET=" $LINERA_TMP_DIR /wallet.json"
57- export LINERA_KEYSTORE=" $LINERA_TMP_DIR /keystore.json"
58- export LINERA_STORAGE=" rocksdb:$LINERA_TMP_DIR /client.db"
56+ # Set the home directory for future wallets.
57+ export LINERA_HOME=" $LINERA_TMP_DIR "
5958
6059linera wallet init --faucet $FAUCET_URL
6160
Original file line number Diff line number Diff line change @@ -40,9 +40,8 @@ linera_spawn linera net up --with-faucet --faucet-port $LINERA_FAUCET_PORT
4040Create the user wallet and add chains to it:
4141
4242``` bash
43- export LINERA_WALLET=" $LINERA_TMP_DIR /wallet.json"
44- export LINERA_KEYSTORE=" $LINERA_TMP_DIR /keystore.json"
45- export LINERA_STORAGE=" rocksdb:$LINERA_TMP_DIR /client.db"
43+ # Set the home directory for future wallets.
44+ export LINERA_HOME=" $LINERA_TMP_DIR "
4645
4746linera wallet init --faucet $LINERA_FAUCET_URL
4847
Original file line number Diff line number Diff line change @@ -65,12 +65,8 @@ linera_spawn linera net up --with-faucet --faucet-port $FAUCET_PORT
6565Create the user wallets and add chains to them:
6666
6767``` bash
68- export LINERA_WALLET_1=" $LINERA_TMP_DIR /wallet_1.json"
69- export LINERA_KEYSTORE_1=" $LINERA_TMP_DIR /keystore_1.json"
70- export LINERA_STORAGE_1=" rocksdb:$LINERA_TMP_DIR /client_1.db"
71- export LINERA_WALLET_2=" $LINERA_TMP_DIR /wallet_2.json"
72- export LINERA_KEYSTORE_2=" $LINERA_TMP_DIR /keystore_2.json"
73- export LINERA_STORAGE_2=" rocksdb:$LINERA_TMP_DIR /client_2.db"
68+ # Set the home directory for future wallets.
69+ export LINERA_HOME=" $LINERA_TMP_DIR "
7470
7571linera --with-wallet 1 wallet init --faucet $FAUCET_URL
7672linera --with-wallet 2 wallet init --faucet $FAUCET_URL
@@ -83,9 +79,6 @@ OWNER_1="${INFO_1[1]}"
8379OWNER_2=" ${INFO_2[1]} "
8480```
8581
86- Note that ` linera --with-wallet 1 ` is equivalent to `linera --wallet "$LINERA_WALLET_1" --keystore "$LINERA_KEYSTORE_1"
87- --storage "$LINERA_STORAGE_1"`.
88-
8982The command below can be used to list the chains created for the test as known by each
9083wallet:
9184
Original file line number Diff line number Diff line change @@ -57,9 +57,8 @@ linera_spawn linera net up --with-faucet --faucet-port $FAUCET_PORT
5757Create the user wallet and add chains to it:
5858
5959``` bash
60- export LINERA_WALLET=" $LINERA_TMP_DIR /wallet.json"
61- export LINERA_KEYSTORE=" $LINERA_TMP_DIR /keystore.json"
62- export LINERA_STORAGE=" rocksdb:$LINERA_TMP_DIR /client.db"
60+ # Set the home directory for future wallets.
61+ export LINERA_HOME=" $LINERA_TMP_DIR "
6362
6463linera wallet init --faucet $FAUCET_URL
6564
Original file line number Diff line number Diff line change @@ -52,9 +52,8 @@ linera_spawn linera net up --with-faucet --faucet-port $FAUCET_PORT
5252Create the user wallet and add chains to it:
5353
5454``` bash
55- export LINERA_WALLET=" $LINERA_TMP_DIR /wallet.json"
56- export LINERA_KEYSTORE=" $LINERA_TMP_DIR /keystore.json"
57- export LINERA_STORAGE=" rocksdb:$LINERA_TMP_DIR /client.db"
55+ # Set the home directory for future wallets.
56+ export LINERA_HOME=" $LINERA_TMP_DIR "
5857
5958linera wallet init --faucet $FAUCET_URL
6059
Original file line number Diff line number Diff line change @@ -48,12 +48,8 @@ linera_spawn linera net up --with-faucet --faucet-port $FAUCET_PORT
4848Create the user wallets and add chains to them:
4949
5050``` bash
51- export LINERA_WALLET_1=" $LINERA_TMP_DIR /wallet_1.json"
52- export LINERA_KEYSTORE_1=" $LINERA_TMP_DIR /keystore_1.json"
53- export LINERA_STORAGE_1=" rocksdb:$LINERA_TMP_DIR /client_1.db"
54- export LINERA_WALLET_2=" $LINERA_TMP_DIR /wallet_2.json"
55- export LINERA_KEYSTORE_2=" $LINERA_TMP_DIR /keystore_2.json"
56- export LINERA_STORAGE_2=" rocksdb:$LINERA_TMP_DIR /client_2.db"
51+ # Set the home directory for future wallets.
52+ export LINERA_HOME=" $LINERA_TMP_DIR "
5753
5854linera --with-wallet 1 wallet init --faucet $FAUCET_URL
5955linera --with-wallet 2 wallet init --faucet $FAUCET_URL
@@ -66,9 +62,6 @@ OWNER_1="${INFO_1[1]}"
6662OWNER_2=" ${INFO_2[1]} "
6763```
6864
69- Note that ` linera --with-wallet 1 ` or ` linera -w1 ` is equivalent to `linera --wallet
70- "$LINERA_WALLET_1" --keystore "$LINERA_KEYSTORE_1" --storage "$LINERA_STORAGE_1"`.
71-
7265### Creating the Game Chain
7366
7467We open a new chain owned by both ` $OWNER_1 ` and ` $OWNER_2 ` , create the application on it, and
Original file line number Diff line number Diff line change @@ -90,9 +90,8 @@ FAUCET_URL=http://localhost:8081
9090We then create a wallet and obtain a chain to use with the application.
9191
9292``` bash
93- export LINERA_WALLET=" $LINERA_TMP_DIR /wallet.json"
94- export LINERA_KEYSTORE=" $LINERA_TMP_DIR /keystore.json"
95- export LINERA_STORAGE=" rocksdb:$LINERA_TMP_DIR /client.db"
93+ # Set the home directory for future wallets.
94+ export LINERA_HOME=" $LINERA_TMP_DIR "
9695
9796linera wallet init --faucet $FAUCET_URL
9897
Original file line number Diff line number Diff line change @@ -55,9 +55,8 @@ linera_spawn linera net up --with-faucet --faucet-port $FAUCET_PORT
5555Create the user wallet and add chains to it:
5656
5757``` bash
58- export LINERA_WALLET=" $LINERA_TMP_DIR /wallet.json"
59- export LINERA_KEYSTORE=" $LINERA_TMP_DIR /keystore.json"
60- export LINERA_STORAGE=" rocksdb:$LINERA_TMP_DIR /client.db"
58+ # Set the home directory for future wallets.
59+ export LINERA_HOME=" $LINERA_TMP_DIR "
6160
6261linera wallet init --faucet $FAUCET_URL
6362
Original file line number Diff line number Diff line change @@ -64,9 +64,8 @@ linera_spawn linera net up --with-faucet --faucet-port $FAUCET_PORT
6464Create the user wallet and add chains to it:
6565
6666``` bash
67- export LINERA_WALLET=" $LINERA_TMP_DIR /wallet.json"
68- export LINERA_KEYSTORE=" $LINERA_TMP_DIR /keystore.json"
69- export LINERA_STORAGE=" rocksdb:$LINERA_TMP_DIR /client.db"
67+ # Set the home directory for future wallets.
68+ export LINERA_HOME=" $LINERA_TMP_DIR "
7069
7170linera wallet init --faucet $FAUCET_URL
7271
You can’t perform that action at this time.
0 commit comments