switchboardv2

package module
v0.0.0-...-0267e0e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 21, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

README

switchboardv2-go

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Devnet = Env{
	Program: solana.MustPublicKeyFromBase58(""),
	Mapping: solana.MustPublicKeyFromBase58(""),
}
View Source
var Mainnet = Env{
	Program: solana.MustPublicKeyFromBase58(" "),
	Mapping: solana.MustPublicKeyFromBase58(" "),
}
View Source
var Testnet = Env{
	Program: solana.MustPublicKeyFromBase58(""),
	Mapping: solana.MustPublicKeyFromBase58(" "),
}

Functions

This section is empty.

Types

type Client

type Client struct {
	Env          Env
	RPC          *rpc.Client
	WebSocketURL string
	Log          *zap.Logger
}

Client interacts with Pyth via Solana's JSON-RPC API.

Do not instantiate Client directly, use NewClient instead.

func NewClient

func NewClient(env Env, rpcURL string, wsURL string) *Client

type Env

type Env struct {
	Program solana.PublicKey // Program ID
	Mapping solana.PublicKey // Root mapping key
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL