Closed meevee98 closed 4 years ago
fyi; building passes, travis is just not reporting results again https://travis-ci.org/github/CityOfZion/neo-boa/builds/681164498
I think this PR is good to go
I'm waiting for an "issue" elaboration on Discord before merging this.
What current issue(s) from Github does this address?
124
What problem does this PR solve? Implement the generation of the .abi.json needed to Neo Visual DevTracker provide a better developer experience for invoking smart contracts
How did you solve this problem? I implemented two decorators to identify the methods that should be included in the .abi.json with the information about parameters and return type:
@abi_method(types)
to identify the methods that should be included@abi_entry_point(types)
to identify which method is the entry pointAre there any special changes in the code that we should be aware of? When a decorator is used, the compiler didn't get the code of the method because it was used the first element in
self.block
inmethod.py
. I implemented a method to get the index of the block with the code. Changes here and here.Is there anything else we should know? The
@abi_entry_point(types)
can be used only once. If any@abi_method(types)
decorator is used, it must have a method with@abi_entry_point(types)
decorator