Skip to content

Commit 17bf12f

Browse files
author
KaoImin
committed
fix some style
1 parent 9a51527 commit 17bf12f

Some content is hidden

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

43 files changed

+1009
-1004
lines changed

.github/ISSUE_TEMPLATE/help.yml

-1
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,3 @@ body:
2424
value: "Describe the problem details:"
2525
validations:
2626
required: true
27-

.github/ISSUE_TEMPLATE/others.yml

-2
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,3 @@ body:
2424
value: "Describe the problem details:"
2525
validations:
2626
required: true
27-
28-

.github/PULL_REQUEST_TEMPLATE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ See also:
4343
### **CI Description**
4444

4545
| CI Name | Description |
46-
| ---------------------- | ------------------------------------------------------------------------------------------------------- |
46+
|------------------------|---------------------------------------------------------------------------------------------------------|
4747
| *Web3 Compatible Test* | Test the Web3 compatibility of Axon |
4848
| *v3 Core Test* | Run the compatibility tests provided by Uniswap V3 |
4949
| *OpenZeppelin tests* | Run the compatibility tests provided by OpenZeppelin, including OCT 1-5 \| 6-10 \| 11 \| 12-15 \| 16-19 |

.github/config/_labeler.yml

+25-13
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,50 @@
11
underlying:
2-
- any: ['core/consensus/src/*', 'core/mempool/src/*', 'core/executor/src/*', 'core/network/src/*', 'core/storage/src/*']
2+
- any:
3+
[
4+
"core/consensus/src/*",
5+
"core/mempool/src/*",
6+
"core/executor/src/*",
7+
"core/network/src/*",
8+
"core/storage/src/*",
9+
]
310

