Skip to content

Commit

Permalink
Merge pull request #185 from palladians/feat/add-block-validators-list
Browse files Browse the repository at this point in the history
feat(staking): add validators list
  • Loading branch information
mrcnk authored Jun 29, 2024
2 parents dc7dad6 + 5f94a54 commit 025d79b
Show file tree
Hide file tree
Showing 23 changed files with 150 additions and 81 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ Project maintainers may be able to provide more clarification on what is a repre
### Enforcement

Instances of abusive, harassing,
or otherwise unacceptable behavior should be reported to the project team at team@pallad.xyz.
or otherwise unacceptable behavior should be reported to the project team at team@palladians.xyz.
All complaints will be reviewed, investigated, and we will respond to the circumstances.
The project team is obligated to maintain confidentiality concerning the reporter of an incident.

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ We specified contributing guidelines. Please refer to them before starting contr

## Links 🌍

[pallad.xyz - The official website of Pallad](https://pallad.xyz/)
[pallad.co - The official website of Pallad](https://get.pallad.co/website)

[Ladle](https://palladians.github.io/pallad/)

Expand Down
4 changes: 2 additions & 2 deletions apps/extension/.env.example
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
VITE_APP_MODE=web
VITE_APP_DEFAULT_NETWORK=Devnet

VITE_APP_MINA_PROXY_MAINNET_URL=https://api.minascan.io/node/mainnet/v1/graphql
VITE_APP_MINA_PROXY_MAINNET_URL=https://pallad.co/api/obscura/mainnet.json

VITE_APP_MINA_PROXY_DEVNET_URL=https://api.minascan.io/node/devnet/v1/graphql
VITE_APP_MINA_PROXY_DEVNET_URL=https://pallad.co/api/obscura/devnet.json
2 changes: 1 addition & 1 deletion apps/extension/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@palladxyz/extension",
"version": "0.5.3",
"version": "0.5.4",
"type": "module",
"scripts": {
"dev": "vite",
Expand Down
41 changes: 19 additions & 22 deletions apps/extension/public/pallad_rpc.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,13 @@ const callPalladAsync = ({ method, payload }) =>
})
const debouncedCall = debounce(callPalladAsync, 300, false)
const init = () => {
window.mina = {
wallet: {
name: "Pallad",
icon: "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTY1IiBoZWlnaHQ9IjIwMCIgdmlld0JveD0iMCAwIDE2NSAyMDAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik04Mi4zNTMgMTg4LjIzNkM4Mi4zNTMgMTg4LjIzNiAxNTIuOTQxIDE1Mi45NDIgMTUyLjk0MSAxMDAuMDAxVjM4LjIzNjJMODIuMzUzIDExLjc2NTZMMTEuNzY0OCAzOC4yMzYyVjEwMC4wMDFDMTEuNzY0OCAxNTIuOTQyIDgyLjM1MyAxODguMjM2IDgyLjM1MyAxODguMjM2WiIgc3Ryb2tlPSJ1cmwoI3BhaW50MF9saW5lYXJfMTUxXzQ5NikiIHN0cm9rZS13aWR0aD0iMTcuNjc4NiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+CjxwYXRoIGQ9Ik02OS4zNTA2IDQ4LjYzNzdDNzEuMTE5NSA0NC4xMzYzIDc1LjQ2MzYgNDEuMTc2MyA4MC4zMDAxIDQxLjE3NjNIODIuMzEwMUM4Ny4xNDE4IDQxLjE3NjMgOTEuNDgxOCA0NC4xMyA5My4yNTQyIDQ4LjYyNDVMMTIxLjA5NSAxMTkuMjEzQzEyNC4xMzkgMTI2LjkzMyAxMTguNDQ5IDEzNS4yOTQgMTEwLjE1MSAxMzUuMjk0SDEwOC4wODdMNzguNjAxMiA1NC45OTc3SDgzLjQ3MThMNTMuOTg2MSAxMzUuMjk0SDUyLjU1ODVDNDQuMjY1NyAxMzUuMjk0IDM4LjU3NTcgMTI2Ljk0NCA0MS42MDkgMTE5LjIyNkw2OS4zNTA2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SA5NC41QzIxOSA5MCAyMjUgOTAgMjI1IDkwTDIxMCA5MFoiIGZpbGw9IiMyNTIzM0EiLz4KPHBhdGggZD0iTTkwIDIxMEwxMDUgMjEwQzEwNSAyMTAgOTkgMjEwIDk0LjUgMjA1LjVDOTAgMjAxIDkwIDE5NSA5MCAxOTVMOTAgMjEwWiIgZmlsbD0iIzI1MjMzQSIvPgo8cGF0aCBkPSJNOTAgMjEwTDkwIDE5NUM5MCAxOTUgOTAgMjAxIDg1LjUgMjA1LjVDODEgMjEwIDc1IDIxMCA3NSAyMTBMOTAgMjEwWiIgZmlsbD0iIzI1MjMzQSIvPgo8cGF0aCBkPSJNOTAgMjEwTDkwIDIyNUM5MCAyMjUgOTAgMjE5IDk0LjUgMjE0LjVDOTkgMjEwIDEwNSAyMTAgMTA1IDIxMEw5MCAyMTBaIiBmaWxsPSIjMjUyMzNBIi8+CjwvZz4KPGRlZnM+CjxjbGlwUGF0aCBpZD0iY2xpcDBfMTk4XzI0Njk1Ij4KPHJlY3Qgd2lkdGg9IjMwMCIgaGVpZ2h0PSIzMDAiIHJ4PSI0MCIgZmlsbD0id2hpdGUiLz4KPC9jbGlwUGF0aD4KPC9kZWZzPgo8L3N2Zz4K",
rdns: "co.pallad.wallet",
}
const provider = {
request: async ({ method, params }) =>
debouncedCall({
method,
Expand All @@ -59,9 +61,6 @@ const init = () => {
payload: { origin: window.location.origin },
})
},
otherOn: async () => {
return "hello world!"
},
/*
Note: `listenerId` is used as a placeholder to identify listener functions.
Since functions can't be serialized over postMessage, you need to implement
Expand All @@ -76,26 +75,24 @@ const init = () => {
payload: { event, listenerId },
})
},
/*once: async (event, listenerId) => {
const response = await debouncedCall({
method: 'once',
payload: { event, listenerId }
})
return response
},
removeListener: async (event, listenerId) => {
const response = await debouncedCall({
method: 'removeListener',
payload: { event, listenerId }
})
return response
},*/
off: async (event, listenerId) => {
return debouncedCall({
method: "off",
payload: { event, listenerId },
})
},
}
window.mina = provider
const announceProvider = () => {
window.dispatchEvent(
new CustomEvent("mina:announceProvider", {
detail: Object.freeze({ info, provider }),
}),
)
}
window.addEventListener("mina:requestProvider", (event) => {
announceProvider()
})
announceProvider()
}
init()
3 changes: 2 additions & 1 deletion packages/features/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@palladxyz/features",
"version": "0.5.3",
"version": "0.5.4",
"description": "",
"type": "module",
"module": "dist/index.js",
Expand Down Expand Up @@ -43,6 +43,7 @@
"@palladxyz/persistence": "workspace:*",
"@palladxyz/vault": "workspace:*",
"@total-typescript/ts-reset": "^0.5.1",
"array-shuffle": "^3.0.0",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.0",
"cmdk": "^0.2.0",
Expand Down
1 change: 1 addition & 0 deletions packages/features/src/common/assets/placeholder.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions packages/features/src/components/menu-drawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,14 @@ export const MenuDrawer = () => {
</div>
</div>
<div className="flex flex-col gap-4">
<button
type="button"
className="text-3xl text-left"
onClick={() => navigate("/")}
data-testid="menu/activity"
>
Dashboard
</button>
<button
type="button"
className="text-3xl text-left"
Expand Down
58 changes: 45 additions & 13 deletions packages/features/src/staking/components/block-producer-tile.tsx
Original file line number Diff line number Diff line change
@@ -1,41 +1,73 @@
import PlaceholderImage from "@/common/assets/placeholder.svg?react"
import { useNavigate } from "react-router-dom"

import { formatCompact } from "@/common/lib/numbers"
import { useState } from "react"
import type { BlockProducer } from "../types"

type BlockProducer = {
const Avatar = ({
img,
name,
setShowPlaceholder,
}: {
img: string | undefined
name: string
publicKey: string
stake: number
delegatorsCount: number
setShowPlaceholder: (show: boolean) => void
}) => {
if (!img) return <PlaceholderImage width={24} height={24} />
return (
<img
src={img}
alt={name}
onError={() => setShowPlaceholder(true)}
className="rounded-full"
/>
)
}

interface BlockProducerTileProps {
producer: BlockProducer
}

export const BlockProducerTile = ({ producer }: BlockProducerTileProps) => {
const [showPlaceholder, setShowPlaceholder] = useState(false)
const navigate = useNavigate()
return (
<div
className="flex flex-1 justify-between items-center p-2"
<button
type="button"
className="card bg-secondary flex flex-row justify-between items-center p-2"
onClick={() =>
navigate("/staking/delegate", {
state: { address: producer.publicKey },
state: { address: producer.pk },
})
}
>
<div className="flex items-center gap-4">
<div>{producer.name?.[0]}</div>
<div className="font-semibold">{producer.name}</div>
<div className="flex flex-1 gap-4 items-center">
<div className="avatar placeholder">
<div className="bg-neutral text-neutral-content w-12 rounded-full">
{showPlaceholder ? (
<PlaceholderImage width={24} height={24} />
) : (
<Avatar
img={producer.img}
name={producer.name ?? producer.pk}
setShowPlaceholder={setShowPlaceholder}
/>
)}
</div>
</div>
<div className="font-semibold flex-1 truncate text-left break-all max-w-[7rem] w-full">
{producer.name ?? producer.pk}
</div>
</div>
<div className="gap-1">
<div className="font-semibold">
{formatCompact({ value: producer.stake })} MINA
{formatCompact({ value: producer.amountStaked })} MINA
</div>
<div className="text-right text-sm">
{formatCompact({ value: producer.delegatorsCount })} Delegators
{formatCompact({ value: producer.delegators })} Delegators
</div>
</div>
</div>
</button>
)
}
14 changes: 12 additions & 2 deletions packages/features/src/staking/components/delegate-form.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { zodResolver } from "@hookform/resolvers/zod"
import { useEffect } from "react"
import { useForm } from "react-hook-form"
import { useLocation, useNavigate } from "react-router-dom"
import { Link, useLocation, useNavigate } from "react-router-dom"

import { TransactionFee } from "@/common/lib/const"
import { useTransactionStore } from "@/common/store/transaction"
Expand All @@ -10,6 +10,7 @@ import { FormError } from "@/components/form-error"
import { FeePicker, TransactionFeeShort } from "@/components/fee-picker"
import type { SendFormSchemaProps } from "@/send/components/send-form.schema"
import { TransactionType } from "@palladxyz/mina-core"
import { ExternalLinkIcon } from "lucide-react"
import { DelegateFormSchema } from "./delegate-form.schema"

type DelegateFormProps = {
Expand Down Expand Up @@ -58,7 +59,16 @@ export const DelegateForm = ({ advanced, setAdvanced }: DelegateFormProps) => {
className="flex flex-col flex-1 gap-4 px-8 pb-8 items-center"
onSubmit={handleSubmit(onSubmit)}
>
<h1 className="text-3xl w-full">New Stake</h1>
<h1 className="text-3xl w-full">Select a validator</h1>
<Link
to="/staking/producers"
className="card bg-secondary w-full flex-row py-2 px-4 items-center justify-between"
>
<h2 className="text-mint">Find a validator</h2>
<div className="bg-neutral rounded-full p-2">
<ExternalLinkIcon />
</div>
</Link>
<div className="flex flex-col gap-2 w-full">
<input
id="blockProducer"
Expand Down
14 changes: 13 additions & 1 deletion packages/features/src/staking/index.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,19 @@ export const Delegate: Story<{ advanced: boolean }> = ({ advanced }) => (
export const Producers = () => (
<BlockProducersView
blockProducers={[
{ name: "Test", delegatorsCount: 5, publicKey: "B62Test", stake: 442 },
{
name: "Test",
delegators: 5,
pk: "B62qj287L1bwP9XguURbxW5cneTRD8Kde4vx3fbeZCNxNxyMzXdsYLP",
amountStaked: 442,
img: "https://pallad.co/logo.svg",
},
{
delegators: 212,
pk: "B62qj287L1bwP9XguURbxW5cneTRD8Kde4vx3fbeZCNxNxyMzXdsYLX",
amountStaked: 333,
img: "https://pallad.co/logo.svg",
},
]}
onGoBack={() => console.log("go back")}
/>
Expand Down
25 changes: 10 additions & 15 deletions packages/features/src/staking/routes/block-producers.tsx
Original file line number Diff line number Diff line change
@@ -1,28 +1,23 @@
import { useNavigate } from "react-router-dom"

import { fetcher } from "@/common/lib/fetch"
import useSWR from "swr"
import type { BlockProducer } from "../types"
import { BlockProducersView } from "../views/block-producers"

const MOCKED_PRODUCERS = [
{
name: "Pallad",
publicKey: "B62qkYa1o6Mj6uTTjDQCob7FYZspuhkm4RRQhgJg9j4koEBWiSrTQrS",
stake: 24000,
delegatorsCount: 6000,
},
{
name: "Pallad 2",
publicKey: "B62qkYa1o6Mj6uTTjDQCob7FYZspuhkm4RRQhgJg9j4koEBWiSrTQrS",
stake: 12000,
delegatorsCount: 3000,
},
]
const STAKEPOOLS_URL = "https://pallad.co/api/stakepools.json"

type StakePoolsResponse = {
content: BlockProducer[]
}

export const BlockProducersRoute = () => {
const { data } = useSWR<StakePoolsResponse>(STAKEPOOLS_URL, fetcher)
const navigate = useNavigate()
return (
<BlockProducersView
onGoBack={() => navigate(-1)}
blockProducers={MOCKED_PRODUCERS}
blockProducers={data?.content ?? []}
/>
)
}
7 changes: 7 additions & 0 deletions packages/features/src/staking/types.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export type BlockProducer = {
name?: string
pk: string
delegators: number
amountStaked: number
img?: string
}
22 changes: 10 additions & 12 deletions packages/features/src/staking/views/block-producers.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
import { AppLayout } from "@/components/app-layout"

import { MenuBar } from "@/components/menu-bar"
import arrayShuffle from "array-shuffle"
import { take } from "rambda"
import { BlockProducerTile } from "../components/block-producer-tile"

type BlockProducer = {
name: string
publicKey: string
stake: number
delegatorsCount: number
}
import type { BlockProducer } from "../types"

type BlockProducersViewProps = {
onGoBack: () => void
Expand All @@ -18,14 +15,15 @@ export const BlockProducersView = ({
onGoBack,
blockProducers,
}: BlockProducersViewProps) => {
const randomTwentyProducers = arrayShuffle(take(20, blockProducers))
return (
<AppLayout>
<div className="flex flex-col gap-3">
{blockProducers.map((producer, i) => (
// biome-ignore lint: hardcoded for now
<BlockProducerTile key={i} producer={producer} />
<MenuBar variant="back" onBackClicked={onGoBack} />
<div className="flex flex-col gap-3 px-8 pb-8">
<h1 className="text-3xl w-full">Select a validator</h1>
{randomTwentyProducers.map((producer) => (
<BlockProducerTile key={producer.pk} producer={producer} />
))}
<button type="button">Add Your Pool</button>
</div>
</AppLayout>
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { TokenIdMap } from "@palladxyz/mina-core"
import { MinaNode } from "../../../../src"

const nodeUrl =
process.env.NODE_URL || "https://api.minascan.io/node/devnet/v1/graphql"
process.env.NODE_URL || "https://pallad.co/api/obscura/devnet.json"
const publicKey =
process.env.PUBLIC_KEY ||
"B62qkAqbeE4h1M5hop288jtVYxK1MsHVMMcBpaWo8qdsAztgXaHH1xq"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ import type { Mina } from "@palladxyz/mina-core"
import { MinaNode } from "../../../../src"

const nodeUrl =
process.env.ARCHIVE_NODE_URL ||
"https://api.minascan.io/node/devnet/v1/graphql"
process.env.ARCHIVE_NODE_URL || "https://pallad.co/api/obscura/devnet.json"
const publicKey =
process.env.PUBLIC_KEY ||
"B62qjsV6WQwTeEWrNrRRBP6VaaLvQhwWTnFi4WP4LQjGvpfZEumXzxb"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { MinaNode } from "../../../../src"

const nodeUrl =
process.env.NODE_URL || "https://api.minascan.io/node/devnet/v1/graphql"
process.env.NODE_URL || "https://pallad.co/api/obscura/devnet.json"

// TODO: change this to local network
describe("Blockberry Node Status Provider (Functional)", () => {
Expand Down
Loading

0 comments on commit 025d79b

Please sign in to comment.