#logging #solana #json-parser #json #parser #development-tools

macro bryte_descriptor_attribute

Bryte-Descriptor attribute macro for defining an event

2 releases

0.1.0-alpha.2 Dec 13, 2023
0.1.0-alpha.1 Nov 21, 2023

#22 in #development-tools

30 downloads per month

Apache-2.0

15KB
245 lines

bryte-descriptor-attribute

This library provides macros for account and event structs that generate "descriptor" structs. These descriptor structs hold the Borsh Schemas for your accounts or events. These schemas can be retrieved on-chain and used to deserialize account or event data.

This library supports both Solana programs and Anchor programs.

Please see the anchor-demo-program or bryte-descriptor-solana-demo for example usage.

Dependencies

~5MB
~94K SLoC