Crate papyrus_proc_macros
source ·Attribute Macros§
- This macro will emit a histogram metric with the given name and the latency of the function.
- This macro is a wrapper around the “rpc” macro supplied by the jsonrpsee library that generates a server and client traits from a given trait definition. The wrapper gets a version id and prepend the version id to the trait name and to every method name (note method name refers to the name the API has for the function not the actual function name). We need this in order to be able to merge multiple versions of jsonrpc APIs into one server and not have a clash in method resolution.