Open gabehamilton opened 11 months ago
This does look like a bunch of methods to add to near lake primitives, correct?
Yes, that would make the most sense. Maybe we can add them there and since they won't make the 0.1.1 version we're upgrading to soon, also patch block
with them in this repo?
The problem
Indexer functions would be easier to read if there were helper functions to extract common data.
Near-primitives solution
Full Example Indexer
Original
Proposed Solution
Add the following context methods:
base64Decode
Every indexer currently defines it (though with a lower case d).getFunctionCalls(contract, method)
getSocialOperations(operation)
Decide whether to pass
block
in method signature.Full Example Indexer
Proposed code blocks
base64Decode(encodedValue)
getFunctionCalls(contract, method)
getSocialOperations(operation)
Test Indexer