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

Feat: standalone nep141 legacy #669

Merged
merged 8 commits into from
Feb 2, 2023

Conversation

mrLSD
Copy link
Member

@mrLSD mrLSD commented Jan 26, 2023

Description

After splitting logic in #607 - Split NEP-141 from Engine, engine-standalone requires changes. Since engine-standalone cannot interact with the new aurora-eth-connectpr contract, the previous NEP-141-related codebase has been moved separately to standalone-nep141-legacy. This will ensure that engine-standalone works well with historical data.

Modules were added:

  • legacy_connector
  • fungible_token

Performance / NEAR gas cost considerations

It affects only standalone. So no side effects.

Testing

Tests not changed for standalone. Just restored expected behaviour. For some unknown reason failed function validate_standalone, but that function don't affect any test.

@mrLSD mrLSD self-assigned this Jan 26, 2023
@mrLSD mrLSD changed the title Added: standalone nep141 legacy crate. Refactored related code Feat: standalone nep141 legacy Jan 26, 2023
@mrLSD mrLSD mentioned this pull request Jan 26, 2023
@mrLSD mrLSD marked this pull request as ready for review January 26, 2023 12:39
@mrLSD mrLSD requested a review from joshuajbouw as a code owner January 26, 2023 12:39
@mrLSD mrLSD requested a review from birchmd January 26, 2023 12:40
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.

Nice idea with the flag in the state to indicate if the legacy code can be disabled! I still think a more general solution involving the engine version would be better because it would generalize to other changes we might want to make, but this gets the job done for this case.

engine/src/lib.rs Outdated Show resolved Hide resolved
engine-standalone-storage/src/sync/mod.rs Show resolved Hide resolved
@mrLSD mrLSD requested review from birchmd and aleksuss February 2, 2023 13:18
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.

LGTM

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.

Yeah this can work for now. Thank you.

@mrLSD mrLSD merged commit ccbd07b into feat/split-eth-connector Feb 2, 2023
@mrLSD mrLSD deleted the feat/standalone-nep141-legacy branch February 2, 2023 22:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants