From 8886a081a97f39a7a54ca79c8bd518ac68e61fe1 Mon Sep 17 00:00:00 2001 From: peachbits Date: Thu, 26 Sep 2024 12:41:07 -0700 Subject: [PATCH] Add Ethereum mainnet staking --- CHANGELOG.md | 1 + .../stake-plugins/generic/pluginInfo.ts | 4 ++-- .../generic/pluginInfo/ethereumKilnPool.ts | 22 +++++++++++++++++++ 3 files changed, 25 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8fd656c435f..bfa2e756119 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## Unreleased +- changed: Enable Ethereum staking - changed: Navigate to wallet list after restoring wallets - fixed: Use account default fiat for transaction fee display in `SweepPrivateKeyCalculateFeeScene` diff --git a/src/plugins/stake-plugins/generic/pluginInfo.ts b/src/plugins/stake-plugins/generic/pluginInfo.ts index 46aa3903532..2b0a1a766ea 100644 --- a/src/plugins/stake-plugins/generic/pluginInfo.ts +++ b/src/plugins/stake-plugins/generic/pluginInfo.ts @@ -1,8 +1,8 @@ import { kilncardanopool } from './pluginInfo/cardanoKilnPool' import { coreumnative } from './pluginInfo/coreumNativeStaking' -// import { kilnpool } from './pluginInfo/ethereumKilnPool' +import { kilnpool } from './pluginInfo/ethereumKilnPool' import { glifpoolCalibration } from './pluginInfo/filecoinCalibrationGlifpool' import { glifpool } from './pluginInfo/filecoinGlifpool' import { tarotpool } from './pluginInfo/optimismTarotPool' -export const genericPlugins = [glifpool, glifpoolCalibration, tarotpool, coreumnative, kilncardanopool] +export const genericPlugins = [glifpool, glifpoolCalibration, tarotpool, coreumnative, kilnpool, kilncardanopool] diff --git a/src/plugins/stake-plugins/generic/pluginInfo/ethereumKilnPool.ts b/src/plugins/stake-plugins/generic/pluginInfo/ethereumKilnPool.ts index 59e50c482ef..9167f13f06b 100644 --- a/src/plugins/stake-plugins/generic/pluginInfo/ethereumKilnPool.ts +++ b/src/plugins/stake-plugins/generic/pluginInfo/ethereumKilnPool.ts @@ -24,6 +24,28 @@ const kilnPolicyConfig: Array hideUnstakeAndClaimAction: true, stakeAssets: [{ pluginId: 'holesky', currencyCode: 'ETH' }], rewardAssets: [{ pluginId: 'holesky', currencyCode: 'ETH' }] + }, + { + stakePolicyId: 'ethereum_kiln', + stakeProviderInfo: { + displayName: 'Ethereum Pooled Staking (Kiln)', + pluginId: 'ethereum', + stakeProviderId: 'ethereum_pooled_kiln' + }, + parentPluginId: 'ethereum', + parentCurrencyCode: 'ETH', + adapterConfig: { + exitQueueAddress: '0x8d6Fd650500f82c7D978a440348e5a9b886943bF', + type: 'ethereum-pooled-kiln', + apiKey: ENV.KILN_MAINNET_API_KEY, + baseUrl: 'https://api.kiln.fi', + contractAddress: '0xEb4d67DBa18b3bE04484dFC7B7c2780E8D32A79d', + pluginId: 'ethereum', + rpcProviderUrls: [`https://ethereum-rpc.publicnode.com`, 'https://1rpc.io/eth'] + }, + hideUnstakeAndClaimAction: true, + stakeAssets: [{ pluginId: 'ethereum', currencyCode: 'ETH' }], + rewardAssets: [{ pluginId: 'ethereum', currencyCode: 'ETH' }] } ]