NEP5 inherit/extends from Native standard #772
Labels
Design
Issue state - Feature accepted but the solution requires a design before being implemented
Feature
Type: Large changes or new features
Ledger
Module - The ledger is our 'database', this is used to tag changes about how we store information
VM
New features that affect the Neo Virtual Machine or the Interop layer
It would be incredibly safe for users if they manage to deploy some token contract that inherits from Native NEP5.
It could be something declared in the manifest, for example, "inheritsFrom" : "NEP5scripthash" (or done manually, or even as part of Contract.Create informing parent hashes). The expected result for a "transfer" operation is: before invoking my contract, first invoke NEP5scripthash "transfer" with the given parameters,then invoke my operations.
We could also do this manually if a native implementation is provided. For example:
Main (op , args )
if op == "transfer", invoke "super::transfer" with my own storage.
This would make it much safer and fast to develop contracts on Neo. Whats your thoughts ?
The text was updated successfully, but these errors were encountered: