Documentation
¶
Index ¶
- Constants
- type TokenMetadataAnalyzer
- func (a *TokenMetadataAnalyzer) Analyze(ctx context.Context, req analyzer.AnalyzeRequest[analyzer.CallAnalyzerContext], ...) (annotation.Annotations, error)
- func (a *TokenMetadataAnalyzer) CanAnalyze(_ context.Context, _ analyzer.AnalyzeRequest[analyzer.CallAnalyzerContext], ...) bool
- func (a *TokenMetadataAnalyzer) Dependencies() []string
- func (a *TokenMetadataAnalyzer) ID() string
Constants ¶
View Source
const ( AnalyzerID = "ccip.token_pool.token_metadata" AnnotationSymbol = "ccip.token.symbol" AnnotationDecimals = "ccip.token.decimals" AnnotationAddress = "ccip.token.address" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TokenMetadataAnalyzer ¶
type TokenMetadataAnalyzer struct{}
TokenMetadataAnalyzer resolves ERC20 token metadata (symbol, decimals, address) for any token pool call.
func (*TokenMetadataAnalyzer) Analyze ¶
func (a *TokenMetadataAnalyzer) Analyze( ctx context.Context, req analyzer.AnalyzeRequest[analyzer.CallAnalyzerContext], call decoder.DecodedCall, ) (annotation.Annotations, error)
func (*TokenMetadataAnalyzer) CanAnalyze ¶
func (a *TokenMetadataAnalyzer) CanAnalyze( _ context.Context, _ analyzer.AnalyzeRequest[analyzer.CallAnalyzerContext], call decoder.DecodedCall, ) bool
func (*TokenMetadataAnalyzer) Dependencies ¶
func (a *TokenMetadataAnalyzer) Dependencies() []string
func (*TokenMetadataAnalyzer) ID ¶
func (a *TokenMetadataAnalyzer) ID() string
Click to show internal directories.
Click to hide internal directories.