ledger

package
v1.5.3 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2022 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const TokensBlob = "" // #nosec

/* 1308-byte string literal not displayed */

Variables

View Source
var ErrCouldNotFindToken = errors.New("could not find token")
View Source
var ErrNotAnERC20Transfer = errors.New("not an ERC20 transfer")

Functions

func IsERC20Transfer

func IsERC20Transfer(data []byte) bool

Types

type Token

type Token struct {
	Ticker    string
	Address   common.Address
	Decimals  uint32
	ChainID   uint32
	Signature []byte
	Data      []byte
}

type Tokens

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

func LoadTokens

func LoadTokens(blob string) (*Tokens, error)

func (*Tokens) ByContractAddressAndChainID

func (t *Tokens) ByContractAddressAndChainID(address common.Address, chainID *big.Int) (*Token, error)

Jump to

Keyboard shortcuts

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