Documentation
¶
Overview ¶
Package jet preloads Jet Protocol V1 lending pool reserve accounts (global market data only -- Obligation, the per-wallet position account, is not fetched here since there is no bounded set to bulk-load).
Index ¶
Constants ¶
This section is empty.
Variables ¶
var (
ProgramID = sgo.MustPublicKeyFromBase58("JPv1rCqrhagNNmJVM5J1he7msQ5ybtvE1nNuHpDHMNU")
)
var Schema string
Functions ¶
func ExportJSON ¶
ExportJSON writes every tracked Jet reserve to path as a JSON array of Reserve values (its own existing json tags) -- the same real query loadReserves already runs for in-process use, reused verbatim, so catscope-rust-bot's build.rs can read this file instead of opening prefetch.db directly.
Types ¶
type Jet ¶
type Jet struct {
Reserves []*Reserve
// contains filtered or unexported fields
}
Jet holds all Jet Protocol V1 reserve accounts loaded at startup.
func Create ¶
Create queries the Jet Protocol V1 program at depth 2 (program → market → reserve) and collects all reserve accounts, persisting results to db (jet_reserve). If db already has reserves from a previous run, they're loaded back instead of re-fetching, unless force is true.
func (*Jet) Find ¶
Find looks up a reserve by its pubkey.
Source Files
¶
- event.go
- export.go
- jet.go
- print.go
- reserve.go
- schema.go
- store.go