parser

package
v0.0.0-...-178ef9e Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUnexpectedClosingBracket = errors.New("unexpected closing bracket")

Functions

This section is empty.

Types

type Token

type Token struct {
	ChainId    int               `json:"chainId"`
	Address    string            `json:"address"`
	Symbol     string            `json:"symbol"`
	Name       string            `json:"name"`
	Decimals   int               `json:"decimals"`
	LogoURI    string            `json:"logoURI"`
	Tags       []string          `json:"tags,omitempty"`
	Extensions map[string]string `json:"extensions,omitempty"`
}

func NormalizeWhatever

func NormalizeWhatever(s string) ([]Token, error)

type TokenList

type TokenList struct {
	Name      string          `json:"name"`
	LogoURI   string          `json:"logoURI"`
	Keywords  []string        `json:"keywords"`
	Tags      json.RawMessage `json:"tags"`
	Timestamp string          `json:"timestamp"`
	Tokens    []Token         `json:"tokens"`
	Version   struct {
		Major int `json:"major"`
		Minor int `json:"minor"`
		Patch int `json:"patch"`
	} `json:"version"`
}

Jump to

Keyboard shortcuts

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