From b30f585333fc6473682eb90f9c6f1d25517dc624 Mon Sep 17 00:00:00 2001 From: Justin Kaseman Date: Tue, 29 Aug 2023 14:43:25 -0400 Subject: [PATCH] (chore): Update Functions Scripts oracle.toml template (#10387) --- core/scripts/functions/templates/oracle.toml | 35 ++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/core/scripts/functions/templates/oracle.toml b/core/scripts/functions/templates/oracle.toml index 10e2164a047..092965ca7a5 100644 --- a/core/scripts/functions/templates/oracle.toml +++ b/core/scripts/functions/templates/oracle.toml @@ -33,3 +33,38 @@ pruneMaxStoredRequests = 20 requestTimeoutBatchLookupSize = 20 requestTimeoutCheckFrequencySec = 10 requestTimeoutSec = 300 +maxRequestSizesList = [30_720, 51_200, 102_400, 204_800, 512_000, 1_048_576, 2_097_152, 3_145_728, 5_242_880, 10_485_760] +maxSecretsSizesList = [10_240, 20_480, 51_200, 102_400, 307_200, 512_000, 1_048_576, 2_097_152] + + [pluginConfig.OnchainAllowlist] + blockConfirmations = 1 + contractAddress = "{{router_contract_address}}" + contractVersion = 1 + updateFrequencySec = 30 + updateTimeoutSec = 10 + + [pluginConfig.RateLimiter] + globalBurst = 5 + globalRPS = 10 + perSenderBurst = 1 + perSenderRPS = 0.2 + + [pluginConfig.S4Constraints] + maxPayloadSizeBytes = 20_000 + maxSlotsPerUser = 5 + + [pluginConfig.decryptionQueueConfig] + completedCacheTimeoutSec = 300 + decryptRequestTimeoutSec = 100 + maxCiphertextBytes = 10_000 + maxCiphertextIdLength = 100 + maxQueueLength = 100 + + [pluginConfig.gatewayConnectorConfig] + AuthMinChallengeLen = 20 + AuthTimestampToleranceSec = 20 + DonID = "{{don_id}}" + NodeAddress = "{{node_eth_address}}" + + [pluginConfig.gatewayConnectorConfig.WsClientConfig] + HandshakeTimeoutMillis = 1_000 \ No newline at end of file