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
This PR apply prettier formatting to all files, according to TS Coding Conventions. Now that we have auto format on commit, this is one time format to reduce unnecessary changes in new PRs.
Also adds 10 more seconds after graph node start, to allow enough time before creating subgraph.
Also attempt to fix chart install workflow and dapp tests.
---------
Signed-off-by: georgi-l95 <[email protected]>
Copy file name to clipboardExpand all lines: dapp-example/README.md
+15-7Lines changed: 15 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,13 +3,16 @@
3
3
Simple implementation of React + Metamask + Hedera Hashgraph
4
4
5
5
## Prerequisite
6
+
6
7
You must have running:
8
+
7
9
- JSON-RPC Relay on port :7546
8
10
- Hedera Local Node
9
11
10
12
## Configuration
11
13
12
14
Create `.env` file based on `.env.example`
15
+
13
16
```
14
17
# example local setup
15
18
HEDERA_NETWORK={"127.0.0.1:50211":"0.0.3"}
@@ -23,12 +26,14 @@ In the project directory:
23
26
24
27
1. Run `npm install`
25
28
2. Run `npm run bootstrap` - only once to setup accounts, tokens etc.
26
-
2. Run `npm run start`
29
+
3. Run `npm run start`
27
30
28
31
Dapp should be available at [http://localhost:3000](http://localhost:3000)
29
32
30
33
## Integration Tests
34
+
31
35
1. Add additional settings to `.env` file - the settings are used by cypress to add new network and accounts to the Metamask(only in the **testing** environment, **NOT** in your real Metamask).
36
+
32
37
```
33
38
# example local setup
34
39
NETWORK_NAME='Hedera Local' # name of the network to be added in metamask
@@ -39,10 +44,12 @@ IS_TESTNET=false # is public testnet
39
44
PRIVATE_KEY= # private key of the main account
40
45
RECEIVER_PRIVATE_KEY= # private key of the second account
41
46
```
47
+
42
48
2. Run `npm run bootstrap`
43
49
3. Run `npm run test`
44
50
45
51
Available operations:
52
+
46
53
-[x] Connect with Metamask
47
54
-[x] Show connected account's `address` & `balance`
0 commit comments