Skip to content

Commit f507eb8

Browse files
authored
Merge branch 'main' into x/migrate
2 parents 7c80f88 + 825fd89 commit f507eb8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+116
-8734
lines changed

.github/shrink-cache.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ done
99

1010
# ---
1111

12-
for r in darwinia crab koi
12+
for r in darwinia crab
1313
do
1414
rm -rf target/${PROFILE}/wbuild/${r}-runtime 2> /dev/null || true
1515
done

.github/workflows/checks.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ jobs:
110110
if: github.event_name == 'push' || !github.event.pull_request.draft
111111
strategy:
112112
matrix:
113-
runtime: [runtime/darwinia, runtime/crab, runtime/koi]
113+
runtime: [runtime/darwinia, runtime/crab]
114114
runs-on: ubuntu-latest
115115
steps:
116116
- name: Fetch latest code
@@ -131,15 +131,11 @@ jobs:
131131
[
132132
{
133133
chain: darwinia-dev,
134-
compare-with: "https://darwinia-rpc.darwiniacommunitydao.xyz",
134+
compare-with: "https://rpc.darwinia.network",
135135
},
136136
{
137137
chain: crab-dev,
138-
compare-with: "https://crab-rpc.darwiniacommunitydao.xyz",
139-
},
140-
{
141-
chain: koi-dev,
142-
compare-with: "https://koi-rpc.darwinia.network",
138+
compare-with: "https://crab-rpc.darwinia.network",
143139
},
144140
]
145141
needs: [basic-checks]
@@ -167,7 +163,7 @@ jobs:
167163
chmod u+x darwinia
168164
sudo mv darwinia /usr/bin
169165
- name: Launch darwinia
170-
run: darwinia --chain koi-dev --tmp --alice --unsafe-force-node-key-generation --tracing-api debug,trace --frontier-backend-type sql &
166+
run: darwinia --chain darwinia-dev --tmp --alice --unsafe-force-node-key-generation --tracing-api debug,trace --frontier-backend-type sql &
171167
- name: Install Node 19
172168
uses: actions/setup-node@v4
173169
with:

.github/workflows/notify-release.yml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,13 @@ on:
66
push:
77
tags:
88
- "v*"
9-
- "koi*"
109

1110
jobs:
1211
notify-mainnet:
1312
name: Notify mainnet
14-
if: startsWith(github.ref, 'refs/tags/v')
1513
runs-on: ubuntu-latest
1614
steps:
1715
- name: Notify
1816
run: |
1917
TAG=$(echo ${{ github.ref }} | sed 's!.*/\(.*\)!\1!')
2018
gh workflow run wasm.yml --repo darwinia-network/darwinia-release -f network=mainnet -f tag=${TAG}
21-
22-
notify-testnet:
23-
name: Notify testnet
24-
if: startsWith(github.ref, 'refs/tags/koi')
25-
runs-on: ubuntu-latest
26-
steps:
27-
- name: Notify
28-
run: |
29-
TAG=$(echo ${{ github.ref }} | sed 's!.*/\(.*\)!\1!')
30-
gh workflow run wasm.yml --repo darwinia-network/darwinia-release -f network=testnet -f tag=${TAG}

.github/workflows/release.yml

Lines changed: 19 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ on:
44
push:
55
tags:
66
- "v*"
7-
- "koi*"
87

98
env:
109
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
@@ -20,7 +19,7 @@ env:
2019
RUST_TOOLCHAIN: 1.74.0
2120

2221
# Set this to true for CI testing purposes only.
23-
# SKIP_BUILD: true
22+
SKIP_BUILD: false
2423

