Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
Lookup(ctx context.Context, chainID uint64, address *common.Address, id, blockNumber *big.Int) (*metadata.Token, error)
}
Client is a client to look up token metadata.
type LookupFunc ¶
type LookupFunc = func(ctx context.Context, chainID uint64, address *common.Address, id, blockNumber *big.Int) (*metadata.Token, error)
LookupFunc is a function to look up token metadata.
type Option ¶
type Option func(*client) error
func WithParseTokenMetadata ¶
WithParseTokenMetadata enables parsing token metadata.
func WithRueidisClient ¶ added in v0.3.11
WithRueidisClient sets Redis client and enables caching.
Click to show internal directories.
Click to hide internal directories.