Skip to content

Commit 75ae2e4

Browse files
update script
1 parent b6257b0 commit 75ae2e4

File tree

3 files changed

+18
-11
lines changed

3 files changed

+18
-11
lines changed

docs/cdk/get-started/deploy-validium/contracts/deploy-contracts.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
jq --arg TEST_ADDRESS "$TEST_ADDRESS" '.trustedSequencerURL = "http://127.0.0.1:8123" | .trustedSequencer = $TEST_ADDRESS | .trustedAggregator = $TEST_ADDRESS | .admin = $TEST_ADDRESS | .cdkValidiumOwner = $TEST_ADDRESS | .initialCDKValidiumDeployerOwner = $TEST_ADDRESS | .timelockAddress = $TEST_ADDRESS | .forkID = 6' ./deploy_parameters.json.example > ./deploy_parameters.json
1515
```
1616

17-
3. The complete `deploy_parameters.json` should look something like this:
17+
3. The complete `deploy_parameters.json` should look something like this, where all the addresses are equal to the generated address except for `maticTokenAddress`:
1818

1919
```bash
20-
cat ~/cdk-validium/cdk-validium-contracts-0.0.2/deployment/deploy_parameters.json
20+
nano ~/cdk-validium/cdk-validium-contracts-0.0.2/deployment/deploy_parameters.json
2121
# ~/cdk-validium/cdk-validium-contracts-0.0.2/deployment/deploy_parameters.json
2222
{
2323
"realVerifier": false,
@@ -51,7 +51,7 @@
5151
5252
### `CDKValidiumDeployer`
5353
54-
This contract is a factory that deploys the deterministic contracts required by the system and must be deployed first.
54+
This is a factory contract that deploys the deterministic contracts required by the system and must be deployed first.
5555
5656
The address of the contracts it creates depends on the salt and the `initialCDKValidiumDeployerOwner` inside `deploy_parameters.json`.
5757
@@ -76,6 +76,13 @@ The address of the contracts it creates depends on the salt and the `initialCDKV
7676
!!! info
7777
This may take several minutes depending on network conditions.
7878
79+
!!! warning
80+
If you see this message, you can safely ignore it:
81+
82+
```sh
83+
cp: cannot stat '.openzeppelin/sepolia.json': No such file or directory
84+
```
85+
7986
3. On successful deployment, you should see a new directory named `deployments` containing a directory storing the information about your deployment. For example:
8087
8188
```bash

docs/cdk/get-started/deploy-validium/contracts/prerequisites.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Use a public faucet to get Sepolia test ETH.
3232

3333
## Configuration files
3434

35-
Create a folder in `/var/tmp/cdk/` to store configuration files.
35+
Create a folder `/tmp/cdk/` to store configuration files.
3636

3737
```bash
3838
mkdir /tmp/cdk/

docs/cdk/get-started/deploy-validium/node/prerequisites.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
```bash
3030
#!/bin/bash
31-
31+
3232
declare -A commands
3333
commands["git"]="2.18.0"
3434
commands["node"]="16.0.0"
@@ -43,19 +43,19 @@
4343
commands["pip3"]="20.0.2"
4444
commands["python3"]="3.8.0"
4545
commands["polycli"]="0.1.39"
46-
46+
4747
# Function to check command version
4848
check_version() {
4949
local command=$1
5050
local min_version=$2
5151
local version
5252
local status
53-
53+
5454
if ! command -v "$command" &> /dev/null; then
5555
printf "| %-15s | %-20s | %-20s |\n" "$command" "Not Found" "$min_version"
5656
return
5757
fi
58-
58+
5959
case "$command" in
6060
git) version=$(git --version | awk '{print $3}') ;;
6161
node) version=$(node --version | cut -d v -f 2) ;;
@@ -72,14 +72,14 @@
7272
polycli) version=$(polycli version | awk '{print $4}' | cut -d '-' -f 1 | sed 's/v//') ;;
7373
*) version="Found" ;;
7474
esac
75-
75+
7676
printf "| %-15s | %-20s | %-20s |\n" "$command" "$version" "$min_version"
7777
}
78-
78+
7979
echo "+-----------------+----------------------+----------------------+"
8080
printf "| %-15s | %-20s | %-20s |\n" "CLI Command" "Found Version" "Minimum Version"
8181
echo "+-----------------+----------------------+----------------------+"
82-
82+
8383
for cmd in "${!commands[@]}"; do
8484
check_version "$cmd" "${commands[$cmd]}"
8585
echo "+-----------------+----------------------+----------------------+"

0 commit comments

Comments
 (0)