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

Connector cleanup #374

Merged
merged 29 commits into from
Dec 8, 2021
Merged

Connector cleanup #374

merged 29 commits into from
Dec 8, 2021

Conversation

mrLSD
Copy link
Member

@mrLSD mrLSD commented Nov 22, 2021

Cleanup Eth-connector and improve code quality.

Full description here: #359

@mrLSD mrLSD added the A-benchmark Area: performance benchmarks label Nov 22, 2021
@mrLSD mrLSD self-assigned this Nov 22, 2021
@mrLSD mrLSD changed the base branch from master to develop November 22, 2021 16:21
@mrLSD mrLSD marked this pull request as ready for review November 26, 2021 15:51
@mrLSD mrLSD requested a review from birchmd November 26, 2021 15:51
@mrLSD mrLSD added A-testing Area: If something has added tests, or changed them. C-enhancement Category: New feature or request and removed A-benchmark Area: performance benchmarks labels Nov 26, 2021
Copy link
Member

@birchmd birchmd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your work on this, it's certainly moving in the right direction!

My main concern is about changing the binary format in one of the messages. That kind of backwards-incompatible change could cause an issue in the future. Remember that we want to support replaying transactions in the standalone engine now, so we need to be cognizant of breaking changes.

engine-tests/src/tests/eth_connector.rs Outdated Show resolved Hide resolved
engine-types/src/types.rs Outdated Show resolved Hide resolved
engine/src/connector.rs Outdated Show resolved Hide resolved
engine/src/deposit_event.rs Outdated Show resolved Hide resolved
engine/src/deposit_event.rs Outdated Show resolved Hide resolved
engine/src/deposit_event.rs Outdated Show resolved Hide resolved
engine/src/deposit_event.rs Outdated Show resolved Hide resolved
engine/src/fungible_token.rs Show resolved Hide resolved
engine/src/parameters.rs Show resolved Hide resolved
engine/src/connector.rs Show resolved Hide resolved
@mrLSD
Copy link
Member Author

mrLSD commented Nov 30, 2021

My main concern is about changing the binary format in one of the messages.

From that point of view, it makes sense. I'll return to the old binary format.

An interesting fact, out of 32 bytes - 16 bytes are superfluous. since we don't use them.

@mrLSD mrLSD requested a review from birchmd November 30, 2021 17:11
Copy link
Member

@birchmd birchmd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this PR is nearly ready! In this round of comments I want you delete some of the implementations on the Fee new type because they do not properly follow the semantics of its arithmetic.

engine-tests/src/tests/eth_connector.rs Outdated Show resolved Hide resolved
engine-types/src/types.rs Show resolved Hide resolved
engine-types/src/types.rs Outdated Show resolved Hide resolved
engine-types/src/types.rs Outdated Show resolved Hide resolved
engine-types/src/types.rs Outdated Show resolved Hide resolved
engine-types/src/types.rs Outdated Show resolved Hide resolved
engine-types/src/types.rs Outdated Show resolved Hide resolved
engine/src/connector.rs Outdated Show resolved Hide resolved
engine/src/engine.rs Outdated Show resolved Hide resolved
engine/src/fungible_token.rs Outdated Show resolved Hide resolved
mrLSD and others added 5 commits December 3, 2021 19:17
change comemnts

Co-authored-by: Michael Birch <birchmd8@gmail.com>
change comemnts

Co-authored-by: Michael Birch <birchmd8@gmail.com>
@mrLSD mrLSD requested a review from birchmd December 3, 2021 17:42
Copy link
Member

@birchmd birchmd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @mrLSD nice job.

engine/src/engine.rs Show resolved Hide resolved
Copy link
Contributor

@joshuajbouw joshuajbouw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. In the future, please do changes in different PRs. Makes it much easier for the reviewers to go through.

engine-types/src/types.rs Outdated Show resolved Hide resolved
engine-tests/src/tests/eth_connector.rs Outdated Show resolved Hide resolved
engine-types/src/types.rs Outdated Show resolved Hide resolved
engine-types/src/types.rs Show resolved Hide resolved
engine/src/connector.rs Show resolved Hide resolved
engine/src/connector.rs Outdated Show resolved Hide resolved
engine/src/connector.rs Show resolved Hide resolved
@mrLSD mrLSD merged commit d05cdd9 into develop Dec 8, 2021
@mrLSD mrLSD deleted the feat/connector-cleanup branch December 8, 2021 18:42
artob pushed a commit that referenced this pull request Dec 10, 2021
* Feat(engine): London hard fork support (#244)
* Fix(exit precompile): Address to refund in case of error is an argument (#311)
* Feat(engine): Make engine parametric in storage access (#314)
* Test verifying the EVM log returns the correct address (#341)
* Remove sdk::current_account_id usage from engine-precompiles (#346)
* Remove Default trait bound from engine IO (#342)
* Remove some sdk usage from core logic (#347)
* Factor out blockchain environment variable access as a trait (#349)
* Factor out NEAR promise host functions into a trait (#353)
* Borsh deserialized value field for call args (#351)
* Refactor(eth-connector): Use Result return values instead of panicking (#355)
* Gate all NEAR host functions behind the contract feature (#356)
* Bump @openzeppelin/contracts from 4.3.2 to 4.3.3 in /etc/eth-contracts
* Chore: Newtypes for gas (#344)
* Feat(standalone): Standalone (#345)
* Minor fixes to sdk refactor (#359)
* Refactor(engine): Move submit logic into engine module (#366)
* Feat(standalone): Storage backend (#375)
* NEAR random numbers from solidity contract (#368)
* Feat(standalone): EVM tracing via SputnikVM (#383)
* Feat(standalone): Bootstrap storage from relayer and state snapshots (#379)
* Feat(standalone): Structures and logic for keeping storage in sync with the blockchain (#382)
* Feat(standalone): Capture geth-like tracing from SputnikVM events (#384)
* Connector cleanup (#374)
* Remove betanet
* Fix(engine): original_storage bug fix; more tracing tests (#390)
* Increase NEAR Gas for ft_on_transfer (#389)

Co-authored-by: Andrew Bednoff <andrew.bednoff@aurora.dev>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Evgeny Ukhanov <evgeny.ukhanov@aurora.dev>
Co-authored-by: Marcelo Fornet <marcelo.fornet@aurora.dev>
Co-authored-by: Michael Birch <michael.birch@aurora.dev>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-testing Area: If something has added tests, or changed them. C-enhancement Category: New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants