Versions in this module Expand all Collapse all v0 v0.0.6 Jun 24, 2022 v0.0.5 Jun 8, 2022 Changes in this version + var ErrNoExist = errors.New("token doesn't exist") + var ErrNotConnected = errors.New("not connected to a chain, use Connect method") + type Token struct + Address common.Address + Decimals int64 + Symbol string + func Decode(poolBytes []byte) (Token, error) + func NewToken(name string, address common.Address, decimals int64) Token + func (t Token) Encode() ([]byte, error) + type TokenManager interface + GetToken func(ctx context.Context, address common.Address) (Token, error) + func NewTokenDB(client *ethclient.Client, opts db.Opts) TokenManager