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

Support for making gas price data available to contracts #1604

Closed
Tracked by #1690
miloszm opened this issue Mar 27, 2024 · 0 comments
Closed
Tracked by #1690

Support for making gas price data available to contracts #1604

miloszm opened this issue Mar 27, 2024 · 0 comments
Assignees
Labels
module:rusk-abi Issues related to rusk-abi module type:enhancement Issues concerning code or feature improvement (performance, refactoring, etc)

Comments

@miloszm
Copy link
Contributor

miloszm commented Mar 27, 2024

Summary

Currently, gas price information is not available to contracts. Contract should be able to call a host method providing such information. Although the host function is also part of PieCrust, Rusk needs to support such functionality in VM.
Contract should be able to get low, average and high values of a gas price.

Possible solution design or implementation

TBD - a way is needed to pass current gas price information to VM and make it available to contracts via a host function.

Additional context

Related to Economic Protocol Scenario 3, issues: #1503, #1603

@miloszm miloszm added type:enhancement Issues concerning code or feature improvement (performance, refactoring, etc) team:Core module:rusk-abi Issues related to rusk-abi module labels Mar 27, 2024
@miloszm miloszm self-assigned this Mar 27, 2024
@miloszm miloszm changed the title Support for making gas price data available for contracts Support for making gas price data available to contracts Mar 27, 2024
@HDauven HDauven modified the milestones: Economic Protocol, Mainnet Apr 10, 2024
@miloszm miloszm closed this as completed Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module:rusk-abi Issues related to rusk-abi module type:enhancement Issues concerning code or feature improvement (performance, refactoring, etc)
Projects
None yet
Development

No branches or pull requests

2 participants