411
API:
5-
- core/api/src/*
12+
- core/api/src/*
613

714
interoperation:
8-
- core/interoperation/src/*
15+
- core/interoperation/src/*
916

1017
crosschain:
11-
- any: ['core/cross-client/src/*', 'core/tx-assembler/src/*']
18+
- any: ["core/cross-client/src/*", "core/tx-assembler/src/*"]
1219

1320
devtools:
14-
- devtools/*
21+
- devtools/*
1522

1623
documents:
17-
- any: ['docs/*', README.md, CHANGELOG.md]
24+
- any: ["docs/*", README.md, CHANGELOG.md]
1825

1926
e2e:
20-
- tests/e2e/src/*
27+
- tests/e2e/src/*
2128

2229
contract:
23-
- builtin-contract/*
30+
- builtin-contract/*
2431

2532
protocol:
26-
- protocol/src/*
33+
- protocol/src/*
2734

2835
toolchain:
29-
- rust-toolchain
36+
- rust-toolchain
3037

3138
ci:
32-
- any: ['.github/actions/*', '.github/workflows/*']
39+
- any: [".github/actions/*", ".github/workflows/*"]
3340

3441
apm:
35-
- any: ['common/apm/src/*', 'common/apm-derive/src/*', 'common/memory-tracker/src/*']
42+
- any:
43+
[
44+
"common/apm/src/*",
45+
"common/apm-derive/src/*",
46+
"common/memory-tracker/src/*",
47+
]
3648

3749
config:
38-
- any: ['common/config-parser/src/*']
50+
- any: ["common/config-parser/src/*"]

.github/release-drafter.yml

+26-26
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,41 @@
1-
name-template: 'v$RESOLVED_VERSION-alpha.1'
2-
tag-template: 'v$RESOLVED_VERSION-alpha.1'
1+
name-template: "v$RESOLVED_VERSION-alpha.1"
2+
tag-template: "v$RESOLVED_VERSION-alpha.1"
33
template: |
44
# What's Changed
55
66
$CHANGES
77
88
**Full Changelog**: https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...v$RESOLVED_VERSION
99
categories:
10-
- title: '🚀 Features'
11-
label: 'feature'
12-
- title: '🔥 Enhancement'
13-
label: 'enhancement'
14-
- title: '🐛 Bug Fixes'
15-
label: 'bugfix'
16-
- title: '🐝 refactor'
17-
label: 'refactor'
18-
- title: '🧰 Chore'
19-
label: 'chore'
20-
- title: '📖 Documentation'
21-
label: 'document'
22-
- title: '✨ Other changes'
23-
- title: '⬆️ Dependency Updates'
24-
label: 'dependencies'
25-
- title: '🌈 Style'
26-
label: 'style'
10+
- title: "🚀 Features"
11+
label: "feature"
12+
- title: "🔥 Enhancement"
13+
label: "enhancement"
14+
- title: "🐛 Bug Fixes"
15+
label: "bugfix"
16+
- title: "🐝 refactor"
17+
label: "refactor"
18+
- title: "🧰 Chore"
19+
label: "chore"
20+
- title: "📖 Documentation"
21+
label: "document"
22+
- title: "✨ Other changes"
23+
- title: "⬆️ Dependency Updates"
24+
label: "dependencies"
25+
- title: "🌈 Style"
26+
label: "style"
2727

2828
version-resolver:
2929
minor:
3030
labels:
31-
- 'feature'
31+
- "feature"
3232
patch:
3333
labels:
34-
- 'bug'
35-
- 'maintenance'
36-
- 'docs'
37-
- 'dependencies'
38-
- 'security'
34+
- "bug"
35+
- "maintenance"
36+
- "docs"
37+
- "dependencies"
38+
- "security"
3939

4040
exclude-labels:
41-
- 'skip-changelog'
41+
- "skip-changelog"

.github/workflows/axon-start-test.yml

+98-98
Original file line numberDiff line numberDiff line change
@@ -17,54 +17,54 @@ jobs:
1717
fail-fast: false
1818
runs-on: ${{ matrix.os }}
1919
steps:
20-
- uses: actions/checkout@v4
20+
- uses: actions/checkout@v4
2121

22-
- name: Cache of Cargo
23-
uses: actions/cache@v3
24-
with:
25-
path: |
26-
~/.cargo/bin/
27-
~/.cargo/registry/index/
28-
~/.cargo/registry/cache/
29-
~/.cargo/git/db/
30-
target/
31-
key: ${{ matrix.os }}-${{ runner.os }}-${{ runner.arch }}-cargo-build-${{ hashFiles('**/Cargo.lock') }}
32-
restore-keys: |
33-
${{ matrix.os }}-${{ runner.os }}-${{ runner.arch }}-cargo-build
34-
- name: Build Axon in the development profile
35-
run: |
36-
# check for AVX2 support by inspecting `/proc/cpuinfo` or running `lscpu`
37-
# related issue: https://github.com/axonweb3/axon/issues/1387
38-
lscpu
39-
# PORTABLE=1 USE_SSE=1 tell rocksdb to target AVX2
40-
PORTABLE=1 USE_SSE=1 cargo build
22+
- name: Cache of Cargo
23+
uses: actions/cache@v3
24+
with:
25+
path: |
26+
~/.cargo/bin/
27+
~/.cargo/registry/index/
28+
~/.cargo/registry/cache/
29+
~/.cargo/git/db/
30+
target/
31+
key: ${{ matrix.os }}-${{ runner.os }}-${{ runner.arch }}-cargo-build-${{ hashFiles('**/Cargo.lock') }}
32+
restore-keys: |
33+
${{ matrix.os }}-${{ runner.os }}-${{ runner.arch }}-cargo-build
34+
- name: Build Axon in the development profile
35+
run: |
36+
# check for AVX2 support by inspecting `/proc/cpuinfo` or running `lscpu`
37+
# related issue: https://github.com/axonweb3/axon/issues/1387
38+
lscpu
39+
# PORTABLE=1 USE_SSE=1 tell rocksdb to target AVX2
40+
PORTABLE=1 USE_SSE=1 cargo build
4141
42-
- name: Start a single Axon node
43-
env:
44-
LOG_FILE: ${{ runner.temp }}/${{ matrix.os }}-single-axon-node.log
45-
run: |
46-
target/debug/axon --version | tee ${{ env.LOG_FILE }}
47-
target/debug/axon init \
48-
--config devtools/chain/config.toml \
49-
--chain-spec devtools/chain/specs/single_node/chain-spec.toml \
50-
| tee -a ${{ env.LOG_FILE }}
51-
target/debug/axon run \
52-
--config devtools/chain/config.toml \
53-
| tee -a ${{ env.LOG_FILE }} &
42+
- name: Start a single Axon node
43+
env:
44+
LOG_FILE: ${{ runner.temp }}/${{ matrix.os }}-single-axon-node.log
45+
run: |
46+
target/debug/axon --version | tee ${{ env.LOG_FILE }}
47+
target/debug/axon init \
48+
--config devtools/chain/config.toml \
49+
--chain-spec devtools/chain/specs/single_node/chain-spec.toml \
50+
| tee -a ${{ env.LOG_FILE }}
51+
target/debug/axon run \
52+
--config devtools/chain/config.toml \
53+
| tee -a ${{ env.LOG_FILE }} &
5454
55-
npx zx <<'EOF'
56-
import { waitXBlocksPassed } from './devtools/ci/scripts/helper.js'
57-
await retry(3, '6s', () => waitXBlocksPassed('http://127.0.0.1:8000', 2))
58-
EOF
59-
timeout-minutes: 1
55+
npx zx <<'EOF'
56+
import { waitXBlocksPassed } from './devtools/ci/scripts/helper.js'
57+
await retry(3, '6s', () => waitXBlocksPassed('http://127.0.0.1:8000', 2))
58+
EOF
59+
timeout-minutes: 1
6060

