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

Wallet Plugins for perfect GAS estimation on contract-specific invocations #2448

Open
igormcoelho opened this issue Apr 22, 2021 · 3 comments
Labels
Discussion Initial issue state - proposed but not yet accepted

Comments

@igormcoelho
Copy link
Contributor

igormcoelho commented Apr 22, 2021

Summary or problem description
As pointed out by @nicolegys and @ArithMegatron, there can be some practical challenges on using Refuel operation (giving more GAS during execution).
In my opinion, the best way to provide precise GAS estimation for contract-specific setups, is to allow the development of Wallet plugins that are made specifically for contract-specific invocations.
For example, I develop some NEP-17, and my operations require some specific amount of GAS, or some other data treatment to make users spend less (contracts will work anyway, we are just discussing ways of being more efficient). So I provide special .dll, .so, or any other binary/code extension into their wallet (or some script?), that is invoked just for their operations.

Do you have any solution you want to propose?
Allow Wallet extensions for contract-specific invocations (such as NEP-17), that provide precise GAS calculations.

Neo Version

  • Neo 3

Where in the software does this update applies to?

  • Other: Wallet
@igormcoelho igormcoelho added the Discussion Initial issue state - proposed but not yet accepted label Apr 22, 2021
@igormcoelho
Copy link
Contributor Author

See #2444

@igormcoelho igormcoelho changed the title Plugins for Wallet GAS estimation on contract-specific invocations Wallet Plugins for perfect GAS estimation on contract-specific invocations Apr 22, 2021
@roman-khimov
Copy link
Contributor

I provide special .dll, .so, or any other binary/code extension into their wallet (or some script?), that is invoked just for their operations

  1. Won't work with any non-C# node/wallet.
  2. I already envision "Install THIS plugin for FREE Neo N3 transactions right NOW!!!" things going on.

@igormcoelho
Copy link
Contributor Author

I agree with both points @roman-khimov , and specially "Install THIS plugin for FREE Neo N3 transactions right NOW!!!" hahaha 😂

But this only happens if users install unsupported plugins/wallets, and that's why this issue is important: to discuss safe interfaces for doing that. If we fail to provide that, rogue contract-specific wallets that provide cheap or free operations will prevail.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Discussion Initial issue state - proposed but not yet accepted
Projects
None yet
Development

No branches or pull requests

2 participants