Quote from: abit on March 15, 2018, 07:50:11 PMQuote from: CoinHoarder on March 15, 2018, 01:27:13 PMCustom operations usually do nothing other than validating authorities. So there will be no "custom_object" in the core, nor evaluator or custom_id_type. Business logic around it would be "customized" (not in the core consensus).Quote from: pc on March 09, 2018, 11:42:35 AM
http://docs.bitshares.org/development/namespaces/chain.html#_CPPv2N8graphene5chain16custom_operationE
Ok. Thanks to @abit too.
Almost all of the proposed API calls are unneccesary, and can use the custom transaction types.
The documentation is really bad for this stuff though. Something with the schema for the commands would go a long ways. I saw there was a command that returns the schema for the custom operations, but the command does not seem to work with bitshares-ws NPM module API.
It seems like the following commands may be useful for such an implementation:
custom_operation
custom_evaluator
custom_id_type
custom_object_type
Ok, so custom_operation can be used for all custom operations.
How can these custom operations be queried and filtered using the API? Or would one need to download all custom operations starting from from the genesis block, and process them client-side?
If the latter, then that is definitely not ideal. Some type of query and filter API call would be handy.
I would suggest Meteor's version of MongoDB-styled syntax since custom operations are aschematic. It is easy to learn and fairly straightforward. Two API calls would cover all use cases: find_custom_operation and find_one_custom_operation. These commands should accept MongoDB-styled queries. These API calls would be very powerful for building decentralized applications on top of Bitshares. https://docs.meteor.com/api/collections.html#Mongo-Collection-find
