Skip to content

Commit 00fb22f

Browse files
aleksussmrLSDomahsnnsW3dependabot[bot]
authored
Release 3.8.0 (#995)
## [3.8.0] 2025-02-05 ### Changes - Bumped the SputnikVM up to 0.46.1-aurora by [@mrLSD]. ([#966]) - The nightly rust compiler has been replaced with stable by [@aleksuss]. ([#977]) - Added changes regarding bumping the `primitive-types` crate by [@mrLSD]. ([#982]) - The code coverage by clippy has been extended by [@aleksuss]. ([#984]) - The code is changed by the clippy suggestions from the toolchain 1.84.0 by [@mrLSD]. ([#986]) - The precompile `exitToNear` now is compatible with the OMNI bridge by [@aleksuss]. ([#992]) ### Fixes - Added optimisations to the `AccountId` creation methods by [@aleksuss]. ([#985]) - The `README.md` has been actualized by [@aleksuss]. ([#978]) - Modified CI scripts by [@aleksuss]. ([#969], [#973], [#975], [#976], [#981]) - Fixed the vulnerability in the `remove_relayer_key` transaction by [@aleksuss]. ([#972]) [#966]: #966 [#969]: #969 [#972]: #972 [#973]: #973 [#975]: #975 [#976]: #976 [#977]: #977 [#978]: #978 [#981]: #981 [#982]: #982 [#984]: #984 [#985]: #985 [#986]: #986 [#992]: #992 --------- Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: cuibuwei <cuibuwei@gmail.com> Co-authored-by: Evgeny Ukhanov <evgeny@aurora.dev> Co-authored-by: omahs <73983677+omahs@users.noreply.github.com> Co-authored-by: Elias Rad <146735585+nnsW3@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: cuibuwei <166905851+cuibuwei@users.noreply.github.com> Co-authored-by: NotNotARobot <164791169+NotNotARobot@users.noreply.github.com>
1 parent 338dd61 commit 00fb22f

File tree

119 files changed

+3995
-4329
lines changed

Some content is hidden

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

119 files changed

+3995
-4329
lines changed

.github/workflows/builds.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ jobs:
3030
cargo make --profile ${{ matrix.profile }} build-xcc-docker
3131
- run: ls -lH bin/aurora-*${{ matrix.profile }}.wasm
3232
- name: Upload aurora-${{ matrix.profile }}.wasm artifact
33-
uses: actions/upload-artifact@v3
33+
uses: actions/upload-artifact@v4
3434
with:
35-
name: contracts
35+
name: contract-${{ matrix.profile }}
3636
path: bin/aurora*${{ matrix.profile }}.wasm
3737

3838
publish:
@@ -41,7 +41,11 @@ jobs:
4141
needs: build
4242
steps:
4343
- name: Download artifacts
44-
uses: actions/download-artifact@v3
44+
uses: actions/download-artifact@v4
45+
with:
46+
path: contracts
47+
pattern: contract-*
48+
merge-multiple: true
4549
- run: ls -la contracts
4650
- name: Publish contracts for ${{ github.ref }} release
4751
uses: svenstaro/upload-release-action@v2
@@ -50,6 +54,7 @@ jobs:
5054
file: contracts/aurora*.wasm
5155
repo_token: ${{ secrets.GITHUB_TOKEN }}
5256
file_glob: true
57+
overwrite: true
5358
env:
5459
CARGO_TERM_COLOR: always
5560
CARGO_INCREMENTAL: 0

.github/workflows/lints.yml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,15 @@ jobs:
2828
git checkout -f $(git -c user.name=x -c user.email=x@x commit-tree $(git hash-object -t tree /dev/null) < /dev/null) || :
2929
- name: Clone the repository
3030
uses: actions/checkout@v4
31-
- run: cargo make build-contracts
31+
- name: Update Node and Yarn
32+
run: |
33+
export NVM_DIR="$HOME/.nvm"
34+
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
35+
nvm install 18 && nvm alias default 18
36+
npm install -g yarn
37+
echo "$(dirname $(nvm which node))" >> $GITHUB_PATH
38+
- name: Build contracts
39+
run: cargo make build-contracts
3240
- name: Run Contract cargo clippy
3341
run: cargo make clippy
3442
udeps:
@@ -51,7 +59,18 @@ jobs:
5159
git checkout -f $(git -c user.name=x -c user.email=x@x commit-tree $(git hash-object -t tree /dev/null) < /dev/null) || :
5260
- name: Clone the repository
5361
uses: actions/checkout@v4
62+
- name: Update Node and Yarn
63+
run: |
64+
export NVM_DIR="$HOME/.nvm"
65+
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
66+
nvm install 18 && nvm alias default 18
67+
npm install -g yarn
68+
echo "$(dirname $(nvm which node))" >> $GITHUB_PATH
5469
- name: Run yarn lint
5570
run: cargo make check-contracts
5671
- name: Check committed EvmErc20.bin
5772
run: bash scripts/verify_evm_erc20.sh
73+
74+
env:
75+
CARGO_TERM_COLOR: always
76+
CARGO_INCREMENTAL: 0

.github/workflows/scheduled_lints.yml

Lines changed: 30 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
---
22
on:
33
schedule:
4-
- cron: '0 9 * * 1-5'
4+
- cron: '0 8 * * 1-5'
5+
56
name: Scheduled checks
67
jobs:
78
tests:
@@ -15,8 +16,19 @@ jobs:
1516
- name: Potential broken submodules fix
1617
run: |
1718
git checkout -f $(git -c user.name=x -c user.email=x@x commit-tree $(git hash-object -t tree /dev/null) < /dev/null) || :
19+
- name: Install dependencies
20+
run: |
21+
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
22+
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
23+
sudo apt update && sudo apt install -y yarn build-essential pkg-config libclang-dev libssl-dev
1824
- name: Clone the repository
1925
uses: actions/checkout@v4
26+
- name: Install Rust toolchain
27+
uses: actions-rust-lang/setup-rust-toolchain@v1
28+
with:
29+
cache: false
30+
toolchain: stable
31+
override: false
2032
- name: Cargo Cache
2133
uses: actions/cache@v4
2234
with:
@@ -30,8 +42,8 @@ jobs:
3042
- name: Setup Node and cache
3143
uses: actions/setup-node@v4
3244
with:
33-
node-version: 16
34-
cache: 'yarn'
45+
node-version: 18
46+
cache: yarn
3547
cache-dependency-path: |
3648
etc/eth-contracts
3749
etc/tests/uniswap
@@ -58,11 +70,25 @@ jobs:
5870
git checkout -f $(git -c user.name=x -c user.email=x@x commit-tree $(git hash-object -t tree /dev/null) < /dev/null) || :
5971
- name: Clone the repository
6072
uses: actions/checkout@v4
61-
- run: cargo make check
73+
- name: Update Node and Yarn
74+
run: |
75+
export NVM_DIR="$HOME/.nvm"
76+
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
77+
nvm install 18 && nvm alias default 18
78+
npm install -g yarn
79+
echo "$(dirname $(nvm which node))" >> $GITHUB_PATH
80+
- name: Run checks
81+
run: cargo make check
82+
- name: Run build XCC router
83+
run: cargo make build-xcc-router
6284
- uses: 8398a7/action-slack@v3
6385
if: failure()
6486
with:
6587
status: ${{ job.status }}
6688
fields: repo,message,commit,author,action,eventName,job,took
6789
env:
6890
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
91+
92+
env:
93+
CARGO_TERM_COLOR: always
94+
CARGO_INCREMENTAL: 0

.github/workflows/tests.yml

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ jobs:
3434
- name: Setup Node and cache
3535
uses: actions/setup-node@v4
3636
with:
37-
node-version: 16
38-
cache: 'yarn'
37+
node-version: 18
38+
cache: yarn
3939
cache-dependency-path: |
4040
etc/eth-contracts
4141
etc/tests/uniswap
@@ -84,6 +84,30 @@ jobs:
8484
- name: Test ${{ matrix.profile }} bench-modexp
8585
run: cargo make --profile ${{ matrix.profile }} bench-modexp
8686

87+
build_xcc_router:
88+
name: Build XCC router
89+
runs-on: github-hosted-heavy-runner
90+
steps:
91+
- name: Potential broken submodules fix
92+
run: |
93+
git checkout -f $(git -c user.name=x -c user.email=x@x commit-tree $(git hash-object -t tree /dev/null) < /dev/null) || :
94+
- name: Clone the repository
95+
uses: actions/checkout@v4
96+
- name: Cargo Cache
97+
uses: actions/cache@v4
98+
with:
99+
path: |
100+
~/.cargo/bin/
101+
~/.cargo/registry/index/
102+
~/.cargo/registry/cache/
103+
~/.cargo/git/db/
104+
etc/xcc-router/target/
105+
key: cargo-build-xcc-router
106+
- name: Install dependencies
107+
run: cargo +stable make -V || cargo +stable install cargo-make
108+
- name: Build
109+
run: cargo make build-xcc-router
110+
87111
env:
88112
CARGO_TERM_COLOR: always
89113
CARGO_INCREMENTAL: 0

CHANGES.md

Lines changed: 40 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,39 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [3.8.0] 2025-02-05
11+
12+
### Changes
13+
14+
- Bumped the SputnikVM up to 0.46.1-aurora by [@mrLSD]. ([#966])
15+
- The nightly rust compiler has been replaced with stable by [@aleksuss]. ([#977])
16+
- Added changes regarding bumping the `primitive-types` crate by [@mrLSD]. ([#982])
17+
- The code coverage by clippy has been extended by [@aleksuss]. ([#984])
18+
- The code is changed by the clippy suggestions from the toolchain 1.84.0 by [@mrLSD]. ([#986])
19+
- The precompile `exitToNear` now is compatible with the OMNI bridge by [@aleksuss]. ([#992])
20+
21+
### Fixes
22+
23+
- Added optimisations to the `AccountId` creation methods by [@aleksuss]. ([#985])
24+
- The `README.md` has been actualized by [@aleksuss]. ([#978])
25+
- Modified CI scripts by [@aleksuss]. ([#969], [#973], [#975], [#976], [#981])
26+
- Fixed the vulnerability in the `remove_relayer_key` transaction by [@aleksuss]. ([#972])
27+
28+
[#966]: https://github.com/aurora-is-near/aurora-engine/pull/966
29+
[#969]: https://github.com/aurora-is-near/aurora-engine/pull/969
30+
[#972]: https://github.com/aurora-is-near/aurora-engine/pull/972
31+
[#973]: https://github.com/aurora-is-near/aurora-engine/pull/973
32+
[#975]: https://github.com/aurora-is-near/aurora-engine/pull/975
33+
[#976]: https://github.com/aurora-is-near/aurora-engine/pull/976
34+
[#977]: https://github.com/aurora-is-near/aurora-engine/pull/977
35+
[#978]: https://github.com/aurora-is-near/aurora-engine/pull/978
36+
[#981]: https://github.com/aurora-is-near/aurora-engine/pull/981
37+
[#982]: https://github.com/aurora-is-near/aurora-engine/pull/982
38+
[#984]: https://github.com/aurora-is-near/aurora-engine/pull/984
39+
[#985]: https://github.com/aurora-is-near/aurora-engine/pull/985
40+
[#986]: https://github.com/aurora-is-near/aurora-engine/pull/986
41+
[#992]: https://github.com/aurora-is-near/aurora-engine/pull/992
42+
1043
## [3.7.0] 2024-10-09
1144

1245
### Additions
@@ -101,7 +134,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
101134
### Fixes
102135

103136
- Fixed underflow in the modexp gas calculation by [@guidovranken]. ([#883])
104-
- Prevented subtraction underflow in th xcc module by [@guidovranken]. ([#888])
137+
- Prevented subtraction underflow in the xcc module by [@guidovranken]. ([#888])
105138
- Fixed balance and gas overflows in the xcc module by [@guidovranken]. ([#889])
106139

107140
### Changes
@@ -287,7 +320,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
287320

288321
### Fixes
289322

290-
- Use ibig implemenation of modexp by [@birchmd]. ([#778])
323+
- Use ibig implementation of modexp by [@birchmd]. ([#778])
291324

292325
[#778]: https://github.com/aurora-is-near/aurora-engine/pull/778
293326

@@ -504,9 +537,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
504537
### Changes
505538

506539
- Performance improvements by [@birchmd] and [@matklad]; the engine should now consume much less NEAR gas: ([#427]) ([#438]) ([#439]) ([#445]) ([#446])
507-
- Security improvment: only Engine contract owner can use the `deploy_upgrade` method by [@birchmd]. ([#410])
540+
- Security improvement: only Engine contract owner can use the `deploy_upgrade` method by [@birchmd]. ([#410])
508541
- Bug fix: Engine now returns the error message in the case of a revert during an EVM contract deploy, previously it would always return an address (even when the deploy failed) by [@birchmd]. ([#424])
509-
- Security improvment: Engine will no longer accept EVM transactions without a chain ID as part of their signature by [@birchmd]. This should have no impact on users as all modern Ethereum tooling includes the chain ID. ([#432])
542+
- Security improvement: Engine will no longer accept EVM transactions without a chain ID as part of their signature by [@birchmd]. This should have no impact on users as all modern Ethereum tooling includes the chain ID. ([#432])
510543
- Improvements to code quality by [@mrLSD]: ([#386]) ([#387])
511544
- Improvements and additions to internal tests and benchmarks by [@birchmd]: ([#408]) ([#415]) ([#429])
512545

@@ -592,7 +625,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
592625

593626
### Added
594627

595-
- Public method for computing Aurora blockhash at a given hight by [@birchmd]. ([#303](https://github.com/aurora-is-near/aurora-engine/pull/303))
628+
- Public method for computing Aurora blockhash at a given height by [@birchmd]. ([#303](https://github.com/aurora-is-near/aurora-engine/pull/303))
596629

597630
### Changed
598631

@@ -697,7 +730,8 @@ struct SubmitResult {
697730

698731
## [1.0.0] - 2021-05-12
699732

700-
[Unreleased]: https://github.com/aurora-is-near/aurora-engine/compare/3.7.0...develop
733+
[Unreleased]: https://github.com/aurora-is-near/aurora-engine/compare/3.8.0...develop
734+
[3.8.0]: https://github.com/aurora-is-near/aurora-engine/compare/3.7.0...3.8.0
701735
[3.7.0]: https://github.com/aurora-is-near/aurora-engine/compare/3.6.4...3.7.0
702736
[3.6.4]: https://github.com/aurora-is-near/aurora-engine/compare/3.6.3...3.6.4
703737
[3.6.3]: https://github.com/aurora-is-near/aurora-engine/compare/3.6.2...3.6.3

0 commit comments

Comments
 (0)