#parser #metaplex #account #canonical #contract #plugin #indexing

blockbuster

Metaplex canonical program parsers, for indexing, analytics etc

27 releases (7 stable)

new 2.3.0 Apr 20, 2024
2.2.0 Mar 28, 2024
1.0.1 Feb 4, 2024
0.9.0-beta.5 Jan 2, 2024
0.5.9 Nov 16, 2022

#1527 in Magic Beans

Download history 2/week @ 2023-12-23 12/week @ 2023-12-30 56/week @ 2024-01-06 105/week @ 2024-01-13 220/week @ 2024-01-20 79/week @ 2024-01-27 52/week @ 2024-02-03 22/week @ 2024-02-10 135/week @ 2024-02-17 62/week @ 2024-02-24 192/week @ 2024-03-02 145/week @ 2024-03-09 18/week @ 2024-03-16 363/week @ 2024-03-23 79/week @ 2024-03-30 20/week @ 2024-04-06

494 downloads per month

AGPL-3.0

61KB
1.5K SLoC

BlockBuster

BlockBuster -> "Busting Solana blocks into little pieces to index and operate on the programs therein" - Noone - 1995

This repository is the home for Metaplex Program Parsers. Program parsers are canonical libraries that take a transaction or account update from a geyser plugin and parse them correctly according to Metaplex smart contracts. This sort of parsing is hard to automate as it must contain some knowledge of the API structure of the contract which is not fully describable yet via IDLs. Things like remaining accounts, optional accounts and complex instruction data are not always 100% clear what they mean without knowledge of the contract.

Mode of Operation

This library works best as a consumer of messages sent via a geyser plugin using the Plerkle Serialization library by metaplex. The types from that library are FlatBuffer based currently, and are the wire format of messages coming out of Plerkle into the rest of the infrastructure. For more information about Plerkle and the Digital Asset RPC infrastructure It can however be used in any general programs provided you can create the data in the FlatBuffer types.

Scope

This library contains parsers for the following programs and the parsers are specific to how these contracts relate to metaplex assets.

  • Gummyroll (Solana)
  • Bubblegum (Metaplex)
  • Spl Token (Solana)
  • Token Metadata (Metaplex)
  • Auction House (Metaplex)
  • Candy Machine (Metaplex)
  • Hydra (Metaplex)

Dependencies

~37–54MB
~1M SLoC