Documentation
¶
Overview ¶
Package sanctum preloads Sanctum S Controller LST pool state.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ProgramID = sgo.MustPublicKeyFromBase58("5ocnV1qiCgaQR8Jb8xWnVbApfaygJ8tNoZfgPwsgx9kx")
)
Functions ¶
This section is empty.
Types ¶
type LstConfig ¶
type LstEntry ¶
type LstEntry struct {
Mint sgo.PublicKey `json:"mint"`
SolValueCalculator sgo.PublicKey `json:"sol_value_calculator"`
SolValue uint64 `json:"sol_value"`
}
LstEntry holds one LST's parsed state from the Sanctum S Controller.
type Sanctum ¶
type Sanctum struct {
Lsts []*LstEntry
}
Sanctum holds pool state and LST entries loaded at startup.
func Create ¶
Create queries the Sanctum S Controller PDAs and parses LST entries.
Source Files
¶
- loader.go
- lst.go
- print.go
- sanctum.go
Click to show internal directories.
Click to hide internal directories.