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 contract is use to attach schema on the dataset and publish it as an event.
3
+
## Description
5
4
6
-
#####Contract deployed Address:
5
+
The `DataProtector` contract is designed to attach schemas to datasets and publish them as events.
7
6
8
-
```bash
9
-
0x3a4Ab33F3D605e75b6D00A32A0Fa55C3628F6A59
7
+
## Deploying the Contract
8
+
9
+
To deploy the contract, run the following command:
10
+
11
+
```sh
12
+
npm run deploy -- --network avalancheFuji
13
+
```
14
+
15
+
If no network is specified, the local Hardhat network will be used by default.
16
+
17
+
**Note:** This deployment uses the `createX` factory through Hardhat Ignition. To modify the deployment address, update the `salt` value in the `hardhat.config.json` file.
18
+
19
+
## Verifying the Contract
20
+
21
+
To verify the contract during deployment, include the `--verify` option in the deployment command:
22
+
23
+
```sh
24
+
npm run deploy -- --network avalancheFuji --verify
25
+
```
26
+
27
+
If the contract has already been deployed, you can verify it separately using the following command:
28
+
29
+
```sh
30
+
npx hardhat ignition verify chain-43113
10
31
```
32
+
33
+
This ensures the contract's source code is verified on the blockchain explorer for the specified network.
34
+
35
+
## Deployed Contract Address
36
+
37
+
Refer to the `../../environments/environments.json` file to find the deployed contract address for the respective environment.
0 commit comments