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

EVM: Scheduler API - part 1 #631

Closed
xlc opened this issue Dec 14, 2020 · 0 comments · Fixed by #699
Closed

EVM: Scheduler API - part 1 #631

xlc opened this issue Dec 14, 2020 · 0 comments · Fixed by #699
Assignees
Milestone

Comments

@xlc
Copy link
Member

xlc commented Dec 14, 2020

API to allow EVM contracts to schedule contract call.

Precompiles to allow contract to schedule a call with min_delay, gas_limit, target, input, value.

Reserve gas_limit * DefaultGasPrice

New call fn scheduled_call(origin, from, target, input, value, gas_limit), ensure_root and otherwise similar to call, refund unused gas and move used gas payment to treasury.

Use pallet-scheduler to schedule a call with scheduled_call

Predeployed contract to call the precompiles.

Some example code of using this feature.

@xlc xlc added this to the 2.0 milestone Jan 8, 2021
@xlc xlc changed the title EVM: Scheduler API EVM: Scheduler API - part 1 Jan 18, 2021
@xlc xlc modified the milestones: 2.0, Karura Launch Jan 18, 2021
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 a pull request may close this issue.

2 participants