-
Notifications
You must be signed in to change notification settings - Fork 3
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
[FEATURE]: Add system call to read contract metadata #806
Comments
I don't have any problems with this living in Chain, but it could also live in Contract Meta Store. |
@joticajulian you could also get around that by implementing a function in Fogata that is called to register a contract, here's what you could do in this function:
This should be enough to validate that the contract uploaded is what you expect it to be (although it doesn't solve the other issue you mentionned regarding the storage) |
This issue is stale because it has been open for 30 days with no activity. |
This is going to need governance approval. A tentative proposition: Handle this upgrade in two phases. Phase one implements it as a contract to provide the behavior in the near term. Phase two is providing an optimized thunk implementation to keep mana costs low and provide the thunk at genesis in the framework. |
Is there an existing issue for this?
New feature
As a smart contract developer I would like to have a system call to read contract metadata (authorizations flags, and bytecode).
Use case example: Fogata.
In Fogata we have a contract to submit and approve new mining pools. The new pools must upload a valid fogata contract. However, the approval needs to be done by a centralized party because there is no way to read the bytecode from the new pools in a decentralized way.
Anything else?
No response
The text was updated successfully, but these errors were encountered: