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: smart-contracts-hardhat/README.md
+12-6Lines changed: 12 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,24 +11,30 @@ This project is used as a guide to show how to setup HardHat to interact with **
11
11
12
12
**This Hardhat repository uses the [bun](https://bun.sh) package manager. Make sure to [install it](https://bun.sh/docs/installation) first.**
13
13
14
-
Install the dependencies
14
+
Follow the instructions below in your terminal to get started using the smart contracts and running the script examples.
15
+
16
+
> **Requirement:** Make sure to add the private key of an EOA for deployment. Optionally, you can provide a private key of a controller and a Universal Profile address to deploy contracts using your smart contract account.
17
+
> **Tips:** Add the `--verbose` and `--show-stack-traces` flags for further information.
15
18
16
19
```bash
20
+
# 1. Install the dependencies
17
21
bun install
22
+
23
+
# 2. Set the private environment variables in your .env file
24
+
cp .env.example .env
25
+
26
+
# 3. Compile all smart contracts within `/contracts`:
27
+
bun run build
18
28
```
19
29
20
30
## Development
21
31
22
32
### Compile Contracts
23
33
24
-
Compile all smart contracts within `/contracts`:
25
-
26
34
```bash
27
-
bun hardhat compile
35
+
bun run build
28
36
```
29
37
30
-
> **INFO** Add the `--verbose` and `--show-stack-traces` flags for further information.
31
-
32
38
### Deploy Contracts
33
39
34
40
Create a `.env` file and put the private key of your deployer address inside it.
0 commit comments