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: docs/cdk/how-to/integrate-da.md
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ This section shows you how to create a custom CDK validium DAC contract.
15
15
16
16
3. Run `npm i` from the root.
17
17
18
-
4. Go to the [validium smart contracts directory](https://github.com/0xPolygonHermez/zkevm-contracts/tree/feature/etrog/contracts/v2/consensus/validium).
18
+
4. Go to the [`contracts/v2/consensus/validium`](https://github.com/0xPolygonHermez/zkevm-contracts/tree/feature/etrog/contracts/v2/consensus/validium) directory.
19
19
20
20
!!! tip
21
21
- Until further notice, these contracts run on the [etrog release](https://polygon.technology/blog/polygon-zkevm-the-etrog-upgrade-is-live-on-mainnet).
@@ -122,8 +122,8 @@ This section shows you how to deploy the Docker image containing your custom DAC
122
122
6. Build the image with the following commands:
123
123
124
124
```sh
125
-
npx hardhat compile
126
-
npm run docker:contracts
125
+
sudo npx hardhat compile
126
+
sudo npm run docker:contracts
127
127
```
128
128
129
129
7. Tag the image with the following command, where `XXXX` is custom:
@@ -144,10 +144,11 @@ This section shows you how to set up your CDK node that sends and receives data
144
144
const (
145
145
// DataAvailabilityCommittee is the DAC protocol backend
where `DataAvailabilityCommittee` matches the `_PROTOCOL_NAME` see in the [Set up contracts](#set-up-contracts) section.
151
+
151
152
3. _OPTIONAL_: Add a config struct to the new package inside the main config.go file so that your package can receive custom configurations using the node’s main config file.
152
153
153
154
4. Instantiate your package and use it to create the main data availability instance, as done in the Polygon implementation.
0 commit comments