|
1 | | -| Repo | Version | |
2 | | -| --- | --- | |
3 | | -| https://github.com/0xPolygon/cdk-validium-contracts/releases/tag/v0.0.2 | v0.0.2 | |
4 | | -| https://github.com/0xPolygon/cdk-validium-node/releases/tag/v0.0.3 | v0.0.3 | |
5 | | -| https://github.com/0xPolygonHermez/zkevm-prover | v3.0.2 | |
6 | | -| https://github.com/0xPolygon/cdk-data-availability.git | v0.0.3 | |
7 | | -| https://github.com/0xPolygonHermez/zkevm-bridge-service | v0.3.1 | |
8 | | - |
9 | | -The listed version may not be the most recent, but this will give a general idea of how the deployment process works. |
10 | | - |
11 | | -# Prerequisites |
12 | | - |
13 | | -### Minimum Requirements: |
14 | | - |
15 | | -| Minimum Disk Size | vCPUs | Memory (GB) | CPU Type | Architecture | OS | |
16 | | -| --- | --- | --- | --- | --- | --- | |
17 | | -| 32GB | 2 | 8 | Intel or AMD | x86/64 | Ubuntu 22.04 | |
18 | | - |
19 | | -Your operating system should be Linux-based (preferably Ubuntu 22.04), and it must have an AMD or Intel chip. |
20 | | - |
21 | | -Lastly, make sure you have at least `~0.3 Sepolia ETH` ready for deploying contracts and various contract calls. |
22 | | - |
23 | | -## Dependency Checking |
24 | | - |
25 | | -| Dependency | Version | Installation links | |
26 | | -| --- | --- | --- | |
27 | | -| git | 2.18.0 | https://git-scm.com/book/en/v2/Getting-Started-Installing-Git | |
28 | | -| node | 16.0.0 | https://nodejs.org/en/download | |
29 | | -| npm | 6.0.0 | https://docs.npmjs.com/downloading-and-installing-node-js-and-npm | |
30 | | -| golang | 1.18.0 | https://go.dev/doc/install | |
31 | | -| cast | 0.2.0 | https://book.getfoundry.sh/getting-started/installation | |
32 | | -| jq | 1.0 | https://jqlang.github.io/jq/download/ | |
33 | | -| tomlq | 3.0.0 | https://kislyuk.github.io/yq/#installation | |
34 | | -| postgres | 15 | https://www.postgresql.org/download/ | |
35 | | -| psql | 15.0 | https://www.postgresql.org/download/ | |
36 | | -| make | 3.80.0 | https://www.gnu.org/software/make/ | |
37 | | -| docker | 24.0.0 | https://docs.docker.com/engine/install/ | |
38 | | -| pip3 | 20.0.0 | https://pip.pypa.io/en/stable/installation/ | |
39 | | -| [For Testing] python3 | 3.8.0 | https://www.python.org/downloads/ | |
40 | | -| [For Testing] polycli | 0.1.39 | https://github.com/maticnetwork/polygon-cli/tree/main | |
41 | | -- You can run the following script to validate that dependency requirements are met: |
42 | | - |
43 | | - ```bash |
44 | | - #!/bin/bash |
45 | | - |
46 | | - declare -A commands |
47 | | - commands["git"]="2.18.0" |
48 | | - commands["node"]="16.0.0" |
49 | | - commands["npm"]="6.0.0" |
50 | | - commands["go"]="1.18.0" |
51 | | - commands["cast"]="0.2.0" |
52 | | - commands["jq"]="1.0" |
53 | | - commands["tomlq"]="3.0.0" |
54 | | - commands["psql"]="15.0" |
55 | | - commands["make"]="3.80.0" |
56 | | - commands["docker"]="24.0.0" |
57 | | - commands["pip3"]="20.0.2" |
58 | | - commands["python3"]="3.8.0" |
59 | | - commands["polycli"]="0.1.39" |
60 | | - |
61 | | - # Function to check command version |
62 | | - check_version() { |
63 | | - local command=$1 |
64 | | - local min_version=$2 |
65 | | - local version |
66 | | - local status |
67 | | - |
68 | | - if ! command -v "$command" &> /dev/null; then |
69 | | - printf "| %-15s | %-20s | %-20s |\n" "$command" "Not Found" "$min_version" |
70 | | - return |
71 | | - fi |
72 | | - |
73 | | - case "$command" in |
74 | | - git) version=$(git --version | awk '{print $3}') ;; |
75 | | - node) version=$(node --version | cut -d v -f 2) ;; |
76 | | - npm) version=$(npm --version) ;; |
77 | | - go) version=$(go version | awk '{print $3}' | cut -d 'o' -f 2) ;; |
78 | | - cast) version=$(cast --version | awk '{print $2}') ;; |
79 | | - jq) version=$(jq --version | cut -d '-' -f 2) ;; |
80 | | - tomlq) version=$(tomlq --version | awk '{print $2}') ;; |
81 | | - psql) version=$(psql --version | awk '{print $3}') ;; |
82 | | - make) version=$(make --version | head -n 1 | awk '{print $3}') ;; |
83 | | - docker) version=$(docker --version | awk '{print $3}' | cut -d ',' -f 1) ;; |
84 | | - pip3) version=$(pip3 --version | awk '{print $2}') ;; |
85 | | - python3) version=$(python3 --version | awk '{print $2}') ;; |
86 | | - polycli) version=$(polycli version | awk '{print $4}' | cut -d '-' -f 1 | sed 's/v//') ;; |
87 | | - *) version="Found" ;; |
88 | | - esac |
89 | | - |
90 | | - printf "| %-15s | %-20s | %-20s |\n" "$command" "$version" "$min_version" |
91 | | - } |
92 | | - |
93 | | - echo "+-----------------+----------------------+----------------------+" |
94 | | - printf "| %-15s | %-20s | %-20s |\n" "CLI Command" "Found Version" "Minimum Version" |
95 | | - echo "+-----------------+----------------------+----------------------+" |
96 | | - |
97 | | - for cmd in "${!commands[@]}"; do |
98 | | - check_version "$cmd" "${commands[$cmd]}" |
99 | | - echo "+-----------------+----------------------+----------------------+" |
100 | | - done |
101 | | - ``` |
102 | | - |
103 | | - You can create a `version-check.sh` file, then copy and paste the script into that file. Then run the following to execute the script: |
104 | | - |
105 | | - ```bash |
106 | | - chmod +x version-check.sh |
107 | | - ./version-check.sh |
108 | | - ``` |
109 | | - |
| 1 | + |
110 | 2 |
|
111 | 3 | # Setup & Deployment |
112 | 4 |
|
|
0 commit comments