Skip to content

Commit 65a1d11

Browse files
artobAhmed AliDmitry StrokovmrLSDjoshuajbouw
authored
Release 1.5.0. (#207)
* JSON: fix bugs and add unit tests. (#141) * Add storage layout debug support for `EvmErc20.sol`. (#178) * ERC-20: forbid using invalid NEP-141 AccountID for mapping. (#179) * Add EIP-2930 support. (#181, #182) * Migrate all workflows to self-hosted runners. (#185) * Speed up the workflow using build caching. (#189) * Use the new math API host functions. (#190) * Fix `clippy::enum_variant_names` warning. (#192) * Add different networks to the Makefile. (#193) * Update the network status in the README. (#194) * Remove the toolchain installation step in workflows. (#195) * Run all tests for all networks in CI. (#196) * Optimize for performance instead of code size. (#197) * Parallelize the test suites. (#198) * Add build-caching to the testing workflow. (#201) * Refactor tests to use Signer. (#203) * Add options to the bench profile. (#204) * Remove a duplicate test. (#205) * Add a sanity test for access list handling. (#206) * Update nearcore to the latest branch. * Add feature gates to the SDK's new host functions. Co-authored-by: Ahmed Ali <ahmed@aurora.dev> Co-authored-by: Dmitry Strokov <dmitry@aurora.dev> Co-authored-by: Evgeny Ukhanov <evgeny@aurora.dev> Co-authored-by: Joshua J. Bouw <joshua@aurora.dev> Co-authored-by: Kirill <kirill@aurora.dev> Co-authored-by: Michael Birch <michael@aurora.dev>
1 parent d2f2e32 commit 65a1d11

42 files changed

Lines changed: 2041 additions & 1376 deletions

Some content is hidden

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

.github/workflows/builds.yml

Lines changed: 14 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -7,56 +7,46 @@ name: Builds
77
jobs:
88
release:
99
name: Release
10-
runs-on: ubuntu-latest
10+
runs-on: self-hosted
1111
steps:
1212
- name: Clone the repository
1313
uses: actions/checkout@v2
14-
- name: Install the toolchain
15-
uses: actions-rs/toolchain@v1
16-
with:
17-
profile: minimal
18-
toolchain: nightly-2021-03-25
19-
override: true
14+
- run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH
2015
- run: make release
21-
- run: ls -lH release.wasm
22-
- name: Upload the release.wasm artifact
16+
- run: ls -lH mainnet-release.wasm
17+
- name: Upload the mainnet-release.wasm artifact
2318
uses: actions/upload-artifact@v2
2419
with:
25-
name: release.wasm
26-
path: release.wasm
20+
name: mainnet-release.wasm
21+
path: mainnet-release.wasm
2722
- name: Update the latest release
2823
uses: svenstaro/upload-release-action@v2
2924
with:
3025
tag: latest
31-
file: release.wasm
26+
file: mainnet-release.wasm
3227
overwrite: true
3328
repo_token: ${{ secrets.GITHUB_TOKEN }}
3429
- name: Update the latest tag
3530
uses: EndBug/latest-tag@latest
3631
debug:
3732
name: Debug
38-
runs-on: ubuntu-latest
33+
runs-on: self-hosted
3934
steps:
4035
- name: Clone the repository
4136
uses: actions/checkout@v2
42-
- name: Install the toolchain
43-
uses: actions-rs/toolchain@v1
44-
with:
45-
profile: minimal
46-
toolchain: nightly-2021-03-25
47-
override: true
37+
- run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH
4838
- run: make debug
49-
- run: ls -lH debug.wasm
50-
- name: Upload the debug.wasm artifact
39+
- run: ls -lH mainnet-debug.wasm
40+
- name: Upload the mainnet-debug.wasm artifact
5141
uses: actions/upload-artifact@v2
5242
with:
53-
name: debug.wasm
54-
path: debug.wasm
43+
name: mainnet-debug.wasm
44+
path: mainnet-debug.wasm
5545
- name: Update the latest release
5646
uses: svenstaro/upload-release-action@v2
5747
with:
5848
tag: latest
59-
file: debug.wasm
49+
file: mainnet-debug.wasm
6050
overwrite: true
6151
repo_token: ${{ secrets.GITHUB_TOKEN }}
6252
- name: Update the latest tag

.github/workflows/lints.yml

Lines changed: 8 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -5,49 +5,29 @@ name: Lints
55
jobs:
66
fmt:
77
name: rustfmt
8-
runs-on: ubuntu-latest
8+
runs-on: self-hosted
99
steps:
1010
- name: Clone the repository
1111
uses: actions/checkout@v2
12-
- name: Install the toolchain
13-
uses: actions-rs/toolchain@v1
14-
with:
15-
profile: minimal
16-
toolchain: nightly-2021-03-25
17-
override: true
18-
components: rustfmt
12+
- run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH
1913
- name: Run cargo fmt
20-
uses: actions-rs/cargo@v1
21-
with:
22-
command: fmt
23-
args: --all -- --check
14+
run: cargo fmt --all -- --check
2415
clippy:
2516
name: Clippy
26-
runs-on: ubuntu-latest
17+
runs-on: self-hosted
2718
steps:
2819
- name: Clone the repository
2920
uses: actions/checkout@v2
30-
- name: Install the toolchain
31-
uses: actions-rs/toolchain@v1
32-
with:
33-
profile: minimal
34-
toolchain: nightly-2021-03-25
35-
override: true
36-
components: clippy
21+
- run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH
3722
- run: make etc/eth-contracts/res/EvmErc20.bin
3823
- name: Run Contract cargo clippy
39-
uses: actions-rs/cargo@v1
40-
with:
41-
command: clippy
42-
args: --no-default-features --features=contract -- -D warnings
24+
run: cargo clippy --no-default-features --features=contract -- -D warnings
4325
- name: Run cargo clippy
44-
uses: actions-rs/cargo@v1
45-
with:
46-
command: clippy
26+
run: cargo clippy
4727

4828
contracts:
4929
name: eth-contracts
50-
runs-on: ubuntu-latest
30+
runs-on: self-hosted
5131
steps:
5232
- name: Clone the repository
5333
uses: actions/checkout@v2

.github/workflows/scheduled_lints.yml

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,11 @@ name: Scheduled_Lints
66
jobs:
77
clippy:
88
name: Nightly_Clippy
9-
runs-on: ubuntu-latest
9+
runs-on: self-hosted
1010
steps:
1111
- name: Clone the repository
1212
uses: actions/checkout@v2
13-
- name: Install the toolchain
14-
uses: actions-rs/toolchain@v1
15-
with:
16-
profile: minimal
17-
toolchain: nightly
18-
override: true
19-
components: clippy
13+
- run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH
2014
- run: make etc/eth-contracts/res/EvmErc20.bin
2115
- name: Run cargo clippy
22-
uses: actions-rs/cargo@v1
23-
with:
24-
command: clippy
25-
args: --no-default-features --features=mainnet -- -D warnings
16+
run: cargo clippy --no-default-features --features=mainnet -- -D warnings

.github/workflows/tests.yml

Lines changed: 22 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -3,45 +3,36 @@ on: [push, pull_request]
33
name: Tests
44
jobs:
55
test:
6-
name: Test suite
7-
runs-on: ubuntu-latest
6+
strategy:
7+
matrix:
8+
net: [main, test, beta]
9+
name: Test suite (${{ matrix.net }}net)
10+
runs-on: self-hosted
811
steps:
912
- name: Clone the repository
1013
uses: actions/checkout@v2
11-
- name: Cache Cargo artifacts
12-
uses: actions/cache@v2
13-
with:
14-
path: |
15-
~/.cargo/registry
16-
~/.cargo/git
17-
target
18-
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
19-
- name: Install the toolchain
20-
uses: actions-rs/toolchain@v1
21-
with:
22-
profile: minimal
23-
toolchain: nightly-2021-03-25
24-
override: true
25-
- run: make test-build
26-
- name: Run cargo test
27-
uses: actions-rs/cargo@v1
28-
with:
29-
command: test
30-
args: --locked --verbose --features meta-call
14+
- run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH
15+
- name: Cache lookup for target dir
16+
run: cache-util -restore -path target -key aurora-engine-target@${{ matrix.net }}net@${{ hashFiles('**/Cargo.lock') }}
17+
- run: make ${{ matrix.net }}net-test-build
18+
- name: Run ${{ matrix.net }}net cargo test
19+
run: cargo test --locked --verbose --features ${{ matrix.net }}net-test
20+
- name: Caching target dir
21+
run: cache-util -save -move -path target -key aurora-engine-target@${{ matrix.net }}net@${{ hashFiles('**/Cargo.lock') }}
3122
bully-build:
3223
name: Bully build
33-
runs-on: ubuntu-latest
24+
runs-on: self-hosted
3425
steps:
3526
- name: Clone the repository
3627
uses: actions/checkout@v2
37-
- name: Install the toolchain
38-
uses: actions-rs/toolchain@v1
39-
with:
40-
profile: minimal
41-
toolchain: nightly-2021-03-25
42-
override: true
43-
- run: make evm-bully=yes
44-
- run: ls -lH release.wasm
28+
- run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH
29+
- name: Cache lookup for target dir
30+
run: cache-util -restore -path target -key aurora-engine-target@bully@${{ hashFiles('**/Cargo.lock') }}
31+
- run: make mainnet-debug evm-bully=yes
32+
- run: ls -lH mainnet-debug.wasm
33+
- name: Cache target dir
34+
run: cache-util -save -move -path target -key aurora-engine-target@bully@${{ hashFiles('**/Cargo.lock') }}
4535
env:
4636
CARGO_TERM_COLOR: always
4737
CARGO_INCREMENTAL: 0
38+
RUSTC_WRAPPER: sccache

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,4 @@ res/
2424
etc/state-migration-test/target/
2525

2626
node_modules/*
27-
artifacts/
2827
cache

CHANGES.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [1.5.0] - 2021-07-30
9+
810
## [1.4.3] - 2021-07-08
911

1012
## [1.4.2] - 2021-06-25
@@ -21,6 +23,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2123

2224
## [1.0.0] - 2021-05-12
2325

26+
[1.5.0]: https://github.com/aurora-is-near/aurora-engine/compare/1.4.3...1.5.0
2427
[1.4.3]: https://github.com/aurora-is-near/aurora-engine/compare/1.4.2...1.4.3
2528
[1.4.2]: https://github.com/aurora-is-near/aurora-engine/compare/1.4.1...1.4.2
2629
[1.4.1]: https://github.com/aurora-is-near/aurora-engine/compare/1.4.0...1.4.1

0 commit comments

Comments
 (0)