Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update staking providers list #596

Merged
merged 2 commits into from
Aug 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 17 additions & 49 deletions src/components/StakingProvidersList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,10 @@ import { List, ListProps } from "@threshold-network/components"
import { ExternalHref } from "../../enums"
import DetailedLinkListItem from "../DetailedLinkListItem"
import StakedLogo from "../../static/images/stakingProviders/StakedLogo.png"
import BisonTrailsLogo from "../../static/images/stakingProviders/BisonTrailsLogo.png"
import BoarLogo from "../../static/images/stakingProviders/BoarLogo.png"
import FigmentLogo from "../../static/images/stakingProviders/FigmentLogo.png"
import LowFeeValidationLogo from "../../static/images/stakingProviders/LowFeeValidationLogo.png"
import AnkrLogo from "../../static/images/stakingProviders/AnkrLogo.png"
import P2PValidatorLogo from "../../static/images/stakingProviders/P2PValidatorLogo.png"
import InfStonesLogo from "../../static/images/stakingProviders/InfStonesLogo.png"
import DelightLogo from "../../static/images/stakingProviders/DelightLogo.svg"

type ProviderItem = {
name: string
Expand All @@ -36,64 +33,35 @@ const providers: ProviderItem[] = [
imgSrc: BoarLogo,
},
{
name: "P2P Validator",
email: "hello@p2p.org",
name: "DELIGHT",
email: "contact@delightlabs.io",
link: ExternalHref.delight,
imgSrc: DelightLogo,
},
{
name: "InfStones",
email: "sales@infstones.com",
link: ExternalHref.infStones,
imgSrc: InfStonesLogo,
},
{
name: "P2P",
email: "am@p2p.org",
link: ExternalHref.p2pValidator,
imgSrc: P2PValidatorLogo,
},
{
name: "Staked",
email: "togilvie@staked.us",
email: "staked@staked.us",
link: ExternalHref.stakedUs,
imgSrc: StakedLogo,
},
{
name: "BisonTrails",
email: "viktor@bisontrails.co",
link: ExternalHref.bisonTrails,
imgSrc: BisonTrailsLogo,
},
{
name: "Figment",
email: "yannick@figment.io",
link: ExternalHref.figment,
imgSrc: FigmentLogo,
},
{
name: "Low Fee Validation",
email: "eduardo@lowfeevalidation.com",
link: ExternalHref.lowFeeValidation,
imgSrc: LowFeeValidationLogo,
},
]

const preOnlyProviders = [
{
name: "Ankr",
email: "sales@ankr.com",
link: ExternalHref.ankr,
imgSrc: AnkrLogo,
},
{
name: "InfStones",
email: "contact@infstones.com",
link: ExternalHref.infStones,
imgSrc: InfStonesLogo,
},
]

export const AllAppsProvidersList: FC<ListProps> = (props) => {
return (
<List mt="6" spacing="4" {...props}>
<List spacing="4" {...props}>
{providers.map(renderProviderListItem)}
</List>
)
}

export const PreOnlyProvidersList: FC<ListProps> = (props) => {
return (
<List mt="6" spacing="4" {...props}>
{preOnlyProviders.map(renderProviderListItem)}
</List>
)
}
1 change: 1 addition & 0 deletions src/enums/externalHref.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,5 @@ export enum ExternalHref {
btcConfirmations = "https://en.bitcoin.it/wiki/Confirmation",
mintersAndGuardiansDocs = "https://blog.threshold.network/minters-guardians-and-a-strong-tbtc/",
tBTCDuneDashboard = "https://dune.com/threshold/tbtc",
delight = "https://delightlabs.io",
}

This file was deleted.

4 changes: 0 additions & 4 deletions src/pages/Staking/HowItWorks/StakingOverview/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { useTStakingContract } from "../../../../web3/hooks"
import { AuthorizingApplicationsCard } from "./AuthorizingApplicationsCard"
import { PageComponent } from "../../../../types"
import { featureFlags } from "../../../../constants"
import { ProvidersCardNonMAS } from "./ProvidersCardNonMAS"

const gridTemplate = featureFlags.MULTI_APP_STAKING
? {
Expand Down Expand Up @@ -71,9 +70,6 @@ const StakingOverview: PageComponent = () => {
)}
<StakingActionsCard gridArea="staking-actions" />
<AboutAddressesCard gridArea="addresses" alignSelf="flex-start" />
{!featureFlags.MULTI_APP_STAKING && (
<ProvidersCardNonMAS gridArea="providers-card-non-mas" />
)}
</Grid>
)
}
Expand Down
12 changes: 1 addition & 11 deletions src/pages/Staking/HowItWorks/StakingProviders/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@ import {
} from "@threshold-network/components"
import { PageComponent } from "../../../../types"
import { featureFlags } from "../../../../constants"
import {
AllAppsProvidersList,
PreOnlyProvidersList,
} from "../../../../components/StakingProvidersList"
import { AllAppsProvidersList } from "../../../../components/StakingProvidersList"

const StakingProviders: PageComponent = () => {
return (
Expand All @@ -32,19 +29,12 @@ const StakingProviders: PageComponent = () => {
"providers"
"pre-providers"
`,
xl: `"providers pre-providers"`,
}}
gridGap="4"
>
<Card gridArea="providers" h="fit-content">
<BoxLabel status="secondary">All Applications</BoxLabel>
<AllAppsProvidersList />
</Card>

<Card gridArea="pre-providers" h="fit-content">
<BoxLabel status="secondary">Pre only</BoxLabel>
<PreOnlyProvidersList />
</Card>
</Grid>
</Card>
)
Expand Down
Binary file removed src/static/images/stakingProviders/AnkrLogo.png
Binary file not shown.
Binary file not shown.
13 changes: 13 additions & 0 deletions src/static/images/stakingProviders/DelightLogo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed src/static/images/stakingProviders/FigmentLogo.png
Binary file not shown.
Binary file not shown.
Loading