Documentation
¶
Overview ¶
Package prefetch builds wasm bots preloaded with necessary information
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BotImage ¶
type BotImage struct {
// contains filtered or unexported fields
}
type Prefetcher ¶
type Prefetcher struct {
// contains filtered or unexported fields
}
func Create ¶
func (*Prefetcher) Build ¶
func (pf *Prefetcher) Build(ctx context.Context, targetRepositoryPath string, listLoader []StaticLoader, liquidityLoader StaticLoader) (*BotImage, error)
Build an image. Take the data from prefetch (e.g. Orca pool data) and write the Json files into the Rust code base so that those files can be statically compiled into the web assembly binary.
func (*Prefetcher) State ¶
func (pf *Prefetcher) State() state.Client
Source Files
¶
- prefetch.go
- rust.go
Directories
¶
| Path | Synopsis |
|---|---|
|
Package kamino preloads Kamino Lending reserve accounts.
|
Package kamino preloads Kamino Lending reserve accounts. |
|
Package liquidity generates router.json for the catscope-rust-bot build.
|
Package liquidity generates router.json for the catscope-rust-bot build. |
|
Package orca preloads Orca Whirlpool trading pools.
|
Package orca preloads Orca Whirlpool trading pools. |
|
Package raydium preloads Raydium AMM v4 trading pools.
|
Package raydium preloads Raydium AMM v4 trading pools. |
|
Package sanctum preloads Sanctum S Controller LST pool state.
|
Package sanctum preloads Sanctum S Controller LST pool state. |
|
Package trading holds common structs
|
Package trading holds common structs |
Click to show internal directories.
Click to hide internal directories.