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

Feature add Moonbeam's parachain staking precompile #672

Merged
merged 18 commits into from
Jul 26, 2024

Conversation

magecnion
Copy link
Contributor

@magecnion magecnion commented Jul 18, 2024

Previously merged #673 included the minimal changes necessary to accommodate the code from Moonbeam's precompile staking module so we can leverage its implementation:

  • Increasing the cost of three tested calls (this is reflected within the test file).
  • Removing some associated types from the mock file.
  • Removing the 4th parameter of the try_dispatch function, as it doesn't exist in our version.
  • Adding rewards_account = None in the mock.

The incremental changes included in the current PR are only the e2e tests.

@magecnion magecnion linked an issue Jul 19, 2024 that may be closed by this pull request
* it compiles

* test compiles

* remove unneeded code

* clippy issues

* fix tests

* merge

* fix tests

* include staking precompile in runtime

* update staking precompile address

* include readme

* update readme

* don't use default impl in mocks; resuse moonbeam address
@magecnion magecnion marked this pull request as ready for review July 23, 2024 14:47
@magecnion magecnion changed the title Feature add moonbeam parachain staking precompile Feature add Moonbeam's parachain staking precompile Jul 23, 2024
asiniscalchi
asiniscalchi previously approved these changes Jul 24, 2024
precompiles/parachain-staking/StakingInterface.sol Outdated Show resolved Hide resolved
e2e-tests/tests/util.ts Show resolved Hide resolved
@asiniscalchi asiniscalchi merged commit 07d6171 into main Jul 26, 2024
7 checks passed
@asiniscalchi asiniscalchi deleted the feature/add-moonbeam-parachain-staking-precompile branch July 26, 2024 08:41
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.

Expose Moonbeam-like Staking API for EVM
3 participants