2524
jobs:
2625
build-nodes:
@@ -29,17 +28,9 @@ jobs:
2928
strategy:
3029
matrix:
3130
node:
32-
- network: mainnet
33-
features: darwinia-runtime,crab-runtime
31+
- features: darwinia-runtime,crab-runtime
3432
bz2: true
35-
- network: mainnet
36-
features: darwinia-runtime,crab-runtime,evm-tracing
37-
type: tracing
38-
- network: testnet
39-
features: koi-runtime
40-
bz2: true
41-
- network: testnet
42-
features: koi-runtime,evm-tracing
33+
- features: darwinia-runtime,crab-runtime,evm-tracing
4334
type: tracing
4435
steps:
4536
- name: Free disk space
@@ -60,16 +51,7 @@ jobs:
6051
swap-size-gb: 8
6152
- name: Fetch latest code
6253
uses: actions/checkout@v4
63-
- name: Build mainnet node
64-
if: ${{ startsWith(github.ref, 'refs/tags/v') && (matrix.node.network == 'mainnet') }}
65-
uses: ./.github/actions/build
66-
with:
67-
features: ${{ matrix.node.features }}
68-
suffix: ${{ matrix.node.type }}
69-
enable_tar_bz2: ${{ matrix.node.bz2 }}
70-
skip-build: ${{ env.SKIP_BUILD }}
71-
- name: Build testnet node
72-
if: ${{ startsWith(github.ref, 'refs/tags/koi') && (matrix.node.network == 'testnet') }}
54+
- name: Build node
7355
uses: ./.github/actions/build
7456
with:
7557
features: ${{ matrix.node.features }}
@@ -95,13 +77,7 @@ jobs:
9577
runs-on: ubuntu-latest
9678
strategy:
9779
matrix:
98-
runtime:
99-
- name: darwinia
100-
type: mainnet
101-
- name: crab
102-
type: mainnet
103-
- name: koi
104-
type: testnet
80+
runtime: [darwinia, crab]
10581
steps:
10682
- name: Fetch latest code
10783
uses: actions/checkout@v4
@@ -116,19 +92,7 @@ jobs:
11692
zstd -d wuh.zst
11793
chmod u+x ./wuh
11894
sudo mv ./wuh /usr/bin/wuh
119-
- name: Filter
120-
run: |
121-
SKIP_BUILD=${{ env.SKIP_BUILD }}
122-
IS_MAINNET=${{ matrix.runtime.type == 'mainnet' && startsWith(github.ref, 'refs/tags/v') }}
123-
IS_TESTNET=${{ matrix.runtime.type == 'testnet' && startsWith(github.ref, 'refs/tags/koi') }}
124-
125-
echo "IS_MAINNET='$IS_MAINNET'" >> $GITHUB_ENV
126-
echo "IS_TESTNET='$IS_TESTNET'" >> $GITHUB_ENV
127-
128-
if [[ "$SKIP_BUILD" != "true" && ( "$IS_MAINNET" == "true" || "$IS_TESTNET" == "true" ) ]] ; then
129-
echo "FILTER=true" >> $GITHUB_ENV
130-
fi
131-
- name: Build ${{ matrix.runtime.name }} runtime
95+
- name: Build ${{ matrix.runtime }} runtime
13296
id: srtool_build
13397
if: ${{ env.FILTER == 'true' }}
13498
uses: chevdor/srtool-actions@v0.9.2
@@ -137,20 +101,22 @@ jobs:
137101
with:
138102
image: paritytech/srtool
139103
tag: "1.74.0"
140-
chain: ${{ matrix.runtime.name }}
104+
chain: ${{ matrix.runtime }}
141105
- name: Prepare runtime
142106
run: |
143-
IS_MAINNET=${{ env.IS_MAINNET }}
144-
IS_TESTNET=${{ env.IS_TESTNET }}
145-
FILTER=${{ env.FILTER }}
107+
SKIP_BUILD=${{ env.SKIP_BUILD }}
146108
147-
export CHAIN=${{ matrix.runtime.name }}
109+
export CHAIN=${{ matrix.runtime }}
148110
149111
echo $CHAIN
150112
151113
mkdir -p build
152114
153-
if [ "$FILTER" == "true" ]; then
115+
if [ "$SKIP_BUILD" == "true" ]; then
116+
echo SKIP_BUILD > build/${CHAIN}-srtool.json
117+
echo SKIP_BUILD > build/${CHAIN}_runtime.compact.compressed.wasm
118+
echo SKIP_BUILD > build/runtime.md
119+
else
154120
echo '${{ steps.srtool_build.outputs.json }}' | jq > build/${CHAIN}-srtool.json
155121
156122
WASM_FILE='${{ steps.srtool_build.outputs.wasm_compressed }}'
@@ -165,15 +131,11 @@ jobs:
165131
cat .github/note-template/runtime.md \
166132
| gomplate -d srtool=build/${CHAIN}-srtool.json \
167133
> build/runtime.md
168-
elif [[ "$IS_MAINNET" == "true" || "$IS_TESTNET" == "true" ]]; then
169-
echo SKIP_BUILD > build/${CHAIN}-srtool.json
170-
echo SKIP_BUILD > build/${CHAIN}_runtime.compact.compressed.wasm
171-
echo SKIP_BUILD > build/runtime.md
172134
fi
173-
- name: Upload ${{ matrix.runtime.name }} runtime
135+
- name: Upload ${{ matrix.runtime }} runtime
174136
uses: actions/upload-artifact@v4
175137
with:
176-
name: ${{ matrix.runtime.name }}-runtime
138+
name: ${{ matrix.runtime }}-runtime
177139
path: build
178140
retention-days: 1
179141
- name: Fail fast
@@ -258,16 +220,9 @@ jobs:
258220
> node.tmp.md
259221
- name: Fill note
260222
run: |
261-
IS_MAINNET=${{ startsWith(github.ref, 'refs/tags/v') }}
262-
263-
if [ "$IS_MAINNET" == "true" ]; then
264-
cat darwinia-runtime/runtime.md >> node.md
265-
cat crab-runtime/runtime.md >> node.md
266-
cat node.tmp.md >> node.md
267-
else
268-
cat koi-runtime/runtime.md >> node.md
269-
cat node.tmp.md >> node.md
270-
fi
223+
cat darwinia-runtime/runtime.md >> node.md
224+
cat crab-runtime/runtime.md >> node.md
225+
cat node.tmp.md >> node.md
271226
- name: Hash file
272227
run: cd deploy && sha256sum * | tee sha256sums.txt
273228
# - name: Verify
@@ -284,4 +239,3 @@ jobs:
284239
deploy/*
285240
generate_release_notes: true
286241
token: ${{ secrets.GITHUB_TOKEN }}
287-
prerelease: ${{ startsWith(github.ref, 'refs/tags/koi') }}

.maintain/zombienet.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ name = "bob"
1414
validator = true
1515

1616
[[parachains]]
17-
chain = "koi-genesis"
17+
chain = "darwinia-genesis"
1818
force_decorator = "generic-evm"
1919
id = 2105
2020
[[parachains.collators]]

Cargo.lock

Lines changed: 0 additions & 112 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ darwinia-staking = { path = "pallet/staking", default-features
4545
dc-inflation = { path = "core/inflation", default-features = false }
4646
dc-primitives = { path = "core/primitives", default-features = false }
4747
dc-types = { path = "core/types" }
48-
koi-runtime = { path = "runtime/koi" }
4948

5049
# frontier
5150
fc-api = { git = "https://github.com/polkadot-evm/frontier", branch = "stable2407" }

0 commit comments

Comments
 (0)