onramp

package
v0.181.32 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2024 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CryptoOnRamp

type CryptoOnRamp struct {
	Name              string            `json:"name"`
	Description       string            `json:"description"`
	Fees              string            `json:"fees"`
	LogoURL           string            `json:"logoUrl"`
	SiteURL           string            `json:"siteUrl"`
	RecurrentSiteURL  string            `json:"recurrentSiteUrl"`
	Hostname          string            `json:"hostname"`
	Params            map[string]string `json:"params"` // TODO implement params in JSON and parsing status-mobile
	SupportedChainIDs []uint64          `json:"supportedChainIds"`
}

type DataSourceType

type DataSourceType int
const (
	DataSourceHTTP DataSourceType = iota + 1
	DataSourceStatic
)

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

func NewManager

func NewManager(options *Options) *Manager

func (*Manager) Get

func (c *Manager) Get() ([]CryptoOnRamp, error)

type Options

type Options struct {
	DataSource     string
	DataSourceType DataSourceType
}

Jump to

Keyboard shortcuts

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