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(energy): Make proxy caller to pay with his own energy #261

Merged
merged 2 commits into from
Apr 12, 2024

Conversation

F3Joule
Copy link
Member

@F3Joule F3Joule commented Apr 10, 2024

Description

From now on, proxy caller will pay with his energy for the transaction fees. If he has not enough energy, proxy's real should provide energy. A fallback here is proxy caller's native balance.

Release Checklist

  • Verify spec_version has been incremented since the last release.
  • Verify pallet and extrinsic ordering has stayed the same. Bump transaction_version if not
  • Verify new extrinsics have been correctly whitelisted/blacklisted for BaseCallFilter
  • There are benchmarks for newly created extrinsics.
  • Verify weights have been updated for any modified runtime logic.
  • There are tests for newly created logic.
  • All the tests pass.
  • Ensure migrations run correctly.

From now on, if proxy (caller) account has enough energy it will pay for himself. If not, proxy's real account will be energy provider. A fallback is a caller account native token balance
@F3Joule F3Joule self-assigned this Apr 10, 2024
@F3Joule F3Joule requested review from olehmell and siman April 10, 2024 12:38
@F3Joule F3Joule added the enhancement New feature or request label Apr 10, 2024
@F3Joule F3Joule merged commit 47e9f20 into main Apr 12, 2024
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants