File tree 5 files changed +72
-27
lines changed
5 files changed +72
-27
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,8 @@ docs/node_modules
21
21
docs /build
22
22
23
23
# zombienet stuff
24
- ** /zombienet-macos
24
+ ** /zombienet-macos-arm64
25
+ ** /zombienet-macos-x64
26
+ ** /zombienet-linux-arm64
25
27
** /zombienet-linux-x64
26
28
** /bin- *
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
- ZOMBIENET_V=v1.3.91
3
+ ZOMBIENET_V=v1.3.106
4
4
POLKADOT_V=v1.6.0
5
5
6
+ # Detect the operating system
6
7
case " $( uname -s) " in
7
8
Linux* ) MACHINE=Linux;;
8
9
Darwin* ) MACHINE=Mac;;
9
10
* ) exit 1
10
11
esac
11
12
13
+ # Detect the architecture
14
+ ARCH=$( uname -m)
15
+
16
+ # Set the executable name based on the OS and architecture
12
17
if [ $MACHINE = " Linux" ]; then
13
- ZOMBIENET_BIN=zombienet-linux-x64
18
+ if [ $ARCH = " x86_64" ]; then
19
+ ZOMBIENET_BIN=zombienet-linux-x64
20
+ elif [ $ARCH = " arm64" ] || [ $ARCH = " aarch64" ]; then
21
+ ZOMBIENET_BIN=zombienet-linux-arm64
22
+ else
23
+ echo " Unsupported Linux architecture: $ARCH "
24
+ exit 1
25
+ fi
14
26
elif [ $MACHINE = " Mac" ]; then
15
- ZOMBIENET_BIN=zombienet-macos
27
+ if [ $ARCH = " x86_64" ]; then
28
+ ZOMBIENET_BIN=zombienet-macos-x86
29
+ elif [ $ARCH = " arm64" ]; then
30
+ ZOMBIENET_BIN=zombienet-macos-arm64
31
+ else
32
+ echo " Unsupported macOS architecture: $ARCH "
33
+ exit 1
34
+ fi
16
35
fi
17
36
37
+ echo " Using binary: $ZOMBIENET_BIN "
38
+
18
39
BIN_DIR=bin-$POLKADOT_V
19
40
20
41
build_polkadot () {
Original file line number Diff line number Diff line change 2
2
chain = " rococo-local"
3
3
default_command = " ./bin-v1.6.0/polkadot"
4
4
5
- [[relaychain .nodes ]]
6
- name = " alice"
7
- validator = true
5
+ [[relaychain .nodes ]]
6
+ name = " alice"
7
+ validator = true
8
8
9
- [[relaychain .nodes ]]
10
- name = " bob"
11
- validator = true
9
+ [[relaychain .nodes ]]
10
+ name = " bob"
11
+ validator = true
12
12
13
13
[[parachains ]]
14
14
id = 1000
15
15
addToGenesis = true
16
16
cumulus_based = true
17
17
chain = " dev"
18
+ force_decorator = " generic-evm"
18
19
19
- [[parachains .collators ]]
20
- name = " collator01"
21
- command = " ./target/release/parachain -template-node"
22
- ws_port = 9933
23
- rpc_port = 8833
24
- args = [" --rpc-max-connections 10000" ]
20
+ [[parachains .collators ]]
21
+ name = " collator01"
22
+ command = " ./target/release/evm -template-node"
23
+ ws_port = 9933
24
+ rpc_port = 8833
25
+ args = [" --rpc-max-connections 10000" ]
25
26
26
- [[parachains .collators ]]
27
- name = " collator02"
28
- ws_port = 9822
29
- rpc_port = 8822
30
- command = " ./target/release/parachain -template-node"
31
- args = [" --rpc-max-connections 10000" ]
27
+ [[parachains .collators ]]
28
+ name = " collator02"
29
+ ws_port = 9822
30
+ rpc_port = 8822
31
+ command = " ./target/release/evm -template-node"
32
+ args = [" --rpc-max-connections 10000" ]
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
- ZOMBIENET_V=v1.3.91
3
+ ZOMBIENET_V=v1.3.106
4
4
POLKADOT_V=v1.6.0
5
5
6
+ # Detect the operating system
6
7
case " $( uname -s) " in
7
8
Linux* ) MACHINE=Linux;;
8
9
Darwin* ) MACHINE=Mac;;
9
10
* ) exit 1
10
11
esac
11
12
13
+ # Detect the architecture
14
+ ARCH=$( uname -m)
15
+
16
+ # Set the executable name based on the OS and architecture
12
17
if [ $MACHINE = " Linux" ]; then
13
- ZOMBIENET_BIN=zombienet-linux-x64
18
+ if [ $ARCH = " x86_64" ]; then
19
+ ZOMBIENET_BIN=zombienet-linux-x64
20
+ elif [ $ARCH = " arm64" ] || [ $ARCH = " aarch64" ]; then
21
+ ZOMBIENET_BIN=zombienet-linux-arm64
22
+ else
23
+ echo " Unsupported Linux architecture: $ARCH "
24
+ exit 1
25
+ fi
14
26
elif [ $MACHINE = " Mac" ]; then
15
- ZOMBIENET_BIN=zombienet-macos
27
+ if [ $ARCH = " x86_64" ]; then
28
+ ZOMBIENET_BIN=zombienet-macos-x86
29
+ elif [ $ARCH = " arm64" ]; then
30
+ ZOMBIENET_BIN=zombienet-macos-arm64
31
+ else
32
+ echo " Unsupported macOS architecture: $ARCH "
33
+ exit 1
34
+ fi
16
35
fi
17
36
37
+ echo " Using binary: $ZOMBIENET_BIN "
38
+
18
39
BIN_DIR=bin-$POLKADOT_V
19
40
20
41
build_polkadot () {
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ chain = "dev"
18
18
19
19
[[parachains .collators ]]
20
20
name = " collator01"
21
- command = " ./target/release/parachain -template-node"
21
+ command = " ./target/release/generic -template-node"
22
22
ws_port = 9933
23
23
rpc_port = 8833
24
24
args = [" --rpc-max-connections 10000" ]
@@ -27,5 +27,5 @@ args = ["--rpc-max-connections 10000"]
27
27
name = " collator02"
28
28
ws_port = 9822
29
29
rpc_port = 8822
30
- command = " ./target/release/parachain -template-node"
30
+ command = " ./target/release/generic -template-node"
31
31
args = [" --rpc-max-connections 10000" ]
You can’t perform that action at this time.
0 commit comments