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
GnoMobile is a framework to help developers deploy their Gno apps on mobile. A Gno app calls realm functions which subtract gas from the user's account. Some functions may require extra gas, for example to post a message with a large document. Therefore, it is useful to estimate the gas that will be used before calling the function. This presents special issues for mobile apps, as mentioned below.
Possible methods to estimate gas fees are:
Use an approximation based on the amount of data and typical processing fees for that function. This is the simplest method and may work in most cases, but is not exact and can cause surprises. Works well on mobile.
Use gnovm to evaluate the function locally based on a sample realm state. This does not require syncing the current state of the realm, which can be expensive on mobile. This would be a more accurate measure of CPU fees but is still not exact. Also, because the realm state is not current, the function call may fail (when it would succeed with the current realm state).
Use gnovm to evaluate the function locally using the current realm state. This would compute the exact fees, but requires to sync and store the realm state which can use lots of bandwidth and storage which may be undesirable (or impossible) on mobile.
Use gnovm on a remote server to evaluate the function using the current realm state. The server has enough storage and bandwidth, but would use lots of CPU. Who runs these "eval servers" and what is the incentive? Is this compatible with a peer-to-peer approach?
In the end, we need to decide on one or more methods and have API support in Gno plus support for mobile app development in GnoMobile.
The text was updated successfully, but these errors were encountered:
GnoMobile is a framework to help developers deploy their Gno apps on mobile. A Gno app calls realm functions which subtract gas from the user's account. Some functions may require extra gas, for example to post a message with a large document. Therefore, it is useful to estimate the gas that will be used before calling the function. This presents special issues for mobile apps, as mentioned below.
Possible methods to estimate gas fees are:
In the end, we need to decide on one or more methods and have API support in Gno plus support for mobile app development in GnoMobile.
The text was updated successfully, but these errors were encountered: