From fcab0c59b9475b4fb1e59ab8a6a4078081d39b56 Mon Sep 17 00:00:00 2001 From: thedriftofwords Date: Tue, 4 Feb 2025 12:56:37 -0500 Subject: [PATCH] Automation billing refactor --- .../components/AutomationConfig.tsx | 133 ++++++++++++++- .../components/AutomationConfigList.tsx | 4 +- .../chainlink-automation-config-2-3-TOBE.json | 30 ++++ .../data/chainlink-automation-config-2-3.json | 158 ++++++++++++++++++ .../data/chainlink-automation-config.json | 72 +++++--- .../chainlink-automation/types/index.ts | 20 +++ 6 files changed, 389 insertions(+), 28 deletions(-) create mode 100644 src/features/chainlink-automation/data/chainlink-automation-config-2-3-TOBE.json create mode 100644 src/features/chainlink-automation/data/chainlink-automation-config-2-3.json diff --git a/src/features/chainlink-automation/components/AutomationConfig.tsx b/src/features/chainlink-automation/components/AutomationConfig.tsx index 32501c3041f..0b0c43eb884 100644 --- a/src/features/chainlink-automation/components/AutomationConfig.tsx +++ b/src/features/chainlink-automation/components/AutomationConfig.tsx @@ -1,6 +1,6 @@ /** @jsxImportSource preact */ import { ethers, BigNumber } from "ethers" -import { ChainlinkAutomationConfig } from "@features/chainlink-automation" +import { ChainlinkAutomationConfig, ChainlinkAutomationConfig_2_3 } from "@features/chainlink-automation" import { Address } from "@components" export const AutomationConfig = ({ @@ -21,7 +21,10 @@ export const AutomationConfig = ({ minUpkeepSpend, maxPerformGas, maxPerformDataSize, + fallbackGasPrice, + fallbackLinkPrice, registrar, + latestVersion } = config return ( @@ -55,7 +58,7 @@ export const AutomationConfig = ({ )} - Payment Premium % + Payment Premium % (LINK) {!paymentPremiumPPB ? : {Math.round(parseInt(paymentPremiumPPB.toString(), 10) / 10000000)}} @@ -86,8 +89,134 @@ export const AutomationConfig = ({ Minimum Upkeep Spend (LINK) {!minUpkeepSpend ? : {ethers.utils.formatEther(BigNumber.from(minUpkeepSpend))}} + + Fallback Gas Price + {!fallbackGasPrice ? : {ethers.utils.formatEther(BigNumber.from(fallbackGasPrice))}} + + + Fallback LINK Price + {!fallbackLinkPrice ? : {ethers.utils.formatEther(BigNumber.from(fallbackLinkPrice))}} + + + Latest Automation Version + {!latestVersion ? : {latestVersion.toLocaleString()}} + ) } + +export const AutomationConfig2_3 = ({ + config, + registryAddress, + getExplorerAddressUrl: getUrl, +}: { + config: ChainlinkAutomationConfig_2_3 + registryAddress: string + getExplorerAddressUrl: (contractAddress: string) => string +}) => { + const { + gasFeePPBLink, + gasFeePPBNative, + maxCheckDataSize, + checkGasLimit, + gasCeilingMultiplier, + minSpendLink, + minSpendNative, + maxPerformGas, + maxPerformDataSize, + fallbackGasPrice, + fallbackLinkPrice, + fallbackNativePrice, + registrar, + latestVersion + } = config + + return ( +
+ + + + + + + + + + + {!registryAddress ? ( + + )} + + + + {!registrar ? ( + + )} + + + + {!gasFeePPBLink ? } + + + + {!gasFeePPBNative ? } + + + + {!maxCheckDataSize ? } + + + + {!checkGasLimit ? } + + + + {!maxPerformGas ? } + + + + {!maxPerformDataSize ? } + + + + {!fallbackGasPrice ? } + + + + {!fallbackLinkPrice ? } + + + + {!fallbackNativePrice ? } + + + + {!gasCeilingMultiplier ? } + + + + {!minSpendLink ? } + + + + {!minSpendNative ? } + + + + {!latestVersion ? } + + +
ItemValue
Registry Address + ) : ( + +
+
Registrar Address + ) : ( + +
+
Payment Premium % (LINK) : {Math.round(parseInt(gasFeePPBLink.toString(), 10) / 10000000)}
Payment Premium % (Native) : {Math.round(parseInt(gasFeePPBNative.toString(), 10) / 10000000)}
Maximum Check Data Size : {maxCheckDataSize.toLocaleString()}
Check Gas Limit : {checkGasLimit.toLocaleString()}
Perform Gas Limit : {maxPerformGas.toLocaleString()}
Maximum Perform Data Size : {maxPerformDataSize.toLocaleString()}
Fallback Gas Price : {ethers.utils.formatEther(BigNumber.from(fallbackGasPrice))}
Fallback LINK Price : {ethers.utils.formatEther(BigNumber.from(fallbackLinkPrice))}
Fallback Native Price : {ethers.utils.formatEther(BigNumber.from(fallbackNativePrice))}
Gas Ceiling Multiplier : {gasCeilingMultiplier.toLocaleString()}
Minimum Upkeep Spend (LINK) : {ethers.utils.formatEther(BigNumber.from(minSpendLink))}
Minimum Upkeep Spend (Native) : {ethers.utils.formatEther(BigNumber.from(minSpendNative))}
Latest Automation Version : {latestVersion.toLocaleString()}
+
+ ) +} \ No newline at end of file diff --git a/src/features/chainlink-automation/components/AutomationConfigList.tsx b/src/features/chainlink-automation/components/AutomationConfigList.tsx index 419dc6a342c..d4c42371328 100644 --- a/src/features/chainlink-automation/components/AutomationConfigList.tsx +++ b/src/features/chainlink-automation/components/AutomationConfigList.tsx @@ -1,5 +1,5 @@ /** @jsxImportSource preact */ -import { AutomationConfig, chainlinkAutomationConfig, automationAddresses } from "@features/chainlink-automation" +import { AutomationConfig, AutomationConfig2_3, chainlinkAutomationConfig, automationAddresses } from "@features/chainlink-automation" import { SupportedChain, SupportedTechnology } from "@config" import { getTitle, getExplorer, getExplorerAddressUrl, normalizeConfig } from "@features/utils" import { FunctionComponent } from "preact" @@ -95,7 +95,7 @@ export const AutomationConfigList = () => { updateTOC={false} key={supportedChain} > - {title === "Fantom mainnet" || title === "Fantom testnet" ? ( + {title === "Fantom" || title === "Fantom Testnet" ? ( <> Creating new Fantom upkeeps is no longer supported. Existing Fantom upkeeps are still supported. diff --git a/src/features/chainlink-automation/data/chainlink-automation-config-2-3-TOBE.json b/src/features/chainlink-automation/data/chainlink-automation-config-2-3-TOBE.json new file mode 100644 index 00000000000..55690c86674 --- /dev/null +++ b/src/features/chainlink-automation/data/chainlink-automation-config-2-3-TOBE.json @@ -0,0 +1,30 @@ +{ + "SCROLL_MAINNET": { + "gasFeePPBLink": 560000000, + "gasFeePPBNative": 560000000, + "maxCheckDataSize": 5000, + "checkGasLimit": 10000000, + "gasCeilingMultiplier": 2, + "minUpkeepSpend": { + "type": "BigNumber", + "hex": "0x16bcc41e90000" + }, + "maxPerformGas": 5000000, + "fallbackGasPrice": { + "type": "BigNumber", + "hex": "12a05f200" + }, + "fallbackLinkPrice": { + "type": "BigNumber", + "hex": "44728f8c" + }, + "fallbackNativePrice": { + "type": "BigNumber", + "hex": "44728f8c" + }, + "maxPerformDataSize": 5000, + "stalenessSeconds": 360000, + "registrar": "0x80C55e674a34FfE730B0357E16e8852B19573f7C", + "latestVersion": "2.3" + } +} diff --git a/src/features/chainlink-automation/data/chainlink-automation-config-2-3.json b/src/features/chainlink-automation/data/chainlink-automation-config-2-3.json new file mode 100644 index 00000000000..999d6c1fcac --- /dev/null +++ b/src/features/chainlink-automation/data/chainlink-automation-config-2-3.json @@ -0,0 +1,158 @@ +{ + "SCROLL_MAINNET": { + "paymentPremiumPPB": 560000000, + "blockCountPerTurn": "Not Applicable", + "maxCheckDataSize": 5000, + "checkGasLimit": 10000000, + "gasCeilingMultiplier": 2, + "minUpkeepSpend": { + "type": "BigNumber", + "hex": "0x16bcc41e90000" + }, + "maxPerformGas": 5000000, + "fallbackGasPrice": { + "type": "BigNumber", + "hex": "12a05f200" + }, + "fallbackLinkPrice": { + "type": "BigNumber", + "hex": "44728f8c" + }, + "maxPerformDataSize": 5000, + "flatFeeMicroLink": 10000, + "stalenessSeconds": 360000, + "registrar": "0x80C55e674a34FfE730B0357E16e8852B19573f7C", + "transcoder": "0x0000000000000000000000000000000000000000", + "latestVersion": "2.3" + }, + "SCROLL_SEPOLIA": { + "paymentPremiumPPB": 500000000, + "blockCountPerTurn": "Not Applicable", + "maxCheckDataSize": 5000, + "checkGasLimit": 10000000, + "gasCeilingMultiplier": 2, + "minUpkeepSpend": { + "type": "BigNumber", + "hex": "0x016345785d8a0000" + }, + "maxPerformGas": 5000000, + "fallbackGasPrice": { + "type": "BigNumber", + "hex": "5f5e100" + }, + "fallbackLinkPrice": { + "type": "BigNumber", + "hex": "4343e8e0" + }, + "maxPerformDataSize": 5000, + "flatFeeMicroLink": 10000, + "stalenessSeconds": 360000, + "registrar": "0x8ee44ab698169a0AcA2571834b19a02d09D818d5", + "transcoder": "0x0000000000000000000000000000000000000000", + "latestVersion": "2.3" + }, + "POLYGON_ZKEVM_MAINNET": { + "paymentPremiumPPB": 560000000, + "blockCountPerTurn": "Not Applicable", + "maxCheckDataSize": 5000, + "checkGasLimit": 10000000, + "gasCeilingMultiplier": 2, + "minUpkeepSpend": { + "type": "BigNumber", + "hex": "0x16bcc41e90000" + }, + "maxPerformGas": 5000000, + "fallbackGasPrice": { + "type": "BigNumber", + "hex": "2540be400" + }, + "fallbackLinkPrice": { + "type": "BigNumber", + "hex": "44728f8c" + }, + "maxPerformDataSize": 5000, + "flatFeeMicroLink": 10000, + "stalenessSeconds": 360000, + "registrar": "0x703C1d261a996755409c74d00871e7D6Af4d9896", + "transcoder": "0x0000000000000000000000000000000000000000", + "latestVersion": "2.3" + }, + "POLYGON_ZKEVM_CARDONA": { + "paymentPremiumPPB": 500000000, + "blockCountPerTurn": "Not Applicable", + "maxCheckDataSize": 5000, + "checkGasLimit": 10000000, + "gasCeilingMultiplier": 2, + "minUpkeepSpend": { + "type": "BigNumber", + "hex": "0x16bcc41e90000" + }, + "maxPerformGas": 5000000, + "fallbackGasPrice": { + "type": "BigNumber", + "hex": "5f5e100" + }, + "fallbackLinkPrice": { + "type": "BigNumber", + "hex": "4343e8e0" + }, + "maxPerformDataSize": 5000, + "flatFeeMicroLink": 10000, + "stalenessSeconds": 360000, + "registrar": "0x703C1d261a996755409c74d00871e7D6Af4d9896", + "transcoder": "0x0000000000000000000000000000000000000000", + "latestVersion": "2.3" + }, + "ZKSYNC_MAINNET": { + "paymentPremiumPPB": 500000000, + "blockCountPerTurn": "Not Applicable", + "maxCheckDataSize": 5000, + "checkGasLimit": 10000000, + "gasCeilingMultiplier": 2, + "minUpkeepSpend": { + "type": "BigNumber", + "hex": "0x16bcc41e90000" + }, + "maxPerformGas": 5000000, + "fallbackGasPrice": { + "type": "BigNumber", + "hex": "7270e00" + }, + "fallbackLinkPrice": { + "type": "BigNumber", + "hex": "44728f8c" + }, + "maxPerformDataSize": 5000, + "flatFeeMicroLink": 10000, + "stalenessSeconds": 360000, + "registrar": "0x7415C4E9758F3cA26F1a4a8F11d885eadEF68939", + "transcoder": "0x0000000000000000000000000000000000000000", + "latestVersion": "2.3" + }, + "ZKSYNC_SEPOLIA": { + "paymentPremiumPPB": 300000000, + "blockCountPerTurn": "Not Applicable", + "maxCheckDataSize": 5000, + "checkGasLimit": 10000000, + "gasCeilingMultiplier": 2, + "minUpkeepSpend": { + "type": "BigNumber", + "hex": "0x16bcc41e90000" + }, + "maxPerformGas": 5000000, + "fallbackGasPrice": { + "type": "BigNumber", + "hex": "17d7840" + }, + "fallbackLinkPrice": { + "type": "BigNumber", + "hex": "4343e8e0" + }, + "maxPerformDataSize": 5000, + "flatFeeMicroLink": 10000, + "stalenessSeconds": 360000, + "registrar": "0xC23751714a66B9824Fa6724A7B08635D480e88cD", + "transcoder": "0x0000000000000000000000000000000000000000", + "latestVersion": "2.3" + } +} diff --git a/src/features/chainlink-automation/data/chainlink-automation-config.json b/src/features/chainlink-automation/data/chainlink-automation-config.json index 8dc4a88936f..95c1bd1f6e6 100644 --- a/src/features/chainlink-automation/data/chainlink-automation-config.json +++ b/src/features/chainlink-automation/data/chainlink-automation-config.json @@ -22,7 +22,8 @@ "flatFeeMicroLink": 0, "stalenessSeconds": 90000, "registrar": "0x6B0B234fB2f380309D47A7E9391E29E9a179395a", - "transcoder": "0x0000000000000000000000000000000000000000" + "transcoder": "0x0000000000000000000000000000000000000000", + "latestVersion": "2.1" }, "ETHEREUM_SEPOLIA": { "paymentPremiumPPB": 200000000, @@ -47,7 +48,8 @@ "flatFeeMicroLink": 10000, "stalenessSeconds": 90000, "registrar": "0xb0E49c5D0d05cbc241d68c05BC5BA1d1B7B72976", - "transcoder": "0x0000000000000000000000000000000000000000" + "transcoder": "0x0000000000000000000000000000000000000000", + "latestVersion": "2.1" }, "BNB_MAINNET": { "paymentPremiumPPB": 300000000, @@ -72,7 +74,8 @@ "flatFeeMicroLink": 0, "stalenessSeconds": 90000, "registrar": "0xf671F60bCC964B309D22424886FF202807381B32", - "transcoder": "0x0000000000000000000000000000000000000000" + "transcoder": "0x0000000000000000000000000000000000000000", + "latestVersion": "2.1" }, "BNB_TESTNET": { "paymentPremiumPPB": 300000000, @@ -97,7 +100,8 @@ "flatFeeMicroLink": 0, "stalenessSeconds": 90000, "registrar": "0x0631ea498c2Cd8371B020b9eC03f5F779174562B", - "transcoder": "0x0000000000000000000000000000000000000000" + "transcoder": "0x0000000000000000000000000000000000000000", + "latestVersion": "2.1" }, "POLYGON_MAINNET": { "paymentPremiumPPB": 700000000, @@ -122,7 +126,8 @@ "flatFeeMicroLink": 0, "stalenessSeconds": 90000, "registrar": "0x0Bc5EDC7219D272d9dEDd919CE2b4726129AC02B", - "transcoder": "0xdCcBef386c2f9A8C8d38d33bCD424Ddbb064bb6d" + "transcoder": "0xdCcBef386c2f9A8C8d38d33bCD424Ddbb064bb6d", + "latestVersion": "2.1" }, "POLYGON_AMOY": { "paymentPremiumPPB": 300000000, @@ -147,7 +152,8 @@ "flatFeeMicroLink": 10000, "stalenessSeconds": 360000, "registrar": "0x99083A4bb154B0a3EC7a0D1eb40370C892Db4225", - "transcoder": "0x703C1d261a996755409c74d00871e7D6Af4d9896" + "transcoder": "0x703C1d261a996755409c74d00871e7D6Af4d9896", + "latestVersion": "2.1" }, "AVALANCHE_MAINNET": { "paymentPremiumPPB": 400000000, @@ -172,7 +178,8 @@ "flatFeeMicroLink": 0, "stalenessSeconds": 90000, "registrar": "0x5Cb7B29e621810Ce9a04Bee137F8427935795d00", - "transcoder": "0x0000000000000000000000000000000000000000" + "transcoder": "0x0000000000000000000000000000000000000000", + "latestVersion": "2.1" }, "AVALANCHE_FUJI": { "paymentPremiumPPB": 400000000, @@ -197,7 +204,8 @@ "flatFeeMicroLink": 0, "stalenessSeconds": 90000, "registrar": "0xD23D3D1b81711D75E1012211f1b65Cc7dBB474e2", - "transcoder": "0x0000000000000000000000000000000000000000" + "transcoder": "0x0000000000000000000000000000000000000000", + "latestVersion": "2.1" }, "FANTOM_MAINNET": { "paymentPremiumPPB": 500000000, @@ -222,7 +230,8 @@ "flatFeeMicroLink": 0, "stalenessSeconds": 90000, "registrar": "0xDb8e8e2ccb5C033938736aa89Fe4fa1eDfD15a1d", - "transcoder": "0x0000000000000000000000000000000000000000" + "transcoder": "0x0000000000000000000000000000000000000000", + "latestVersion": "2.1" }, "FANTOM_TESTNET": { "paymentPremiumPPB": 500000000, @@ -247,7 +256,8 @@ "flatFeeMicroLink": 0, "stalenessSeconds": 90000, "registrar": "0x57A4a13b35d25EE78e084168aBaC5ad360252467", - "transcoder": "0x0000000000000000000000000000000000000000" + "transcoder": "0x0000000000000000000000000000000000000000", + "latestVersion": "2.1" }, "ARBITRUM_MAINNET": { "paymentPremiumPPB": 500000000, @@ -272,7 +282,8 @@ "flatFeeMicroLink": 0, "stalenessSeconds": 90000, "registrar": "0x86EFBD0b6736Bed994962f9797049422A3A8E8Ad", - "transcoder": "0x0000000000000000000000000000000000000000" + "transcoder": "0x0000000000000000000000000000000000000000", + "latestVersion": "2.1" }, "ARBITRUM_SEPOLIA": { "paymentPremiumPPB": 500000000, @@ -297,7 +308,8 @@ "flatFeeMicroLink": 0, "stalenessSeconds": 90000, "registrar": "0x881918E24290084409DaA91979A30e6f0dB52eBe", - "transcoder": "0x0000000000000000000000000000000000000000" + "transcoder": "0x0000000000000000000000000000000000000000", + "latestVersion": "2.1" }, "OPTIMISM_MAINNET": { "paymentPremiumPPB": 500000000, @@ -322,7 +334,8 @@ "flatFeeMicroLink": 0, "stalenessSeconds": 90000, "registrar": "0xe601C5837307f07aB39DEB0f5516602f045BF14f", - "transcoder": "0x395C8461299c9981E9D1A30d116F0c80a927d2A4" + "transcoder": "0x395C8461299c9981E9D1A30d116F0c80a927d2A4", + "latestVersion": "2.1" }, "OPTIMISM_SEPOLIA": { "paymentPremiumPPB": 500000000, @@ -347,7 +360,8 @@ "flatFeeMicroLink": 10000, "stalenessSeconds": 90000, "registrar": "0x110Bd89F0B62EA1598FfeBF8C0304c9e58510Ee5", - "transcoder": "0x245675A2f4b4C1052C880cD600DCF04D58520eE7" + "transcoder": "0x245675A2f4b4C1052C880cD600DCF04D58520eE7", + "latestVersion": "2.1" }, "BASE_MAINNET": { "paymentPremiumPPB": 500000000, @@ -372,7 +386,8 @@ "flatFeeMicroLink": 0, "stalenessSeconds": 90000, "registrar": "0xE28Adc50c7551CFf69FCF32D45d037e5F6554264", - "transcoder": "0x395C8461299c9981E9D1A30d116F0c80a927d2A4" + "transcoder": "0x395C8461299c9981E9D1A30d116F0c80a927d2A4", + "latestVersion": "2.1" }, "BASE_SEPOLIA": { "paymentPremiumPPB": 500000000, @@ -397,7 +412,8 @@ "flatFeeMicroLink": 20000, "stalenessSeconds": 360000, "registrar": "0xf28D56F3A707E25B71Ce529a21AF388751E1CF2A", - "transcoder": "0x0000000000000000000000000000000000000000" + "transcoder": "0x0000000000000000000000000000000000000000", + "latestVersion": "2.1" }, "GNOSIS_MAINNET": { "paymentPremiumPPB": 1000000000, @@ -422,7 +438,8 @@ "flatFeeMicroLink": 0, "stalenessSeconds": 360000, "registrar": "0x0F7E163446AAb41DB5375AbdeE2c3eCC56D9aA32", - "transcoder": "0x35e466d3B56df566B8E0acAc4751Ed15eCCC155F" + "transcoder": "0x35e466d3B56df566B8E0acAc4751Ed15eCCC155F", + "latestVersion": "2.1" }, "GNOSIS_CHIADO": { "paymentPremiumPPB": 300000000, @@ -447,7 +464,8 @@ "flatFeeMicroLink": 10000, "stalenessSeconds": 360000, "registrar": "0xcfB98e8E3AB99217a0E61C29f86ba3a4B79037BF", - "transcoder": "0x35e466d3B56df566B8E0acAc4751Ed15eCCC155F" + "transcoder": "0x35e466d3B56df566B8E0acAc4751Ed15eCCC155F", + "latestVersion": "2.1" }, "SCROLL_MAINNET": { "paymentPremiumPPB": 560000000, @@ -472,7 +490,8 @@ "flatFeeMicroLink": 10000, "stalenessSeconds": 360000, "registrar": "0x80C55e674a34FfE730B0357E16e8852B19573f7C", - "transcoder": "0x0000000000000000000000000000000000000000" + "transcoder": "0x0000000000000000000000000000000000000000", + "latestVersion": "2.3" }, "SCROLL_SEPOLIA": { "paymentPremiumPPB": 500000000, @@ -497,7 +516,8 @@ "flatFeeMicroLink": 10000, "stalenessSeconds": 360000, "registrar": "0x8ee44ab698169a0AcA2571834b19a02d09D818d5", - "transcoder": "0x0000000000000000000000000000000000000000" + "transcoder": "0x0000000000000000000000000000000000000000", + "latestVersion": "2.3" }, "POLYGON_ZKEVM_MAINNET": { "paymentPremiumPPB": 560000000, @@ -522,7 +542,8 @@ "flatFeeMicroLink": 10000, "stalenessSeconds": 360000, "registrar": "0x703C1d261a996755409c74d00871e7D6Af4d9896", - "transcoder": "0x0000000000000000000000000000000000000000" + "transcoder": "0x0000000000000000000000000000000000000000", + "latestVersion": "2.3" }, "POLYGON_ZKEVM_CARDONA": { "paymentPremiumPPB": 500000000, @@ -547,7 +568,8 @@ "flatFeeMicroLink": 10000, "stalenessSeconds": 360000, "registrar": "0x703C1d261a996755409c74d00871e7D6Af4d9896", - "transcoder": "0x0000000000000000000000000000000000000000" + "transcoder": "0x0000000000000000000000000000000000000000", + "latestVersion": "2.3" }, "ZKSYNC_MAINNET": { "paymentPremiumPPB": 500000000, @@ -572,7 +594,8 @@ "flatFeeMicroLink": 10000, "stalenessSeconds": 360000, "registrar": "0x7415C4E9758F3cA26F1a4a8F11d885eadEF68939", - "transcoder": "0x0000000000000000000000000000000000000000" + "transcoder": "0x0000000000000000000000000000000000000000", + "latestVersion": "2.3" }, "ZKSYNC_SEPOLIA": { "paymentPremiumPPB": 300000000, @@ -597,6 +620,7 @@ "flatFeeMicroLink": 10000, "stalenessSeconds": 360000, "registrar": "0xC23751714a66B9824Fa6724A7B08635D480e88cD", - "transcoder": "0x0000000000000000000000000000000000000000" + "transcoder": "0x0000000000000000000000000000000000000000", + "latestVersion": "2.3" } } diff --git a/src/features/chainlink-automation/types/index.ts b/src/features/chainlink-automation/types/index.ts index 1ed12bdbe3c..63be34382a8 100644 --- a/src/features/chainlink-automation/types/index.ts +++ b/src/features/chainlink-automation/types/index.ts @@ -67,5 +67,25 @@ export type ChainlinkAutomationConfig = { stalenessSeconds: number registrar: string transcoder: string + latestVersion: string +} + +export type ChainlinkAutomationConfig_2_3 = { + gasFeePPBLink: number | "Not Applicable" + gasFeePPBNative: number | "Not Applicable" + maxCheckDataSize: number | "Not Applicable" + checkGasLimit: number + gasCeilingMultiplier: number + minSpendLink: { type: "BigNumber"; hex: string } | "Not Applicable" + minSpendNative: { type: "BigNumber"; hex: string } | "Not Applicable" + maxPerformGas: number + maxPerformDataSize: number | "Not Applicable" + fallbackGasPrice: { type: "BigNumber"; hex: string } + fallbackLinkPrice: { type: "BigNumber"; hex: string } + fallbackNativePrice: { type: "BigNumber"; hex: string } + stalenessSeconds: number + registrar: string + latestVersion: string } export type ChainlinkAutomationConfigs = Partial> +export type ChainlinkAutomationConfigs_2_3 = Partial>