You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We want to improve metering during transaction simulation to capture resource usage more accurately. This will help us provide more detailed feedback for developers, insights in fee optimization, and ways to optimize.
Problem
Currently, we provide meeting at an aggregate level for transaction simulation. We are looking for more detailed information, specifically:
Contract call boundaries
Host function call boundaries
Contract Call Boundaries
Metering at the boundaries of contract calls (between contracts) is possible today and relatively straightforward to implement.
Host Function Call Boundaries
Metering at the boundaries of host function calls is technically possible but complex. We will evaluate if this is achievable. This is probably less impactful as well, as developers could not necessarily make adjusted to avoid calling certain host functions.
Proposal
Introduce a feature flag to simulate transaction to provide more detailed metering information at contract call boundaries
Provide detailed metering for resources
Instruction metering: some metrics like instructions we can send before and end of each function
Snapshot storage: before and after function call
The text was updated successfully, but these errors were encountered:
We want to improve metering during transaction simulation to capture resource usage more accurately. This will help us provide more detailed feedback for developers, insights in fee optimization, and ways to optimize.
Problem
Currently, we provide meeting at an aggregate level for transaction simulation. We are looking for more detailed information, specifically:
Contract Call Boundaries
Metering at the boundaries of contract calls (between contracts) is possible today and relatively straightforward to implement.
Host Function Call Boundaries
Metering at the boundaries of host function calls is technically possible but complex. We will evaluate if this is achievable. This is probably less impactful as well, as developers could not necessarily make adjusted to avoid calling certain host functions.
Proposal
Introduce a feature flag to simulate transaction to provide more detailed metering information at contract call boundaries
The text was updated successfully, but these errors were encountered: