Skip to content

Commit

Permalink
Release 3.8.0 (#995)
Browse files Browse the repository at this point in the history
## [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>
  • Loading branch information
7 people authored Feb 5, 2025
1 parent 338dd61 commit 00fb22f
Show file tree
Hide file tree
Showing 119 changed files with 3,995 additions and 4,329 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ jobs:
cargo make --profile ${{ matrix.profile }} build-xcc-docker
- run: ls -lH bin/aurora-*${{ matrix.profile }}.wasm
- name: Upload aurora-${{ matrix.profile }}.wasm artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: contracts
name: contract-${{ matrix.profile }}
path: bin/aurora*${{ matrix.profile }}.wasm

publish:
Expand All @@ -41,7 +41,11 @@ jobs:
needs: build
steps:
- name: Download artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
path: contracts
pattern: contract-*
merge-multiple: true
- run: ls -la contracts
- name: Publish contracts for ${{ github.ref }} release
uses: svenstaro/upload-release-action@v2
Expand All @@ -50,6 +54,7 @@ jobs:
file: contracts/aurora*.wasm
repo_token: ${{ secrets.GITHUB_TOKEN }}
file_glob: true
overwrite: true
env:
CARGO_TERM_COLOR: always
CARGO_INCREMENTAL: 0
21 changes: 20 additions & 1 deletion .github/workflows/lints.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,15 @@ jobs:
git checkout -f $(git -c user.name=x -c user.email=x@x commit-tree $(git hash-object -t tree /dev/null) < /dev/null) || :
- name: Clone the repository
uses: actions/checkout@v4
- run: cargo make build-contracts
- name: Update Node and Yarn
run: |
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
nvm install 18 && nvm alias default 18
npm install -g yarn
echo "$(dirname $(nvm which node))" >> $GITHUB_PATH
- name: Build contracts
run: cargo make build-contracts
- name: Run Contract cargo clippy
run: cargo make clippy
udeps:
Expand All @@ -51,7 +59,18 @@ jobs:
git checkout -f $(git -c user.name=x -c user.email=x@x commit-tree $(git hash-object -t tree /dev/null) < /dev/null) || :
- name: Clone the repository
uses: actions/checkout@v4
- name: Update Node and Yarn
run: |
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
nvm install 18 && nvm alias default 18
npm install -g yarn
echo "$(dirname $(nvm which node))" >> $GITHUB_PATH
- name: Run yarn lint
run: cargo make check-contracts
- name: Check committed EvmErc20.bin
run: bash scripts/verify_evm_erc20.sh

env:
CARGO_TERM_COLOR: always
CARGO_INCREMENTAL: 0
34 changes: 30 additions & 4 deletions .github/workflows/scheduled_lints.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
---
on:
schedule:
- cron: '0 9 * * 1-5'
- cron: '0 8 * * 1-5'

name: Scheduled checks
jobs:
tests:
Expand All @@ -15,8 +16,19 @@ jobs:
- name: Potential broken submodules fix
run: |
git checkout -f $(git -c user.name=x -c user.email=x@x commit-tree $(git hash-object -t tree /dev/null) < /dev/null) || :
- name: Install dependencies
run: |
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt update && sudo apt install -y yarn build-essential pkg-config libclang-dev libssl-dev
- name: Clone the repository
uses: actions/checkout@v4
- name: Install Rust toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
cache: false
toolchain: stable
override: false
- name: Cargo Cache
uses: actions/cache@v4
with:
Expand All @@ -30,8 +42,8 @@ jobs:
- name: Setup Node and cache
uses: actions/setup-node@v4
with:
node-version: 16
cache: 'yarn'
node-version: 18
cache: yarn
cache-dependency-path: |
etc/eth-contracts
etc/tests/uniswap
Expand All @@ -58,11 +70,25 @@ jobs:
git checkout -f $(git -c user.name=x -c user.email=x@x commit-tree $(git hash-object -t tree /dev/null) < /dev/null) || :
- name: Clone the repository
uses: actions/checkout@v4
- run: cargo make check
- name: Update Node and Yarn
run: |
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
nvm install 18 && nvm alias default 18
npm install -g yarn
echo "$(dirname $(nvm which node))" >> $GITHUB_PATH
- name: Run checks
run: cargo make check
- name: Run build XCC router
run: cargo make build-xcc-router
- uses: 8398a7/action-slack@v3
if: failure()
with:
status: ${{ job.status }}
fields: repo,message,commit,author,action,eventName,job,took
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

env:
CARGO_TERM_COLOR: always
CARGO_INCREMENTAL: 0
28 changes: 26 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ jobs:
- name: Setup Node and cache
uses: actions/setup-node@v4
with:
node-version: 16
cache: 'yarn'
node-version: 18
cache: yarn
cache-dependency-path: |
etc/eth-contracts
etc/tests/uniswap
Expand Down Expand Up @@ -84,6 +84,30 @@ jobs:
- name: Test ${{ matrix.profile }} bench-modexp
run: cargo make --profile ${{ matrix.profile }} bench-modexp

build_xcc_router:
name: Build XCC router
runs-on: github-hosted-heavy-runner
steps:
- name: Potential broken submodules fix
run: |
git checkout -f $(git -c user.name=x -c user.email=x@x commit-tree $(git hash-object -t tree /dev/null) < /dev/null) || :
- name: Clone the repository
uses: actions/checkout@v4
- name: Cargo Cache
uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
etc/xcc-router/target/
key: cargo-build-xcc-router
- name: Install dependencies
run: cargo +stable make -V || cargo +stable install cargo-make
- name: Build
run: cargo make build-xcc-router

env:
CARGO_TERM_COLOR: always
CARGO_INCREMENTAL: 0
46 changes: 40 additions & 6 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,39 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [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]: https://github.com/aurora-is-near/aurora-engine/pull/966
[#969]: https://github.com/aurora-is-near/aurora-engine/pull/969
[#972]: https://github.com/aurora-is-near/aurora-engine/pull/972
[#973]: https://github.com/aurora-is-near/aurora-engine/pull/973
[#975]: https://github.com/aurora-is-near/aurora-engine/pull/975
[#976]: https://github.com/aurora-is-near/aurora-engine/pull/976
[#977]: https://github.com/aurora-is-near/aurora-engine/pull/977
[#978]: https://github.com/aurora-is-near/aurora-engine/pull/978
[#981]: https://github.com/aurora-is-near/aurora-engine/pull/981
[#982]: https://github.com/aurora-is-near/aurora-engine/pull/982
[#984]: https://github.com/aurora-is-near/aurora-engine/pull/984
[#985]: https://github.com/aurora-is-near/aurora-engine/pull/985
[#986]: https://github.com/aurora-is-near/aurora-engine/pull/986
[#992]: https://github.com/aurora-is-near/aurora-engine/pull/992

## [3.7.0] 2024-10-09

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

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

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

### Fixes

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

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

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

- Performance improvements by [@birchmd] and [@matklad]; the engine should now consume much less NEAR gas: ([#427]) ([#438]) ([#439]) ([#445]) ([#446])
- Security improvment: only Engine contract owner can use the `deploy_upgrade` method by [@birchmd]. ([#410])
- Security improvement: only Engine contract owner can use the `deploy_upgrade` method by [@birchmd]. ([#410])
- 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])
- 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])
- 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])
- Improvements to code quality by [@mrLSD]: ([#386]) ([#387])
- Improvements and additions to internal tests and benchmarks by [@birchmd]: ([#408]) ([#415]) ([#429])

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

### Added

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

### Changed

Expand Down Expand Up @@ -697,7 +730,8 @@ struct SubmitResult {

## [1.0.0] - 2021-05-12

[Unreleased]: https://github.com/aurora-is-near/aurora-engine/compare/3.7.0...develop
[Unreleased]: https://github.com/aurora-is-near/aurora-engine/compare/3.8.0...develop
[3.8.0]: https://github.com/aurora-is-near/aurora-engine/compare/3.7.0...3.8.0
[3.7.0]: https://github.com/aurora-is-near/aurora-engine/compare/3.6.4...3.7.0
[3.6.4]: https://github.com/aurora-is-near/aurora-engine/compare/3.6.3...3.6.4
[3.6.3]: https://github.com/aurora-is-near/aurora-engine/compare/3.6.2...3.6.3
Expand Down
Loading

0 comments on commit 00fb22f

Please sign in to comment.