0.2.8 • Published 2 years ago
glasseater v0.2.8
GlassEater
Tools that eat glass so you don't have to.
Docs coming soon...
Features
- generates the most precise and optimal getProgramAccounts queries possible
- automatically batches queries
- autocompletes and type checks everything it possibly can
- enables advanced local filtering
- accepts custom borsh deserializers and fetch functions
- zero dependencies (for the time being)
Installation
(npm|pnpm|yarn) add glasseater @solana/web3.js
Usage
import { AccountsQuery } from "glasseater";
const proposalsQuery = new AccountsQuery(SCHEMA, Proposal);
proposalsQuery
.for(programId)
.select(["config"])
.where({
accountType,
realm: new PublicKey(realmId),
});
const proposals = await proposalsQuery.fetch();
Wishlist
- tests
- anchor IDL support
- joins
- simpler interface
- caching and deduplication*
* like swr, but this and batching might be better handled with a service worker
0.2.8
2 years ago
0.2.7
2 years ago
0.2.6
2 years ago
0.2.5
2 years ago
0.2.4
2 years ago
0.2.3
2 years ago
0.2.2
2 years ago
0.2.1
2 years ago
0.2.0
2 years ago
0.1.12
2 years ago
0.1.11
2 years ago
0.1.10
2 years ago
0.1.9
2 years ago
0.1.8
2 years ago
0.1.7
2 years ago
0.1.6
2 years ago
0.1.4
2 years ago
0.1.2
2 years ago
0.1.1
2 years ago
0.1.0
2 years ago