diff --git a/cmd/analyzer/analyzer.go b/cmd/analyzer/analyzer.go index 7a2d15df8..493503bc4 100644 --- a/cmd/analyzer/analyzer.go +++ b/cmd/analyzer/analyzer.go @@ -369,6 +369,19 @@ func NewService(cfg *config.AnalysisConfig) (*Service, error) { //nolint:gocyclo return evmnfts.NewAnalyzer(common.RuntimeEmerald, cfg.Analyzers.EmeraldEvmNfts.ItemBasedAnalyzerConfig, sourceClient, ipfsClient, dbClient, logger) }) } + if cfg.Analyzers.SapphireEvmNfts != nil { + analyzers, err = addAnalyzer(analyzers, err, func() (A, error) { + sourceClient, err1 := sources.Runtime(ctx, common.RuntimeSapphire) + if err1 != nil { + return nil, err1 + } + ipfsClient, err1 := sources.IPFS(ctx) + if err1 != nil { + return nil, err1 + } + return evmnfts.NewAnalyzer(common.RuntimeSapphire, cfg.Analyzers.SapphireEvmNfts.ItemBasedAnalyzerConfig, sourceClient, ipfsClient, dbClient, logger) + }) + } if cfg.Analyzers.EmeraldEvmTokenBalances != nil { runtimeMetadata := cfg.Source.SDKParaTime(common.RuntimeEmerald) analyzers, err = addAnalyzer(analyzers, err, func() (A, error) { diff --git a/config/config.go b/config/config.go index 787376029..e0c3e71a5 100644 --- a/config/config.go +++ b/config/config.go @@ -131,6 +131,7 @@ type AnalyzersList struct { EmeraldEvmTokens *EvmTokensAnalyzerConfig `koanf:"evm_tokens_emerald"` SapphireEvmTokens *EvmTokensAnalyzerConfig `koanf:"evm_tokens_sapphire"` EmeraldEvmNfts *EvmTokensAnalyzerConfig `koanf:"evm_nfts_emerald"` + SapphireEvmNfts *EvmTokensAnalyzerConfig `koanf:"evm_nfts_sapphire"` EmeraldEvmTokenBalances *EvmTokensAnalyzerConfig `koanf:"evm_token_balances_emerald"` SapphireEvmTokenBalances *EvmTokensAnalyzerConfig `koanf:"evm_token_balances_sapphire"` EmeraldContractCode *EvmContractCodeAnalyzerConfig `koanf:"evm_contract_code_emerald"`