61-
- name: Archive logs
62-
if: failure()
63-
uses: actions/upload-artifact@v4
64-
with:
65-
name: single-axon-node-logs
66-
path: |
67-
${{ runner.temp }}/${{ matrix.os }}-single-axon-node.log
61+
- name: Archive logs
62+
if: failure()
63+
uses: actions/upload-artifact@v4
64+
with:
65+
name: single-axon-node-logs
66+
path: |
67+
${{ runner.temp }}/${{ matrix.os }}-single-axon-node.log
6868
6969
multi-nodes:
7070
strategy:
@@ -75,64 +75,64 @@ jobs:
7575
fail-fast: false
7676
runs-on: ${{ matrix.os }}
7777
steps:
78-
- uses: actions/checkout@v4
78+
- uses: actions/checkout@v4
7979

80-
- name: Cache of Cargo
81-
uses: actions/cache@v3
82-
with:
83-
path: |
84-
~/.cargo/bin/
85-
~/.cargo/registry/index/
86-
~/.cargo/registry/cache/
87-
~/.cargo/git/db/
88-
target/
89-
key: ${{ matrix.os }}-${{ runner.os }}-${{ runner.arch }}-cargo-build-${{ hashFiles('**/Cargo.lock') }}
90-
restore-keys: |
91-
${{ matrix.os }}-${{ runner.os }}-${{ runner.arch }}-cargo-build
92-
- name: Build Axon in the development profile
93-
run: |
94-
# check for AVX2 support by inspecting `/proc/cpuinfo` or running `lscpu`
95-
# related issue: https://github.com/axonweb3/axon/issues/1387
96-
lscpu
97-
# PORTABLE=1 USE_SSE=1 tell rocksdb to target AVX2
98-
PORTABLE=1 USE_SSE=1 cargo build
80+
- name: Cache of Cargo
81+
uses: actions/cache@v3
82+
with:
83+
path: |
84+
~/.cargo/bin/
85+
~/.cargo/registry/index/
86+
~/.cargo/registry/cache/
87+
~/.cargo/git/db/
88+
target/
89+
key: ${{ matrix.os }}-${{ runner.os }}-${{ runner.arch }}-cargo-build-${{ hashFiles('**/Cargo.lock') }}
90+
restore-keys: |
91+
${{ matrix.os }}-${{ runner.os }}-${{ runner.arch }}-cargo-build
92+
- name: Build Axon in the development profile
93+
run: |
94+
# check for AVX2 support by inspecting `/proc/cpuinfo` or running `lscpu`
95+
# related issue: https://github.com/axonweb3/axon/issues/1387
96+
lscpu
97+
# PORTABLE=1 USE_SSE=1 tell rocksdb to target AVX2
98+
PORTABLE=1 USE_SSE=1 cargo build
9999
100-
- name: Start multiple Axon nodes
101-
env:
102-
LOG_PATH: ${{ runner.temp }}/${{ matrix.os }}/multi-axon-nodes
103-
run: |
104-
mkdir -p ${{ env.LOG_PATH }}
100+
- name: Start multiple Axon nodes
101+
env:
102+
LOG_PATH: ${{ runner.temp }}/${{ matrix.os }}/multi-axon-nodes
103+
run: |
104+
mkdir -p ${{ env.LOG_PATH }}
105105
106-
target/debug/axon --version
106+
target/debug/axon --version
107107
108-
for id in 1 2 3 4; do
109-
target/debug/axon init \
110-
--config devtools/chain/nodes/node_${id}.toml \
111-
--chain-spec devtools/chain/specs/multi_nodes_short_epoch_len/chain-spec.toml \
112-
> ${{ env.LOG_PATH }}/node_${id}.log
113-
done
108+
for id in 1 2 3 4; do
109+
target/debug/axon init \
110+
--config devtools/chain/nodes/node_${id}.toml \
111+
--chain-spec devtools/chain/specs/multi_nodes_short_epoch_len/chain-spec.toml \
112+
> ${{ env.LOG_PATH }}/node_${id}.log
113+
done
114114
115-
for id in 1 2 3 4; do
116-
target/debug/axon run \
117-
--config devtools/chain/nodes/node_${id}.toml \
118-
>> ${{ env.LOG_PATH }}/node_${id}.log &
119-
done
115+
for id in 1 2 3 4; do
116+
target/debug/axon run \
117+
--config devtools/chain/nodes/node_${id}.toml \
118+
>> ${{ env.LOG_PATH }}/node_${id}.log &
119+
done
120120
121-
npx zx <<'EOF'
122-
import { waitXBlocksPassed } from './devtools/ci/scripts/helper.js'
123-
await retry(3, '6s', () => Promise.all([
124-
waitXBlocksPassed('http://127.0.0.1:8001', 4),
125-
waitXBlocksPassed('http://127.0.0.1:8002', 4),
126-
waitXBlocksPassed('http://127.0.0.1:8003', 4),
127-
waitXBlocksPassed('http://127.0.0.1:8004', 4),
128-
]))
129-
EOF
130-
timeout-minutes: 1
121+
npx zx <<'EOF'
122+
import { waitXBlocksPassed } from './devtools/ci/scripts/helper.js'
123+
await retry(3, '6s', () => Promise.all([
124+
waitXBlocksPassed('http://127.0.0.1:8001', 4),
125+
waitXBlocksPassed('http://127.0.0.1:8002', 4),
126+
waitXBlocksPassed('http://127.0.0.1:8003', 4),
127+
waitXBlocksPassed('http://127.0.0.1:8004', 4),
128+
]))
129+
EOF
130+
timeout-minutes: 1
131131

132-
- name: Archive logs
133-
if: failure()
134-
uses: actions/upload-artifact@v4
135-
with:
136-
name: multi-axon-nodes-logs
137-
path: |
138-
${{ runner.temp }}/${{ matrix.os }}/multi-axon-nodes/
132+
- name: Archive logs
133+
if: failure()
134+
uses: actions/upload-artifact@v4
135+
with:
136+
name: multi-axon-nodes-logs
137+
path: |
138+
${{ runner.temp }}/${{ matrix.os }}/multi-axon-nodes/

0 commit comments

Comments
 (0)