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
93
93
# LINERA_TMP_DIR=$(mktemp -d)
94
94
# FAUCET_URL=https://faucet.testnet-XXX.linera.net # for some value XXX
95
95
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 "
100
98
101
99
# Initialize a new user wallet.
102
100
linera 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
53
53
Create the user wallet and add chains to it:
54
54
55
55
``` 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 "
59
58
60
59
linera wallet init --faucet $FAUCET_URL
61
60
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
40
40
Create the user wallet and add chains to it:
41
41
42
42
``` 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 "
46
45
47
46
linera wallet init --faucet $LINERA_FAUCET_URL
48
47
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
65
65
Create the user wallets and add chains to them:
66
66
67
67
``` 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 "
74
70
75
71
linera --with-wallet 1 wallet init --faucet $FAUCET_URL
76
72
linera --with-wallet 2 wallet init --faucet $FAUCET_URL
@@ -83,9 +79,6 @@ OWNER_1="${INFO_1[1]}"
83
79
OWNER_2=" ${INFO_2[1]} "
84
80
```
85
81
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
-
89
82
The command below can be used to list the chains created for the test as known by each
90
83
wallet:
91
84
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
57
57
Create the user wallet and add chains to it:
58
58
59
59
``` 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 "
63
62
64
63
linera wallet init --faucet $FAUCET_URL
65
64
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
52
52
Create the user wallet and add chains to it:
53
53
54
54
``` 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 "
58
57
59
58
linera wallet init --faucet $FAUCET_URL
60
59
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
48
48
Create the user wallets and add chains to them:
49
49
50
50
``` 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 "
57
53
58
54
linera --with-wallet 1 wallet init --faucet $FAUCET_URL
59
55
linera --with-wallet 2 wallet init --faucet $FAUCET_URL
@@ -66,9 +62,6 @@ OWNER_1="${INFO_1[1]}"
66
62
OWNER_2=" ${INFO_2[1]} "
67
63
```
68
64
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
-
72
65
### Creating the Game Chain
73
66
74
67
We 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
90
90
We then create a wallet and obtain a chain to use with the application.
91
91
92
92
``` 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 "
96
95
97
96
linera wallet init --faucet $FAUCET_URL
98
97
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
55
55
Create the user wallet and add chains to it:
56
56
57
57
``` 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 "
61
60
62
61
linera wallet init --faucet $FAUCET_URL
63
62
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
64
64
Create the user wallet and add chains to it:
65
65
66
66
``` 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 "
70
69
71
70
linera wallet init --faucet $FAUCET_URL
72
71
You can’t perform that action at this time.
0 commit comments