Skip to content

Commit 9d1e40e

Browse files
aleksussdependabot[bot]mrLSDkogelerdiegofigs
authored
Release 3.10.0 (#1057)
### Additions - Added WASM contract optimization by using `wasm-opt` util by [@mrLSD]. ([#835]) - Introduced a `cargo-near-build` crate for building contracts used in the tests by [@aleksuss]. ([#1015]) - Added a possibility to deploy ERC-20 tokens with metadata by [@aleksuss]. ([#1008]) - Osaka hard fork `MODEXP` precompile modification for EIP-7823 and EIP-7883 by [@mrLSD]. ([#1050]) - Added `secp256r1` precompile for the Osaka hard fork - EIP-7951 by [@mrLSD]. ([#1052]) - Added `PARGUE` hard fork support by [@mrLSD]. ([#988]) ### Changes - Added `wasm-opt` dependency in the scheduled tasks in the CI by [@aleksuss]. ([#1016]) - Removed the `ext-connector` feature and the codebase related to ETH connector by [@aleksuss]. ([#1018]) - Removed the `mainnet` and `testnet` features by [@aleksuss]. ([#1019]) - Renamed view method `paused_precompiles` to `get_paused_precompiles` by [@joshuajbouw]. ([#609]) - Updated `near` dependencies by [@aleksuss]. ([#1034]) - Updated test contracts annotations after updating `near-sdk` to 5.18 by [@aleksuss]. ([#1048]) - `alt-bn256` precompiles refactored by [@mrLSD]. ([#1047]) ### Fixes - Rolled back the backward compatibility of the `exit_to_near` precompilie by [@aleksuss]. ([#1014]) - Fixed occasionally failing `1inch` tests by [@aleksuss]. ([#1029]) - Fixed potential UB while mutating an immutable object by [@vlad9486]. ([#1046]) [#609]: #609 [#835]: #835 [#988]: #988 [#1008]: #1008 [#1014]: #1014 [#1015]: #1015 [#1016]: #1016 [#1018]: #1018 [#1019]: #1019 [#1029]: #1029 [#1034]: #1034 [#1046]: #1046 [#1047]: #1047 [#1048]: #1048 [#1050]: #1050 [#1052]: #1052 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * BLS12-381 precompiles (G1/G2 ops, MSM, mapping, pairing) and Secp256r1 precompile added; EIP-7702 transactions and Osaka ModExp support. * **Improvements** * Consolidated CI/workflows and build flow; automatic wasm-opt integration and wider dependency upgrades; added extensive cryptographic test vectors. * **Bug Fixes** * Simplified several precompile implementations and gas calculations. * **Chores** * Version bumped to 3.10.0; removed legacy connector/bridge features and cleared default environment config entries. <sub>✏️ Tip: You can customize this high-level summary in your review settings.</sub> <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Evgeny Ukhanov <evgeny@aurora.dev> Co-authored-by: kogeler <kogeler@gmail.com> Co-authored-by: Diego Figueroa <12281609+diegofigs@users.noreply.github.com> Co-authored-by: Joshua J. Bouw <joshua@aurora.dev> Co-authored-by: Saso Skube <saso.skube@gmail.com> Co-authored-by: Sašo Skube <saso.skube@external.vorwerk.com> Co-authored-by: Vladimir Istyufeev <me@rcn.me> Co-authored-by: Vladimir Istyufeev <vladimir.istiufeev@aurora.dev> Co-authored-by: Vladislav Melnik <vladislav.melnik@protonmail.com>
1 parent 62e25fa commit 9d1e40e

File tree

225 files changed

+11529
-9188
lines changed

Some content is hidden

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

225 files changed

+11529
-9188
lines changed

.env/custom_example.env

Lines changed: 0 additions & 50 deletions
This file was deleted.

.env/local.env

Lines changed: 0 additions & 7 deletions
This file was deleted.

.env/mainnet-silo.env

Lines changed: 0 additions & 10 deletions
This file was deleted.

.env/mainnet.env

Lines changed: 0 additions & 11 deletions
This file was deleted.

.env/testnet-silo.env

Lines changed: 0 additions & 10 deletions
This file was deleted.

.env/testnet.env

Lines changed: 0 additions & 11 deletions
This file was deleted.

.github/workflows/builds.yml

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -7,51 +7,50 @@ name: Build
77
jobs:
88
build:
99
name: Build contracts
10-
runs-on: github-hosted-heavy-runner
11-
strategy:
12-
matrix:
13-
profile: [ mainnet, mainnet-silo, testnet, testnet-silo ]
10+
runs-on: runs-on=${{ github.run_id }}/runner=rust-near-integration-special-48cpu-96gb
1411
steps:
15-
- name: Potential broken submodules fix
16-
run: |
17-
git checkout -f $(git -c user.name=x -c user.email=x@x commit-tree $(git hash-object -t tree /dev/null) < /dev/null) || :
12+
- name: Setup RunsOn
13+
uses: runs-on/action@v2
14+
with:
15+
metrics: cpu,network,memory,disk,io
1816
- name: Clone the repository
1917
uses: actions/checkout@v4
2018
- name: Install Rust
2119
uses: actions-rs/toolchain@v1
2220
with:
2321
toolchain: stable
2422
override: true
23+
- name: Install dependencies
24+
run: scripts/ci-deps/install-wasm-opt.sh
2525
- name: Install cargo-make
26-
run: cargo install --no-default-features --force cargo-make
26+
run: cargo +stable make -V || cargo +stable install cargo-make
2727
- name: Compile smart contracts
2828
run: |
29-
cargo make --profile ${{ matrix.profile }} build-docker
30-
cargo make --profile ${{ matrix.profile }} build-xcc-docker
31-
- run: ls -lH bin/aurora-*${{ matrix.profile }}.wasm
32-
- name: Upload aurora-${{ matrix.profile }}.wasm artifact
29+
cargo make build-docker
30+
cargo make build-xcc-docker
31+
- run: ls -lH bin
32+
- name: Upload contract artifacts
3333
uses: actions/upload-artifact@v4
3434
with:
35-
name: contract-${{ matrix.profile }}
36-
path: bin/aurora*${{ matrix.profile }}.wasm
35+
path: bin/aurora*.wasm
3736

3837
publish:
3938
name: Publish contracts
40-
runs-on: github-hosted-heavy-runner
39+
runs-on: runs-on=${{ github.run_id }}/runner=rust-near-integration-special-48cpu-96gb
4140
needs: build
4241
steps:
42+
- name: Setup RunsOn
43+
uses: runs-on/action@v2
44+
with:
45+
metrics: cpu,network,memory,disk,io
4346
- name: Download artifacts
4447
uses: actions/download-artifact@v4
45-
with:
46-
path: contracts
47-
pattern: contract-*
48-
merge-multiple: true
49-
- run: ls -la contracts
48+
- run: ls -lH artifact
5049
- name: Publish contracts for ${{ github.ref }} release
5150
uses: svenstaro/upload-release-action@v2
5251
with:
5352
tag: ${{ github.ref }}
54-
file: contracts/aurora*.wasm
53+
file: artifact/aurora*.wasm
5554
repo_token: ${{ secrets.GITHUB_TOKEN }}
5655
file_glob: true
5756
overwrite: true
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
---
1+
name: "Contract Security Analysis"
2+
23
on:
34
push:
45
branches:
@@ -9,9 +10,8 @@ on:
910
- cron: "30 5 * * *"
1011
workflow_dispatch:
1112

12-
name: "Contract Security Analysis"
1313
jobs:
1414
contract_analysis:
1515
name: "Shared"
16-
uses: aurora-is-near/.github/.github/workflows/contract_analysis.yml@master
16+
uses: aurora-is-near/.github/.github/workflows/security_analysis.yml@master
1717
secrets: inherit

.github/workflows/lints.yml

Lines changed: 45 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -8,64 +8,59 @@ on:
88

99
name: Lints
1010
jobs:
11-
fmt:
12-
name: Format
13-
runs-on: [ self-hosted, light ]
11+
rust:
12+
name: Run ${{ matrix.command }}
13+
runs-on: runs-on=${{ github.run_id }}/family=c6a.4xlarge/image=ubuntu24-full-x64/extras=s3-cache
14+
container: rust:latest
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
command: [ check-fmt, clippy, udeps ]
1419
steps:
15-
- name: Potential broken submodules fix
16-
run: |
17-
git checkout -f $(git -c user.name=x -c user.email=x@x commit-tree $(git hash-object -t tree /dev/null) < /dev/null) || :
20+
- name: Setup RunsOn
21+
uses: runs-on/action@v2
22+
with:
23+
metrics: cpu,network,memory,disk,io
1824
- name: Clone the repository
1925
uses: actions/checkout@v4
20-
- name: Run cargo fmt
21-
run: cargo make check-fmt
22-
clippy:
23-
name: Clippy
24-
runs-on: [ self-hosted, heavy ]
25-
steps:
26-
- name: Potential broken submodules fix
27-
run: |
28-
git checkout -f $(git -c user.name=x -c user.email=x@x commit-tree $(git hash-object -t tree /dev/null) < /dev/null) || :
29-
- name: Clone the repository
30-
uses: actions/checkout@v4
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
40-
- name: Run Contract cargo clippy
41-
run: cargo make clippy
42-
udeps:
43-
name: Udeps
44-
runs-on: [ self-hosted, heavy ]
45-
steps:
46-
- name: Potential broken submodules fix
47-
run: |
48-
git checkout -f $(git -c user.name=x -c user.email=x@x commit-tree $(git hash-object -t tree /dev/null) < /dev/null) || :
49-
- name: Clone the repository
50-
uses: actions/checkout@v4
51-
- name: Run udeps
52-
run: cargo make udeps
26+
- name: Install dependencies
27+
run: scripts/ci-deps/native.sh
28+
- name: Setup Rust cache
29+
uses: Swatinem/rust-cache@v2
30+
with:
31+
key: aurora-${{ matrix.command }}-check
32+
cache-on-failure: "true"
33+
cache-all-crates: "true"
34+
- name: Install Rust toolchain and components
35+
run: rustup toolchain add nightly
36+
- name: Install cargo-make
37+
run: cargo +stable make -V || cargo +stable install cargo-make
38+
- name: Run ${{ matrix.command }}
39+
run: cargo make ${{ matrix.command }}
40+
5341
contracts:
5442
name: Contracts
55-
runs-on: [ self-hosted, light ]
43+
runs-on: runs-on=${{ github.run_id }}/family=c6a.4xlarge/image=ubuntu24-full-x64/extras=s3-cache
44+
container: rust:latest
5645
steps:
57-
- name: Potential broken submodules fix
58-
run: |
59-
git checkout -f $(git -c user.name=x -c user.email=x@x commit-tree $(git hash-object -t tree /dev/null) < /dev/null) || :
46+
- name: Setup RunsOn
47+
uses: runs-on/action@v2
48+
with:
49+
metrics: cpu,network,memory,disk,io
6050
- name: Clone the repository
6151
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
52+
- name: Install dependencies
53+
run: scripts/ci-deps/native.sh
54+
- name: Setup Node and cache
55+
uses: actions/setup-node@v4
56+
with:
57+
node-version: 18
58+
cache: yarn
59+
cache-dependency-path: |
60+
etc/eth-contracts/yarn.lock
61+
etc/tests/uniswap/yarn.lock
62+
- name: Install cargo-make
63+
run: cargo +stable make -V || cargo +stable install cargo-make
6964
- name: Run yarn lint
7065
run: cargo make check-contracts
7166
- name: Check committed EvmErc20.bin

0 commit comments

Comments
 (0)