integrations

package
v0.0.0-...-4582ed7 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2024 License: GPL-3.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 SunswapProvider

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

func NewSunswapProvider

func NewSunswapProvider() *SunswapProvider

func (*SunswapProvider) GetToken

func (t *SunswapProvider) GetToken(address string) (models.Token, bool)

type Token

type Token struct {
	Decimals int    `json:"decimals"`
	Name     string `json:"name"`
	Symbol   string `json:"symbol"`
}

type TokenListsProvider

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

func NewTokensListProvider

func NewTokensListProvider() *TokenListsProvider

func (*TokenListsProvider) GetDecimals

func (t *TokenListsProvider) GetDecimals(address *tronApi.Address) (int32, bool)

GetDecimals - Fetch decimals from sync map

Jump to

Keyboard shortcuts

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