Skip to content

Commit 885cb86

Browse files
start renaming to vault
1 parent 25c6e8c commit 885cb86

File tree

4 files changed

+27
-23
lines changed

4 files changed

+27
-23
lines changed

apps/dashboard/src/app/team/[team_slug]/[project_slug]/transactions/analytics/tx-table/tx-table-ui.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,17 @@ import {
2828
} from "@/components/ui/table";
2929
import { ToolTipLabel } from "@/components/ui/tooltip";
3030
import { keepPreviousData, useQuery } from "@tanstack/react-query";
31-
import { ChainIcon } from "components/icons/ChainIcon";
3231
import { formatDistanceToNowStrict } from "date-fns";
3332
import { format } from "date-fns/format";
3433
import { useAllChainsData } from "hooks/chains/allChains";
3534
import { ExternalLinkIcon, InfoIcon } from "lucide-react";
3635
import Link from "next/link";
3736
import { useState } from "react";
37+
import { ChainIconClient } from "../../../../../../../components/icons/ChainIcon";
3838
import type {
3939
Transaction,
40-
TransactionsResponse,
4140
TransactionStatus,
41+
TransactionsResponse,
4242
} from "./types";
4343

4444
// TODO - add Status selector dropdown here
@@ -290,7 +290,7 @@ function TxChainCell(props: { chainId: string | undefined }) {
290290

291291
return (
292292
<div className="flex items-center gap-2">
293-
<ChainIcon className="size-5" ipfsSrc={chain.icon?.url} />
293+
<ChainIconClient className="size-5" ipfsSrc={chain.icon?.url} />
294294
<div className="max-w-[150px] truncate">
295295
{chain.name ?? `Chain ID: ${chainId}`}
296296
</div>

apps/dashboard/src/app/team/[team_slug]/[project_slug]/transactions/layout.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import { getProject } from "@/api/projects";
22
import { getTeamBySlug } from "@/api/team";
3-
import { CopyTextButton } from "@/components/ui/CopyTextButton";
43
import { TabPathLinks } from "@/components/ui/tabs";
4+
import Link from "next/link";
55
import { redirect } from "next/navigation";
6+
import { THIRDWEB_ENGINE_CLOUD_URL } from "../../../../../@/constants/env";
67

78
export default async function Page(props: {
89
params: Promise<{ team_slug: string; project_slug: string }>;
@@ -52,14 +53,13 @@ function TransactionsLayout(props: {
5253
<h1 className="mb-0.5 font-semibold text-2xl tracking-tight lg:text-3xl">
5354
Transactions
5455
</h1>
55-
<CopyTextButton
56-
textToShow={`https://wallet.thirdweb.com/${props.clientId}`} // TODO: change this
57-
textToCopy={`https://wallet.thirdweb.com/${props.clientId}`} // TODO: change this
58-
tooltip="Copy Wallet Link" // TODO: change this
59-
copyIconPosition="right"
60-
variant="ghost"
56+
<Link
57+
href={`${THIRDWEB_ENGINE_CLOUD_URL}/reference`} // TODO: change this
58+
target="_blank"
6159
className="-translate-x-2 max-w-full truncate py-1 text-muted-foreground"
62-
/>
60+
>
61+
{THIRDWEB_ENGINE_CLOUD_URL}
62+
</Link>
6363
</div>
6464
</div>
6565

apps/dashboard/src/app/team/[team_slug]/[project_slug]/transactions/server-wallets/components/create-server-wallet.client.tsx

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,9 @@ export default function CreateServerWallet(props: {
375375
className="flex flex-row items-center gap-2"
376376
>
377377
{isLoading && <Loader2 className="animate-spin" />}
378-
Create Server Wallet
378+
{props.managementAccessToken
379+
? "Create Server Wallet"
380+
: "Create Vault Admin Keys"}
379381
</Button>
380382

381383
<Dialog open={modalOpen} onOpenChange={handleCloseModal} modal={true}>
@@ -400,13 +402,15 @@ export default function CreateServerWallet(props: {
400402
) : initialiseProjectWithVaultMutation.data ? (
401403
<div>
402404
<DialogHeader className="p-6">
403-
<DialogTitle>Wallet Management Keys</DialogTitle>
405+
<DialogTitle>Vault Management Keys</DialogTitle>
404406
</DialogHeader>
405407

406408
<div className="space-y-6 p-6 pt-0">
407409
<div className="space-y-4">
408410
<div>
409-
<h3 className="mb-2 font-medium text-sm">Admin Key</h3>
411+
<h3 className="mb-2 font-medium text-sm">
412+
Vault Admin Key
413+
</h3>
410414
<div className="flex flex-col gap-2">
411415
<CopyTextButton
412416
textToCopy={
@@ -444,15 +448,15 @@ export default function CreateServerWallet(props: {
444448
tooltip="Copy Rotation Code"
445449
/>
446450
<p className="text-muted-foreground text-xs">
447-
This code is used to rotate your admin key in case you
448-
loose it.
451+
This code is used to revoke and recreate your Vault
452+
admin key if needed. Keep it safe.
449453
</p>
450454
</div>
451455
</div>
452456

453457
<div>
454458
<h3 className="mb-2 font-medium text-sm">
455-
Wallet Access Token
459+
Vault Access Token
456460
</h3>
457461
<div className="flex flex-col gap-2 ">
458462
<CopyTextButton
@@ -466,12 +470,12 @@ export default function CreateServerWallet(props: {
466470
.userAccessToken.accessToken,
467471
)}
468472
copyIconPosition="right"
469-
tooltip="Copy Wallet Access Token"
473+
tooltip="Copy Vault Access Token"
470474
/>
471475
<p className="text-muted-foreground text-xs">
472-
This access token is used to send transactions to the
473-
blockchain from your backend. Can be revoked and
474-
recreated with your admin key.
476+
This access token is used to sign transactions and
477+
messages from your backend. Can be revoked and recreated
478+
with your admin key.
475479
</p>
476480
</div>
477481
</div>

apps/dashboard/src/app/team/[team_slug]/[project_slug]/transactions/server-wallets/components/send-dummy-tx.client.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ export default function SendDummyTx(props: {
152152
</div>
153153
</div>
154154
<p className="text-sm text-warning-text">
155-
This action requries a project secret key and a wallet access
155+
This action requries a project secret key and a Vault access
156156
token.
157157
</p>
158158
<Input
@@ -163,7 +163,7 @@ export default function SendDummyTx(props: {
163163
/>
164164
<Input
165165
type="password"
166-
placeholder="Enter your wallet access token"
166+
placeholder="Enter your Vault access token"
167167
value={accessToken}
168168
onChange={(e) => setAccessToken(e.target.value)}
169169
/>

0 commit comments

Comments
 (0)