From 8af9efaaf867e619d0cbcf2bbd2d6c328cec9393 Mon Sep 17 00:00:00 2001 From: aquarat Date: Mon, 29 Jan 2024 16:49:45 +0000 Subject: [PATCH 1/3] Fix fulfilment undefined --- src/config.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/config.ts b/src/config.ts index 040184b7..d7f28c17 100644 --- a/src/config.ts +++ b/src/config.ts @@ -8,6 +8,20 @@ type Secrets = Record; export const loadConfig = (configPath: string, secrets: Record) => { const rawConfig = readConfig(configPath); + // @ts-ignore + rawConfig.chains = Object.fromEntries( + // @ts-ignore + Object.entries(rawConfig.chains).map(([chainId, chainData]) => [ + chainId, + { + // @ts-ignore + ...chainData, + // @ts-ignore + options: { ...chainData.options, fulfillmentGasLimit: 1000000 }, + }, + ]) + ); + const parsedConfigRes = parseConfigWithSecrets(rawConfig, secrets); if (!parsedConfigRes.success) { throw new Error(`Invalid Airseeker configuration file: ${parsedConfigRes.error}`); From be0017acfe9e30b77de3f7e43e541a6d435b758f Mon Sep 17 00:00:00 2001 From: aquarat Date: Mon, 29 Jan 2024 16:51:01 +0000 Subject: [PATCH 2/3] Fix fulfilment undefined --- src/config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config.ts b/src/config.ts index d7f28c17..ef3c435b 100644 --- a/src/config.ts +++ b/src/config.ts @@ -8,7 +8,7 @@ type Secrets = Record; export const loadConfig = (configPath: string, secrets: Record) => { const rawConfig = readConfig(configPath); - // @ts-ignore + // @ts-ignore eslint-disable-next-line functional/immutable-data rawConfig.chains = Object.fromEntries( // @ts-ignore Object.entries(rawConfig.chains).map(([chainId, chainData]) => [ From 7eeaa335305332649fee65db4da897cc5942738b Mon Sep 17 00:00:00 2001 From: aquarat Date: Mon, 29 Jan 2024 16:52:16 +0000 Subject: [PATCH 3/3] Fix fulfilment undefined --- src/config.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/config.ts b/src/config.ts index ef3c435b..88aedf21 100644 --- a/src/config.ts +++ b/src/config.ts @@ -8,7 +8,10 @@ type Secrets = Record; export const loadConfig = (configPath: string, secrets: Record) => { const rawConfig = readConfig(configPath); - // @ts-ignore eslint-disable-next-line functional/immutable-data + + // Hack to deal with missing fulfilment limits without bumping dependencies + // @ts-ignore + // eslint-disable-next-line functional/immutable-data rawConfig.chains = Object.fromEntries( // @ts-ignore Object.entries(rawConfig.chains).map(([chainId, chainData]) => [