Skip to content

Commit

Permalink
refactor: Remove PRE application details card
Browse files Browse the repository at this point in the history
  • Loading branch information
theref committed Aug 31, 2023
1 parent 729f830 commit 01fda78
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 31 deletions.
15 changes: 7 additions & 8 deletions .env
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
REACT_APP_SUPPORTED_CHAIN_ID=1337
REACT_APP_ETH_HOSTNAME_HTTP=http://localhost:8545
REACT_APP_ETH_HOSTNAME_WS=ws://localhost:8545
REACT_APP_SUPPORTED_CHAIN_ID=5
REACT_APP_ETH_HOSTNAME_HTTP=https://goerli.infura.io/v3/663d60ae0f504f168b362c2bda60f81c
REACT_APP_ETH_HOSTNAME_WS=wss://goerli.infura.io/v3/663d60ae0f504f168b362c2bda60f81c
REACT_APP_MULTICALL_ADDRESS=$MULTICALL_ADDRESS

REACT_APP_FEATURE_FLAG_TBTC_V2=true
Expand All @@ -9,12 +9,11 @@ REACT_APP_FEATURE_FLAG_MULTI_APP_STAKING=true
REACT_APP_FEATURE_FLAG_FEEDBACK_MODULE=false
REACT_APP_FEATURE_FLAG_POSTHOG=false
REACT_APP_FEATURE_FLAG_SENTRY=$SENTRY_SUPPORT
REACT_APP_FEATURE_FLAG_LEDGER_LIVE=true
REACT_APP_SENTRY_DSN=$SENTRY_DSN

REACT_APP_ELECTRUM_PROTOCOL=$ELECTRUM_PROTOCOL
REACT_APP_ELECTRUM_HOST=$ELECTRUM_HOST
REACT_APP_ELECTRUM_PORT=$ELECTRUM_PORT
REACT_APP_MOCK_BITCOIN_CLIENT=true
REACT_APP_ELECTRUM_PROTOCOL=wss
REACT_APP_ELECTRUM_HOST=electrumx-server.test.tbtc.network
REACT_APP_ELECTRUM_PORT=8443
REACT_APP_MOCK_BITCOIN_CLIENT=false

REACT_APP_WALLET_CONNECT_PROJECT_ID=$WALLET_CONNECT_PROJECT_ID
23 changes: 0 additions & 23 deletions src/pages/Staking/HowItWorks/StakingApplications/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ import { Link as RouterLink } from "react-router-dom"
import { ColorMode, List, ListItem, useColorMode } from "@chakra-ui/react"
import ButtonLink from "../../../../components/ButtonLink"

const preNodeSteps = ["Run a PRE node", "Have a staked balance"]
const randomBeaconNodeSteps = [
"Run a Random Beacon node",
"Authorize a portion of your stake to Random Beacon",
Expand Down Expand Up @@ -62,10 +61,6 @@ const iconMap: { [iconName: string]: Record<ColorMode, string> } = {
light: tbtcAppIllustrationLight,
dark: tbtcAppIllustrationDark,
},
pre: {
light: preAppIllustrationLight,
dark: preAppIllustrationDark,
},
randomBeacon: {
light: randomBeaconAppIllustrationLight,
dark: randomBeaconAppIllustrationDark,
Expand Down Expand Up @@ -199,24 +194,6 @@ const StakingApplications: PageComponent = () => {
}
rewardSteps={randomBeaconNodeSteps}
/>
<ApplicationDetailsCard
preTitle="PRE APP"
title="Proxy Re-Encryption, or PRE, is cryptographic middleware for developing privacy-preserving applications."
description="PRE is a scalable end-to-end encryption protocol that allows a proxy entity to transform (or re-encrypt) encrypted data from one encryption key to another, without revealing the plaintext data. The nodes on the Threshold Network act as these proxy entities and use threshold cryptography to securely and cooperatively re-encrypt data for recipients based on access conditions defined by the data owner. "
imgSrc={iconMap.pre[colorMode]}
ctaButtons={
<ButtonLink
isExternal
href={ExternalHref.preNodeSetup}
mb={6}
isFullWidth
variant="outline"
>
PRE Node Docs
</ButtonLink>
}
rewardSteps={preNodeSteps}
/>
</Stack>
</Card>
)
Expand Down

0 comments on commit 01fda78

Please sign in to comment.