Skip to content

Commit

Permalink
Release 3.2.0 (#852)
Browse files Browse the repository at this point in the history
## Release 3.2.0

### Changes

- Changed structure `SetEthConnectorContractAccountArgs` for setting eth
connector account. It was extended with
additional field: `withdraw_serialize_type` for defining serialization
type for withdraw arguments by [@aleksuss]. ([#834])

- Updated rocksdb up to 0.21.0 by [@aleksuss]. ([#840])

### Additions

- Added a possibility of mirroring deployed ERC-20 contracts in the main
Aurora contract in Silo mode by [@aleksuss]. ([#844])

- Allow to initialize hashchain directly with the `new` method by
[@birchmd]. ([#846])

- Added a silo logic which allows to set fixed gas costs per transaction
by [@aleksuss]. ([#746])

- Added a new type of transaction which allows to add full access key
into account of the smart contract by [@aleksuss]. ([#847])

[#746]: #746
[#834]: #834
[#840]: #840
[#844]: #844
[#846]: #846
[#847]: #847

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: i-fix-typos <146758284+i-fix-typos@users.noreply.github.com>
Co-authored-by: Evgeny Ukhanov <evgeny@aurora.dev>
Co-authored-by: Michael Birch <michael.birch@aurora.dev>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Karim <karim@aurora.dev>
Co-authored-by: Joshua J. Bouw <joshua@aurora.dev>
Co-authored-by: ForwardSlashBack <142098649+ForwardSlashBack@users.noreply.github.com>
  • Loading branch information
8 people committed Oct 17, 2023
1 parent 6d861c8 commit 9b3a2d9
Show file tree
Hide file tree
Showing 94 changed files with 8,058 additions and 2,967 deletions.
10 changes: 10 additions & 0 deletions .env/mainnet-silo.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
CARGO_FEATURES_BUILD="mainnet,ext-connector"
CARGO_FEATURES_BUILD_TEST="mainnet,integration-test,ext-connector"
CARGO_FEATURES_TEST="mainnet-test,ext-connector"
RUSTC_FLAGS_BUILD="-C link-arg=-s"
NEAR_EVM_ACCOUNT="aurora"
WASM_FILE="aurora-mainnet-silo.wasm"
WASM_FILE_TEST="aurora-mainnet-silo-test.wasm"
NEAR_CLI="near"
PROFILE="mainnet-silo"
IS_PROD=true
10 changes: 10 additions & 0 deletions .env/testnet-silo.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
CARGO_FEATURES_BUILD="testnet,ext-connector"
CARGO_FEATURES_BUILD_TEST="testnet,integration-test,ext-connector"
CARGO_FEATURES_TEST="testnet-test,ext-connector"
RUSTC_FLAGS_BUILD="-C link-arg=-s"
NEAR_EVM_ACCOUNT="aurora"
WASM_FILE="aurora-testnet-silo.wasm"
WASM_FILE_TEST="aurora-testnet-silo-test.wasm"
NEAR_CLI="near"
PROFILE="testnet-silo"
IS_PROD=false
21 changes: 12 additions & 9 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
* @joshuajbouw
/engine/ @aleksuss
/engine-precompiles/ @mandreyel
/engine-sdk/ @aleksuss
/engine-standalone-storage/ @RomanHodulak
/engine-standalone-tracing/ @RomanHodulak
/engine-test-doubles/ @joshuajbouw
/engine-tests/ @joshuajbouw
/engine-transactions/ @aleksuss
* @aleksuss
/engine/ @birchmd
/engine-hashchain/ @birchmd
/engine-modexp/ @birchmd
/engine-precompiles/ @birchmd
/engine-sdk/ @mrLSD
/engine-standalone-storage/ @birchmd
/engine-standalone-tracing/ @birchmd
/engine-tests-connector/ @mrLSD
/engine-test-doubles/ @mrLSD
/engine-tests/ @mrLSD
/engine-workspace/ @mrLSD
2 changes: 1 addition & 1 deletion .github/workflows/builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: [self-hosted, heavy]
strategy:
matrix:
profile: [mainnet, testnet]
profile: [mainnet, mainnet-silo, testnet, testnet-silo]
steps:
- name: Potential broken submodules fix
run: |
Expand Down
13 changes: 9 additions & 4 deletions .github/workflows/scheduled_lints.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,16 @@ jobs:
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@v3
uses: actions/checkout@v4
- name: Test mainnet
run: cargo make --profile mainnet test
run: cargo make --profile mainnet test-flow
- name: Test testnet
run: cargo make --profile testnet test
run: cargo make --profile testnet test-flow
- name: Test mainnet silo
run: cargo make --profile mainnet-silo test-flow
- name: Test testnet silo
run: cargo make --profile testnet-silo test-flow

checks:
name: Run checks
runs-on: [self-hosted, heavy]
Expand All @@ -25,5 +30,5 @@ jobs:
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@v3
uses: actions/checkout@v4
- run: cargo make check
100 changes: 62 additions & 38 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,56 +9,80 @@ on:
name: Tests
jobs:
test:
name: Test suite (mainnet, testnet)
runs-on: [self-hosted, heavy]
name: Test suite ${{ matrix.profile }}
runs-on: github-hosted-heavy-runner
strategy:
fail-fast: false
matrix:
profile: [ mainnet, testnet, mainnet-silo, testnet-silo ]
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@v3
- name: Restore cache
run: cache-util restore cargo_git cargo_registry yarn_cache
- name: Build contracts
run: cargo make build-contracts
- name: Test contracts
run: cargo make test-contracts
- name: Build mainnet test WASM
run: cargo make --profile mainnet build-test
- name: List mainnet WASM directory and root directory
run: ls -la target/wasm32-unknown-unknown/release && ls -la
- name: Test mainnet
run: cargo make --profile mainnet test-workspace
- name: Build testnet test WASM
run: cargo make --profile testnet build-test
- name: List testnet WASM directory and root directory
run: ls -la target/wasm32-unknown-unknown/release && ls -la
- name: Test testnet
run: cargo make --profile testnet test-workspace
- name: Save cache
run: cache-util save cargo_git cargo_registry yarn_cache
uses: actions/checkout@v4
- name: Cargo Cache
uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ matrix.profile }}-cargo-test
- name: Setup Node and cache
uses: actions/setup-node@v3
with:
node-version: 16
cache: 'yarn'
cache-dependency-path: |
etc/eth-contracts
etc/tests/uniswap
- name: Install dependencies
run: cargo make -V || cargo install cargo-make
- name: Build main contract
run: |
case ${{ matrix.profile }} in
mainnet-silo)
cargo make --profile mainnet build-test
;;
testnet-silo)
cargo make --profile testnet build-test
;;
*)
;;
esac
- name: Tests ${{ matrix.profile }}
run: cargo make --profile ${{ matrix.profile }} test-flow

test_modexp:
name: Test modexp suite (mainnet, testnet)
runs-on: [ self-hosted, heavy ]
name: Test modexp suite ${{ matrix.profile }}
runs-on: github-hosted-heavy-runner
strategy:
fail-fast: false
matrix:
profile: [ mainnet, testnet ]
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@v3
- name: Restore cache
run: |
cache-util restore cargo_git cargo_registry yarn_cache
cache-util restore aurora-engine-target@generic@${{ hashFiles('**/Cargo.lock') }}:target
- name: Test mainnet bench-modexp
run: cargo make --profile mainnet bench-modexp
- name: Test testnet bench-modexp
run: cargo make --profile testnet bench-modexp
- name: Save cache
run: |
cache-util save cargo_git cargo_registry yarn_cache
cache-util msave aurora-engine-target@generic@${{ hashFiles('**/Cargo.lock') }}:target
uses: actions/checkout@v4
- name: Cargo Cache
uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ matrix.profile }}-cargo-modexp-test
- name: Install dependencies
run: cargo make -V || cargo install cargo-make
- name: Test ${{ matrix.profile }} bench-modexp
run: cargo make --profile ${{ matrix.profile }} bench-modexp

env:
CARGO_TERM_COLOR: always
Expand Down
43 changes: 38 additions & 5 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,36 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [3.2.0] 2023-10-17

### Changes

- Changed structure `SetEthConnectorContractAccountArgs` for setting eth connector account. It was extended with
additional field: `withdraw_serialize_type` for defining serialization type for withdraw arguments by [@aleksuss]. ([#834])

- Updated rocksdb up to 0.21.0 by [@aleksuss]. ([#840])

### Additions

- Added a possibility of mirroring deployed ERC-20 contracts in the main Aurora contract in Silo mode by [@aleksuss]. ([#844])

- Allow to initialize hashchain directly with the `new` method by [@birchmd]. ([#846])

- Added a silo logic which allows to set fixed gas costs per transaction by [@aleksuss]. ([#746])

- Added a new type of transaction which allows to add full access key into account of the smart contract by [@aleksuss]. ([#847])

[#746]: https://github.com/aurora-is-near/aurora-engine/pull/746
[#834]: https://github.com/aurora-is-near/aurora-engine/pull/834
[#840]: https://github.com/aurora-is-near/aurora-engine/pull/840
[#844]: https://github.com/aurora-is-near/aurora-engine/pull/844
[#846]: https://github.com/aurora-is-near/aurora-engine/pull/846
[#847]: https://github.com/aurora-is-near/aurora-engine/pull/847

## [3.1.0] 2023-09-25

### Additions

- Added the possibility to use native NEAR instead of wNEAR on Aurora by [@karim-en]. ([#750])

- Added hashchain integration by [@birchmd]. ([#831])
Expand All @@ -24,15 +52,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Fixes

- Updated sputnikvm dependency with bugfix in the `returndatacopy` implementation and a performance improvement in accessing EVM memory. [@birchmd] ([#826])
- Updated [SputnikVM](https://github.com/aurora-is-near/sputnikvm) dependency with bugfix in the `returndatacopy`
implementation and a performance improvement in accessing EVM memory by [@birchmd]. ([#826])

### Changes

- BREAKING: `engine-standalone-storage` no loonger automatically writes to the DB when `consume_message` is called. It is up to downstream users of the library to commit the diff (after doing any validation for correctness). [@birchmd] ([#825])
- BREAKING: `engine-standalone-storage` no longer automatically writes to the DB when `consume_message` is called.
It is up to downstream users of the library to commit the diff (after doing any validation for correctness) by [@birchmd]. ([#825])

### Additions

- New crate for the so-called "hashchain" implementation. It will enable verification of Aurora blocks by light clients in the future. [@birchmd] ([#816])
- New crate for the so-called "hashchain" implementation. It will enable verification of Aurora blocks by light clients
in the future by [@birchmd]. ([#816])

[#816]: https://github.com/aurora-is-near/aurora-engine/pull/816
[#825]: https://github.com/aurora-is-near/aurora-engine/pull/825
Expand Down Expand Up @@ -495,8 +526,10 @@ struct SubmitResult {

## [1.0.0] - 2021-05-12

[Unreleased]: https://github.com/aurora-is-near/aurora-engine/compare/2.10.2...develop
[3.0.0]: https://github.com/aurora-is-near/aurora-engine/compare/2.10.2...3.0.0
[Unreleased]: https://github.com/aurora-is-near/aurora-engine/compare/3.2.0...develop
[3.2.0]: https://github.com/aurora-is-near/aurora-engine/compare/3.1.0...3.2.0
[3.1.0]: https://github.com/aurora-is-near/aurora-engine/compare/3.0.0...3.1.0
[3.0.0]: https://github.com/aurora-is-near/aurora-engine/compare/3.0.0...2.10.2
[2.10.2]: https://github.com/aurora-is-near/aurora-engine/compare/2.10.1...2.10.2
[2.10.1]: https://github.com/aurora-is-near/aurora-engine/compare/2.10.0...2.10.1
[2.10.0]: https://github.com/aurora-is-near/aurora-engine/compare/2.9.3...2.10.0
Expand Down

0 comments on commit 9b3a2d9

Please sign in to comment.