-
Notifications
You must be signed in to change notification settings - Fork 615
Add solana transactions and wallets tables #8256
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
Closed
d4mr
wants to merge
11
commits into
main
from
cursor/add-solana-transactions-and-wallets-tables-2ff0
Closed
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
ad4a86c
feat: Add Solana transactions and wallets to dashboard
cursoragent efc9bc0
Remove dashboard core app
cursoragent ae3114b
Refactor: Improve Solana wallet data handling and typing
cursoragent 716a432
solana dashboard experience + SDK type fix
d4mr c4fd6e5
lint + remove unused files
d4mr 9f37e52
better address
d4mr bc59fdd
remove unused method
d4mr adbee5c
project access token migration
d4mr e06fbd9
Merge branch 'main' into cursor/add-solana-transactions-and-wallets-t…
d4mr 97cf8ad
remove duplicate eoa:read policy
d4mr b83e372
Merge branch 'cursor/add-solana-transactions-and-wallets-tables-2ff0'…
d4mr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "@thirdweb-dev/vault-sdk": patch | ||
| --- | ||
|
|
||
| Fixed bug with listing solana accounts response type |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,83 @@ | ||
| "use client"; | ||
| import { CheckIcon, CopyIcon } from "lucide-react"; | ||
| import { useMemo } from "react"; | ||
| import { Button } from "@/components/ui/button"; | ||
| import { | ||
| HoverCard, | ||
| HoverCardContent, | ||
| HoverCardTrigger, | ||
| } from "@/components/ui/hover-card"; | ||
| import { useClipboard } from "@/hooks/useClipboard"; | ||
| import { cn } from "@/lib/utils"; | ||
|
|
||
| export function SolanaAddress(props: { | ||
| address: string; | ||
| shortenAddress?: boolean; | ||
| className?: string; | ||
| }) { | ||
| const shortenedAddress = useMemo(() => { | ||
| return props.shortenAddress !== false | ||
| ? `${props.address.slice(0, 4)}...${props.address.slice(-4)}` | ||
| : props.address; | ||
| }, [props.address, props.shortenAddress]); | ||
|
|
||
| const lessShortenedAddress = useMemo(() => { | ||
| return `${props.address.slice(0, 8)}...${props.address.slice(-8)}`; | ||
| }, [props.address]); | ||
|
|
||
| const { onCopy, hasCopied } = useClipboard(props.address, 2000); | ||
|
|
||
| return ( | ||
| <HoverCard> | ||
| <HoverCardTrigger asChild tabIndex={-1}> | ||
| <Button | ||
| className={cn( | ||
| "flex flex-row items-center gap-2 px-0", | ||
| props.className, | ||
| )} | ||
| onClick={(e) => e.stopPropagation()} | ||
| variant="link" | ||
| > | ||
| <div className="flex size-5 items-center justify-center rounded-full bg-gradient-to-br from-purple-500 to-blue-500" /> | ||
| <span className="cursor-pointer font-mono text-sm"> | ||
| {shortenedAddress} | ||
| </span> | ||
| </Button> | ||
| </HoverCardTrigger> | ||
| <HoverCardContent | ||
| className="w-80 border-border" | ||
| onClick={(e) => { | ||
| // do not close the hover card when clicking anywhere in the content | ||
| e.stopPropagation(); | ||
| }} | ||
| > | ||
| <div className="space-y-4"> | ||
| <div className="flex items-center justify-between"> | ||
| <h3 className="font-semibold text-lg">Solana Public Key</h3> | ||
| <Button | ||
| className="flex items-center gap-2" | ||
| onClick={onCopy} | ||
| size="sm" | ||
| variant="outline" | ||
| > | ||
| {hasCopied ? ( | ||
| <CheckIcon className="h-4 w-4" /> | ||
| ) : ( | ||
| <CopyIcon className="h-4 w-4" /> | ||
| )} | ||
| {hasCopied ? "Copied!" : "Copy"} | ||
| </Button> | ||
| </div> | ||
| <p className="break-all rounded bg-muted p-3 text-center font-mono text-xs leading-relaxed"> | ||
| {lessShortenedAddress} | ||
| </p> | ||
| <div className="rounded-lg bg-muted/50 p-3"> | ||
| <p className="text-muted-foreground text-xs leading-relaxed"> | ||
| Solana public key for blockchain transactions. | ||
| </p> | ||
| </div> | ||
| </div> | ||
| </HoverCardContent> | ||
| </HoverCard> | ||
| ); | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FTUX completion flag likely inconsistent for Solana.
SendTestSolanaTransaction sets localStorage key "solanEngineFtuxCompleted" (typo/mismatch), but EngineChecklist only checks engineFtuxCompleted. Users may still see onboarding after Solana flow.
And ensure the Solana flow writes "solanaEngineFtuxCompleted" (with the missing 'a' fixed) or the unified key.