Skip to content

Commit 61a2884

Browse files
committed
chore: rename pvm to smart contract
#6
1 parent afc8b9a commit 61a2884

File tree

13 files changed

+20
-20
lines changed

13 files changed

+20
-20
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ A demo of the application is available at [https://essentials-stg.vercel.app/](h
88

99
## Features
1010

11-
* View Substrate/PVM block and extrinsic data from Substrate-based chains.
11+
* View Substrate/Smart Contract block and extrinsic data from Substrate-based chains.
1212
* Responsive design for use on desktop and mobile devices.
1313
* Comprehensive testing suite using Jest and React Testing Library.
1414

src/components/contract/info.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const Component: React.FC<Props> = ({ children, className, contract }) => {
2525
<div>{contract.compiler_version || '-'}</div>
2626
</div>
2727
<div className="pl-5">
28-
<div className="mt-5 mb-1">PVM Version</div>
28+
<div className="mt-5 mb-1">Smart Contract Version</div>
2929
<div>{contract.evm_version || '-'}</div>
3030
</div>
3131
<div className="pl-5">

src/components/contract/verify.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ const Component: React.FC<Props> = ({ children, className, address }) => {
227227
</div>
228228
{compilerType === 'single' && (
229229
<div>
230-
<div className="mb-2">PVM Version</div>
230+
<div className="mb-2">Smart Contract Version</div>
231231
<Select
232232
className="max-w-xs"
233233
label=""

src/components/home/HomePage.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@ const HomePage: React.FC = () => {
3939
{metadata.enable_evm && (
4040
<div>
4141
<div className="bg-blue-50 rounded-lg p-3 sm:p-5 mb-4 sm:mb-5">
42-
<div className="mb-3 sm:mb-4 text-base sm:text-lg font-semibold">PVM</div>
42+
<div className="mb-3 sm:mb-4 text-base sm:text-lg font-semibold">Smart Contract</div>
4343
<div className={`grid gap-4 mb-4 ${columns === 2 ? 'grid-cols-2' : 'grid-cols-4'}`}>
44-
<InfoCard title="PVM Block" value={formatNumber(metadata.finalized_blockNum)} href="/block" />
44+
<InfoCard title="Smart Contract Block" value={formatNumber(metadata.finalized_blockNum)} href="/block" />
4545
<InfoCard title="Transaction" value={formatNumber(metadata.total_transaction)} href="/tx" />
46-
<InfoCard title="PVM Account" value={formatNumber(metadata.total_evm_account)} href="/address" />
47-
<InfoCard title="PVM Contract" value={formatNumber(metadata.total_evm_contract)} href="/contract" />
46+
<InfoCard title="Smart Contract Account" value={formatNumber(metadata.total_evm_account)} href="/address" />
47+
<InfoCard title="Smart Contract Contract" value={formatNumber(metadata.total_evm_contract)} href="/contract" />
4848
</div>
4949
</div>
5050
<div className={`grid gap-4 grid-cols-1 ${columns === 1 ? 'lg:grid-cols-2' : ''}`}>

src/components/home/PVMBlockList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const PVMBlockList: React.FC<PVMBlockListProps> = ({}) => {
1717
const blocks = extrinsicsData?.list
1818
return (
1919
<div className="bg-blue-50 rounded-lg p-3 sm:p-5">
20-
<h2 className="text-base sm:text-lg font-semibold mb-2 sm:mb-4">PVM Block</h2>
20+
<h2 className="text-base sm:text-lg font-semibold mb-2 sm:mb-4">Smart Contract Block</h2>
2121
<Skeleton className="w-full rounded-lg" isLoaded={!isLoading}>
2222
<div>
2323
{_.map(blocks, (block) => (

src/components/home/TransactionList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const TransactionList: React.FC<TransactionListProps> = ({}) => {
1818
const transactions = extrinsicsData?.list
1919
return (
2020
<div className="bg-blue-50 rounded-lg p-3 sm:p-5">
21-
<h2 className="text-base sm:text-lg font-semibold mb-2 sm:mb-4">PVM Transaction</h2>
21+
<h2 className="text-base sm:text-lg font-semibold mb-2 sm:mb-4">Smart Contract Transaction</h2>
2222
<Skeleton className="w-full rounded-lg" isLoaded={!isLoading}>
2323
<div>
2424
{_.map(transactions, (tx) => (

src/components/navbar/navbar.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,19 +89,19 @@ const Component: React.FC<Props> = ({ children, className }) => {
8989
]
9090
const pvmOptions = [
9191
{
92-
name: 'PVM Block',
92+
name: 'Smart Contract Block',
9393
value: 'pvm_block',
9494
},
9595
{
96-
name: 'PVM Transaction',
96+
name: 'Smart Contract Transaction',
9797
value: 'pvm_tx',
9898
},
9999
{
100-
name: 'PVM Contract',
100+
name: 'Smart Contract',
101101
value: 'pvm_contract',
102102
},
103103
{
104-
name: 'PVM Account',
104+
name: 'Smart Contract Account',
105105
value: 'pvm_account',
106106
},
107107
]
@@ -247,7 +247,7 @@ const Component: React.FC<Props> = ({ children, className }) => {
247247
radius="sm"
248248
variant="light"
249249
endContent={icons.chevron}>
250-
PVM
250+
Smart Contract
251251
</Button>
252252
</DropdownTrigger>
253253
</NavbarItem>

src/pages/address/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default function Page() {
77
<PageContent>
88
<Container>
99
<div className="flex flex-col gap-4">
10-
<div className="">PVM Accounts</div>
10+
<div className="">Smart Contract Accounts</div>
1111
<AccountTable></AccountTable>
1212
</div>
1313
</Container>

src/pages/block/[id].tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export default function Page() {
2828
) : (blockData && (
2929
<>
3030
<div className="flex flex-col lg:flex-row gap-1">
31-
<div className="text-base">PVM Block</div>
31+
<div className="text-base">Smart Contract Block</div>
3232
<div className="text-sm break-all sm:text-base">#{id}</div>
3333
</div>
3434
<Card>

src/pages/block/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default function Page() {
77
<PageContent>
88
<Container>
99
<div className="flex flex-col gap-4">
10-
<div className="">PVM Blocks</div>
10+
<div className="">Smart Contract Blocks</div>
1111
<PVMBlockTable></PVMBlockTable>
1212
</div>
1313
</Container>

0 commit comments

Comments
 (0)