Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 1.4.2 #163

Merged
merged 43 commits into from
Jun 25, 2021
Merged

Release 1.4.2 #163

merged 43 commits into from
Jun 25, 2021

Conversation

artob
Copy link
Contributor

@artob artob commented Jun 25, 2021

No description provided.

birchmd and others added 30 commits June 1, 2021 19:04
* Add tests for state check after selfdestruct

* Aurora runner tracks storage usage to avoid underflow when storage is released in future transactions (#85)

* Implement generational storage (#87)

* Base precompile code between connectors (#73)

* Base precompile code between connectors

* Handle errors and validate input

* Use proper result

* Document `aurora encode-address` usage.

* Cache cargo artifacts between CI runs. (#92)

* Address comments from audit. (#86)

* Validate register length in `read_input_arr20()`
* Only read register length in `Engine::get_code_size`
* Add `read_input_borsh()`
* Ensure `method.args.len() == args_decoded.len()`
* Ensure register size is 8 in `read_u64`
* Use constant to specify the register ID used in `read_input()`

* Reduce size of `cargo cache` in CI. (#95)

* Define a `Wei` newtype for balances. (#96)

* Fix evm-bully builds after recent refactoring. (#100)

* Refactor `Engine::get_state` to return a `Result`. (#99)

* Ensure that `Cargo.lock` in the repo is valid. (#101)

* Remove unneeded nightly feature. (#102)

* Implement BC generational storage.

* fix address input

* remove note

* put key on the end of the storage key

* remove pub from methods

* Dispatch precompiles on the full address. (#107)

* Support state migration on upgrade. (#103)

* Implement the ETH connector. (#59)

* Move when to call `set_generation`

* Fix arg

Co-authored-by: Marcelo Fornet <mfornet94@gmail.com>
Co-authored-by: Arto Bendiken <arto@aurora.dev>
Co-authored-by: Michael Birch <michael@near.org>
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
Co-authored-by: Evgeny Ukhanov <mrlsd@ya.ru>

* Fix layout of the key

* Fix all tests (don't wipe the storage all the time)

* Use correct generation in writing storage

* Remove unnecessary references

Co-authored-by: Michael Birch <michael@near.org>
Co-authored-by: Joshua J. Bouw <dev@joshuajbouw.com>
Co-authored-by: Arto Bendiken <arto@aurora.dev>
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
Co-authored-by: Evgeny Ukhanov <mrlsd@ya.ru>
Co-authored-by: Michael Birch <michael.birch@aurora.dev>
* Eth-connector: fixed u128 json parsing & tests.
* fixed issue at tests: assert_execution_status_failure pattern
* fixed all u128 tests for eth-connector
  - test_ft_transfer_max_value
  - test_ft_transfer_empty_value

* Update tests/test_connector.rs

Spell improvements

Co-authored-by: Kirill <septengineering@pm.me>

* JSON: `u128` - use JsonError.

* JSON: `u128` - add error for using `Number`.

Co-authored-by: Kirill <septengineering@pm.me>
Co-authored-by: Septen <gammerxpower@gmail.com>
Co-authored-by: Arto Bendiken <arto@aurora.dev>
Co-authored-by: Marcelo Fornet <marcelo@aurora.dev>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Michael Birch <michael@aurora.dev>
* Add the `mainnet`, `testnet`, `betanet` features.
* Remove the obsolete `exit-precompiles` feature.
* Update the `README` build instructions.
birchmd and others added 12 commits June 18, 2021 11:13
As @mfornet pointed out previously the `engine` feature flag doe not seem to add any value, and in fact is a determent to testing because it hides so much logic.

This PR simply removes it.
Per [matklad's blog post](https://matklad.github.io/2021/02/27/delete-cargo-integration-tests.html), it is better in our situation to have all our tests be part of the same compilation artifact (as opposed to rust's "integration tests" which are all compiled separately).

In this PR we resolve the conflicting versions of wasmtime which was preventing us from having all our tests in one place. It also moves most of the tests from `tests` to `src/tests` as suggested in the blog post. An additional benefit of moving the tests under the main source directory is being able to easily reuse code in tests (for example I could delete the `AuroraConfig` struct from the state migration test because it duplicated some things from `test_utils`).

The only tests that remain in `tests` are the ones for the connector. These in particular have a lot of code duplication from production which will be able to be eliminated once it is brought under `src/tests`. However, we are not doing that in this PR because it needs #154 to be merged first. So it will be done as a follow up PR.

One other thing I noticed is that the new `meta-call` feature meant we were not running the tests for meta parsing any more. This is also corrected in this PR.
* Remove `Context` contract
* Follow OpenZeppelin's `msgSender()` style
The EVM uses big-endian, WebAssembly uses little-endian encoding.
* Fix NEP-141 Compliance

Return number as json (string) in ft_on_transfer

* Update src/fungible_token.rs

Co-authored-by: Michael Birch <michael@near.org>

* Fix tests.

* Lint fixes.

Co-authored-by: Michael Birch <michael@near.org>
Co-authored-by: Septen <kirill@aurora.dev>
@artob artob added the C-release Category: New release. label Jun 25, 2021
@artob artob self-assigned this Jun 25, 2021
@artob artob merged commit 3787f01 into master Jun 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-release Category: New release.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants