Simplify interop services #1082
Labels
Enhancement
Type - Changes that may affect performance, usability or add new features to existing modules.
Ledger
Module - The ledger is our 'database', this is used to tag changes about how we store information
Ready-to-Implement
Issue state: Ready to be implemented or implementation in progress
Milestone
Summary
Currently, our interop service API is very complicated. For example, to get a transaction, we need to call
System.Blockchain.GetTransaction
and then callNeo.Transaction.GetScript
to get the fields of the transaction. Maybe we can simplify them.Solution
In fact, we have an API that is very simple, that is
System.Runtime.GetNotifications
.neo/neo/SmartContract/InteropService.cs
Lines 237 to 252 in 2da4fb1
We can change all the APIs that get the data into this way. This way we can remove a lot of redundant APIs.
Where in software does this update applies to?
The text was updated successfully, but these errors were encountered: