diff --git a/ProjectPlugins/CodexClient/openapi.yaml b/ProjectPlugins/CodexClient/openapi.yaml index 6a424985..f7cb4ec9 100644 --- a/ProjectPlugins/CodexClient/openapi.yaml +++ b/ProjectPlugins/CodexClient/openapi.yaml @@ -325,6 +325,7 @@ components: - unknown error: type: string + nullable: true description: If Request failed, then here is presented the error message request: $ref: "#/components/schemas/StorageRequest" diff --git a/ProjectPlugins/CodexPlugin/ApiChecker.cs b/ProjectPlugins/CodexPlugin/ApiChecker.cs index 778977d3..eeb81734 100644 --- a/ProjectPlugins/CodexPlugin/ApiChecker.cs +++ b/ProjectPlugins/CodexPlugin/ApiChecker.cs @@ -10,7 +10,7 @@ namespace CodexPlugin public class ApiChecker { // - private const string OpenApiYamlHash = "69-7C-8A-AC-87-6E-E2-D1-C4-C2-7B-C7-79-6F-15-03-38-5B-18-3D-40-7D-33-A6-62-7B-33-55-0A-4D-64-8B"; + private const string OpenApiYamlHash = "00-7D-C3-0B-D2-23-D6-6C-CA-C2-43-D0-9B-B4-63-FC-4F-FE-23-9F-B8-82-5F-3B-3F-6B-4F-1F-11-E9-48-16"; private const string OpenApiFilePath = "/codex/openapi.yaml"; private const string DisableEnvironmentVariable = "CODEXPLUGIN_DISABLE_APICHECK"; diff --git a/ProjectPlugins/CodexPlugin/CodexSetup.cs b/ProjectPlugins/CodexPlugin/CodexSetup.cs index d56c10db..49717272 100644 --- a/ProjectPlugins/CodexPlugin/CodexSetup.cs +++ b/ProjectPlugins/CodexPlugin/CodexSetup.cs @@ -54,6 +54,7 @@ namespace CodexPlugin public CodexLogLevel ContractClock { get; set; } = CodexLogLevel.Warn; public CodexLogLevel? BlockExchange { get; } public CodexLogLevel JsonSerialize { get; set; } = CodexLogLevel.Warn; + public CodexLogLevel MarketplaceInfra { get; set; } = CodexLogLevel.Warn; } public class CodexSetup : CodexStartupConfig, ICodexSetup diff --git a/ProjectPlugins/CodexPlugin/CodexStartupConfig.cs b/ProjectPlugins/CodexPlugin/CodexStartupConfig.cs index 69cdac6e..30948506 100644 --- a/ProjectPlugins/CodexPlugin/CodexStartupConfig.cs +++ b/ProjectPlugins/CodexPlugin/CodexStartupConfig.cs @@ -30,6 +30,7 @@ namespace CodexPlugin { "discv5", "providers", + "routingtable", "manager", "cache", }; @@ -80,12 +81,20 @@ namespace CodexPlugin "json", "serialization" }; + var marketplaceInfraTopics = new[] + { + "JSONRPC-WS-CLIENT", + "JSONRPC-HTTP-CLIENT", + "codex", + "repostore" + }; level = $"{level};" + $"{CustomTopics.DiscV5.ToString()!.ToLowerInvariant()}:{string.Join(",", discV5Topics)};" + $"{CustomTopics.Libp2p.ToString()!.ToLowerInvariant()}:{string.Join(",", libp2pTopics)};" + $"{CustomTopics.ContractClock.ToString().ToLowerInvariant()}:{string.Join(",", contractClockTopics)};" + - $"{CustomTopics.JsonSerialize.ToString().ToLowerInvariant()}:{string.Join(",", jsonSerializeTopics)}"; + $"{CustomTopics.JsonSerialize.ToString().ToLowerInvariant()}:{string.Join(",", jsonSerializeTopics)};" + + $"{CustomTopics.MarketplaceInfra.ToString().ToLowerInvariant()}:{string.Join(",", marketplaceInfraTopics)}"; if (CustomTopics.BlockExchange != null) {