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

Add Xtokens precompile #2489

Merged
merged 13 commits into from
Mar 24, 2023
Merged

Add Xtokens precompile #2489

merged 13 commits into from
Mar 24, 2023

Conversation

zjb0807
Copy link
Member

@zjb0807 zjb0807 commented Mar 14, 2023

Closes: #2475

TODO:

  • merge v0.9.38 and upgrade the xcm v3

@zjb0807 zjb0807 requested review from ermalkaleci, shaunxw and xlc March 23, 2023 06:24
@zjb0807 zjb0807 marked this pull request as ready for review March 23, 2023 06:24
runtime/common/src/precompile/mod.rs Outdated Show resolved Hide resolved
runtime/common/src/precompile/xtokens.rs Outdated Show resolved Hide resolved
runtime/common/src/precompile/xtokens.rs Outdated Show resolved Hide resolved
Action::Transfer => {
let currency_id = input.currency_id_at(2)?;
let read_currency = InputPricer::<Runtime>::read_currency(currency_id);

Copy link
Member

Choose a reason for hiding this comment

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

we could expose the weight functions from xtokens and use them here

@zjb0807 zjb0807 force-pushed the xtokens-precompile branch from 0b72ea3 to 7bd6039 Compare March 23, 2023 16:03
xlc
xlc previously approved these changes Mar 23, 2023
@xlc xlc merged commit 4844051 into master Mar 24, 2023
@xlc xlc deleted the xtokens-precompile branch March 24, 2023 02:35
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.

EVM: precompile to perform xtokens transfer
2 participants