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: hardhat-kadena-plugin/packages/hardhat-kadena/README.md
+39-8
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,23 @@ To install the plugin, run the following command: **NOT PUBLISHED YET**
10
10
npm install hardhat_kadena
11
11
```
12
12
13
+
## Build from source
14
+
You can also build the plugin from source. To do this, first, clone the repository and follow these steps:
15
+
16
+
**Note**: You need to have `pnpm` installed.
17
+
```bash
18
+
cd hardhat-kadena-plugin
19
+
pnpm install
20
+
cd packages/hardhat-kadena
21
+
pnpm build
22
+
```
23
+
Once built, you can run the tests for the example project:
24
+
```bash
25
+
cd ../solidity-example
26
+
pnpm hardhat test
27
+
```
28
+
29
+
13
30
## Usage
14
31
15
32
To use the plugin in your Hardhat project, import it in your Hardhat configuration file (`hardhat.config.ts` or `hardhat.config.js`):
@@ -39,8 +56,7 @@ The plugin uses the following configuration options:
39
56
|`accounts`|`HardhatNetworkAccountsConfig` (optional) | Defines the accounts configuration for the network (default: Hardhat network accounts). |
40
57
|`chains`|`number` (optional) | Specifies the number of chains in the Chainweb network (default: `2`). |
41
58
|`graph`|`{ [key: number]: number[] }` (optional) | Defines the graph structure of the Chainweb network where keys represent chain IDs and values are arrays of connected chain IDs (default: Pearson graph). |
42
-
| `logging` | `"none" \| "info" \| "debug"` (optional) | Sets the logging level for debugging
43
-
purposes (default: `"info"`). |
59
+
|`logging`|`"none" \| "info" \| "debug"` (optional) | Sets the logging level for debugging purposes (default: `"info"`). |
44
60
45
61
## Graph
46
62
If you don’t provide a graph, the plugin automatically generates one for the chains using its built-in algorithm. Currently, it supports only 2, 3, 10, or 20 chains. If you need a different number of chains, you must explicitly pass the graph property
@@ -51,7 +67,13 @@ If you don’t provide a graph, the plugin automatically generates one for the c
0 commit comments