mirror of
https://github.com/pezkuwichain/pwap.git
synced 2026-04-22 04:27:56 +00:00
Update all Polkadot.js references to Pezkuwi Wallet
- Replace Polkadot.js extension references with Pezkuwi Wallet - Update explorer links to pezkuwichain.io/explorer - Update install links to js.pezkuwichain.io - Update source identifiers from polkadot-js to pezkuwi
This commit is contained in:
@@ -167,12 +167,12 @@ export const MultisigMembers: React.FC<MultisigMembersProps> = ({
|
||||
{multisigAddress && (
|
||||
<div className="mt-4 text-center">
|
||||
<a
|
||||
href={`https://polkadot.js.org/apps/?rpc=ws://127.0.0.1:9944#/accounts/${multisigAddress}`}
|
||||
href={`https://pezkuwichain.io/explorer/accounts/${multisigAddress}`}
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
className="inline-flex items-center gap-2 text-sm text-blue-400 hover:text-blue-300"
|
||||
>
|
||||
View on Polkadot.js
|
||||
View on Explorer
|
||||
<ExternalLink className="h-4 w-4" />
|
||||
</a>
|
||||
</div>
|
||||
|
||||
@@ -91,7 +91,7 @@ export const PezkuwiWalletButton: React.FC = () => {
|
||||
<DialogHeader>
|
||||
<DialogTitle className="text-white">Account Details</DialogTitle>
|
||||
<DialogDescription className="text-gray-400">
|
||||
Your connected Polkadot account
|
||||
Your connected Pezkuwi account
|
||||
</DialogDescription>
|
||||
</DialogHeader>
|
||||
|
||||
@@ -123,7 +123,7 @@ export const PezkuwiWalletButton: React.FC = () => {
|
||||
<div className="bg-gray-800/50 rounded-lg p-4">
|
||||
<div className="text-sm text-gray-400 mb-1">Source</div>
|
||||
<div className="text-white">
|
||||
{selectedAccount.meta.source || 'polkadot-js'}
|
||||
{selectedAccount.meta.source || 'pezkuwi'}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -174,29 +174,29 @@ export const PezkuwiWalletButton: React.FC = () => {
|
||||
Connect Wallet
|
||||
</Button>
|
||||
|
||||
{error && error.includes('install Polkadot.js') && (
|
||||
{error && error.includes('extension') && (
|
||||
<Dialog open={!!error} onOpenChange={() => {}}>
|
||||
<DialogContent className="bg-gray-900 border-gray-800">
|
||||
<DialogHeader>
|
||||
<DialogTitle className="text-white">Install Polkadot.js Extension</DialogTitle>
|
||||
<DialogTitle className="text-white">Install Pezkuwi Wallet Extension</DialogTitle>
|
||||
<DialogDescription className="text-gray-400">
|
||||
You need the Polkadot.js browser extension to connect your wallet
|
||||
You need the Pezkuwi Wallet browser extension to connect your wallet
|
||||
</DialogDescription>
|
||||
</DialogHeader>
|
||||
|
||||
<div className="space-y-4">
|
||||
<p className="text-gray-300">
|
||||
The Polkadot.js extension allows you to manage your accounts and sign transactions securely.
|
||||
The Pezkuwi Wallet extension allows you to manage your accounts and sign transactions securely.
|
||||
</p>
|
||||
|
||||
<div className="flex gap-3">
|
||||
<a
|
||||
href="https://polkadot.js.org/extension/"
|
||||
href="https://js.pezkuwichain.io"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
className="flex-1"
|
||||
>
|
||||
<Button className="w-full bg-orange-600 hover:bg-orange-700">
|
||||
<Button className="w-full bg-green-600 hover:bg-green-700">
|
||||
<ExternalLink className="w-4 h-4 mr-2" />
|
||||
Install Extension
|
||||
</Button>
|
||||
|
||||
@@ -245,7 +245,7 @@ export const ReservesDashboard: React.FC<ReservesDashboardProps> = ({
|
||||
<AlertDescription>
|
||||
<p className="font-semibold mb-2">How to Verify Reserves:</p>
|
||||
<ol className="list-decimal list-inside space-y-1 text-sm">
|
||||
<li>Check on-chain wUSDT supply via Polkadot.js Apps</li>
|
||||
<li>Check on-chain wUSDT supply via Pezkuwi Explorer</li>
|
||||
<li>Verify multisig account balance (if reserves on-chain)</li>
|
||||
<li>Compare with off-chain treasury (bank/exchange account)</li>
|
||||
<li>Ensure ratio ≥ 100%</li>
|
||||
@@ -257,16 +257,16 @@ export const ReservesDashboard: React.FC<ReservesDashboardProps> = ({
|
||||
<p className="text-sm text-gray-400 mb-3">Quick Links:</p>
|
||||
<div className="space-y-2">
|
||||
<a
|
||||
href="https://polkadot.js.org/apps/?rpc=ws://127.0.0.1:9944#/assets"
|
||||
href="https://pezkuwichain.io/explorer/assets"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
className="flex items-center gap-2 text-blue-400 hover:text-blue-300 text-sm"
|
||||
>
|
||||
<ExternalLink className="h-4 w-4" />
|
||||
View wUSDT Asset on Polkadot.js
|
||||
View wUSDT Asset on Explorer
|
||||
</a>
|
||||
<a
|
||||
href="https://polkadot.js.org/apps/?rpc=ws://127.0.0.1:9944#/accounts"
|
||||
href="https://pezkuwichain.io/explorer/accounts"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
className="flex items-center gap-2 text-blue-400 hover:text-blue-300 text-sm"
|
||||
|
||||
@@ -310,7 +310,7 @@ export const TransferModal: React.FC<TransferModalProps> = ({ isOpen, onClose, s
|
||||
{txStatus === 'signing' && (
|
||||
<div className="bg-yellow-500/10 border border-yellow-500/30 rounded-lg p-3">
|
||||
<p className="text-yellow-400 text-sm">
|
||||
Please sign the transaction in your Polkadot.js extension
|
||||
Please sign the transaction in your Pezkuwi Wallet extension
|
||||
</p>
|
||||
</div>
|
||||
)}
|
||||
|
||||
@@ -376,11 +376,11 @@ export function CommissionSetupTab() {
|
||||
<div className="flex gap-2 mb-2">
|
||||
<Button
|
||||
onClick={() => {
|
||||
// Get wallet addresses from Polkadot.js extension
|
||||
// Get wallet addresses from Pezkuwi Wallet extension
|
||||
// For now, show instruction
|
||||
toast({
|
||||
title: 'Get Addresses',
|
||||
description: 'Copy addresses from Polkadot.js wallet and paste below',
|
||||
description: 'Copy addresses from Pezkuwi Wallet and paste below',
|
||||
});
|
||||
}}
|
||||
variant="outline"
|
||||
|
||||
@@ -105,9 +105,9 @@ export const WalletModal: React.FC<WalletModalProps> = ({ isOpen, onClose }) =>
|
||||
{selectedAccount ? 'Wallet Connected' : 'Connect Wallet'}
|
||||
</DialogTitle>
|
||||
<DialogDescription>
|
||||
{selectedAccount
|
||||
? 'Manage your Polkadot account'
|
||||
: 'Connect your Polkadot.js extension to interact with PezkuwiChain'}
|
||||
{selectedAccount
|
||||
? 'Manage your Pezkuwi account'
|
||||
: 'Connect your Pezkuwi Wallet extension to interact with PezkuwiChain'}
|
||||
</DialogDescription>
|
||||
</DialogHeader>
|
||||
|
||||
@@ -116,20 +116,20 @@ export const WalletModal: React.FC<WalletModalProps> = ({ isOpen, onClose }) =>
|
||||
<div className="space-y-4">
|
||||
<div className="p-4 bg-yellow-500/10 border border-yellow-500/30 rounded-lg">
|
||||
<p className="text-sm text-yellow-300">
|
||||
Polkadot.js extension not detected. Please install it to continue.
|
||||
Pezkuwi Wallet extension not detected. Please install it to continue.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div className="flex gap-3">
|
||||
<a
|
||||
href="https://polkadot.js.org/extension/"
|
||||
href="https://js.pezkuwichain.io"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
className="flex-1"
|
||||
>
|
||||
<Button className="w-full bg-orange-600 hover:bg-orange-700">
|
||||
<Button className="w-full bg-green-600 hover:bg-green-700">
|
||||
<Chrome className="mr-2 h-4 w-4" />
|
||||
Install Extension
|
||||
Install Pezkuwi Wallet
|
||||
</Button>
|
||||
</a>
|
||||
</div>
|
||||
@@ -220,7 +220,7 @@ export const WalletModal: React.FC<WalletModalProps> = ({ isOpen, onClose }) =>
|
||||
<div>
|
||||
<div className="text-xs text-gray-400 mb-1">Source</div>
|
||||
<div className="text-sm text-gray-300">
|
||||
{selectedAccount.meta.source || 'polkadot-js'}
|
||||
{selectedAccount.meta.source || 'pezkuwi'}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -230,7 +230,7 @@ export const WalletModal: React.FC<WalletModalProps> = ({ isOpen, onClose }) =>
|
||||
<Button
|
||||
variant="outline"
|
||||
className="flex-1"
|
||||
onClick={() => window.open(`https://polkadot.js.org/apps/?rpc=ws://127.0.0.1:9944#/explorer`, '_blank')}
|
||||
onClick={() => window.open(`https://pezkuwichain.io/explorer`, '_blank')}
|
||||
>
|
||||
<ExternalLink className="mr-2 h-4 w-4" />
|
||||
View on Explorer
|
||||
@@ -306,13 +306,13 @@ export const WalletModal: React.FC<WalletModalProps> = ({ isOpen, onClose }) =>
|
||||
className="w-full bg-gradient-to-r from-purple-600 to-cyan-400 hover:from-purple-700 hover:to-cyan-500"
|
||||
>
|
||||
<Wallet className="mr-2 h-4 w-4" />
|
||||
Connect Polkadot.js
|
||||
Connect Pezkuwi Wallet
|
||||
</Button>
|
||||
|
||||
|
||||
<div className="text-sm text-gray-400 text-center">
|
||||
Don't have Polkadot.js?{' '}
|
||||
Don't have Pezkuwi Wallet?{' '}
|
||||
<a
|
||||
href="https://polkadot.js.org/extension/"
|
||||
href="https://js.pezkuwichain.io"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
className="text-purple-400 hover:underline"
|
||||
|
||||
@@ -124,7 +124,7 @@ export function ReferralProvider({ children }: { children: ReactNode }) {
|
||||
description: 'Please sign the transaction...',
|
||||
});
|
||||
|
||||
await initiateReferral(api, { address: account, meta: { source: 'polkadot-js' } } as Record<string, unknown>, referredAddress);
|
||||
await initiateReferral(api, { address: account, meta: { source: 'pezkuwi' } } as Record<string, unknown>, referredAddress);
|
||||
|
||||
toast({
|
||||
title: 'Success!',
|
||||
|
||||
@@ -49,7 +49,7 @@ const unsub = await api.tx.balances
|
||||
<h2 className="text-2xl font-bold mb-2">Quick Start Guide</h2>
|
||||
<p className="text-gray-400 mb-4">Your first steps to building a dApp on PezkuwiChain.</p>
|
||||
<ol className="list-decimal list-inside space-y-2">
|
||||
<li>Install the Polkadot.js extension.</li>
|
||||
<li>Install the Pezkuwi Wallet extension.</li>
|
||||
<li>Get some testnet HEZ from the Faucet.</li> <li>Clone a starter project from our GitHub.</li>
|
||||
<li>Start building!</li>
|
||||
</ol>
|
||||
|
||||
@@ -105,13 +105,13 @@ const Login: React.FC = () => {
|
||||
if (selectedAccount) {
|
||||
navigate('/');
|
||||
} else {
|
||||
setError('Please select an account from your Polkadot.js extension');
|
||||
setError('Please select an account from your Pezkuwi Wallet extension');
|
||||
}
|
||||
} catch (err) {
|
||||
if (import.meta.env.DEV) console.error('Wallet connection failed:', err);
|
||||
const errorMsg = err instanceof Error ? err.message : '';
|
||||
if (errorMsg?.includes('extension')) {
|
||||
setError('Polkadot.js extension not found. Please install it first.');
|
||||
setError('Pezkuwi Wallet extension not found. Please install it first.');
|
||||
} else {
|
||||
setError('Failed to connect wallet. Please try again.');
|
||||
}
|
||||
@@ -366,11 +366,11 @@ const Login: React.FC = () => {
|
||||
disabled={loading}
|
||||
>
|
||||
<Wallet className="mr-2 h-4 w-4" />
|
||||
{t('login.connectWallet', 'Connect with Polkadot.js')}
|
||||
{t('login.connectWallet', 'Connect with Pezkuwi Wallet')}
|
||||
</Button>
|
||||
|
||||
<p className="mt-2 text-xs text-center text-gray-500">
|
||||
{t('login.walletHint', 'Connect your Polkadot wallet for instant access')}
|
||||
{t('login.walletHint', 'Connect your Pezkuwi Wallet for instant access')}
|
||||
</p>
|
||||
</CardContent>
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ const Wiki: React.FC = () => {
|
||||
const popularArticles = [
|
||||
'How to become a validator',
|
||||
'PezkuwiChain tokenomics explained',
|
||||
'Connecting to the network with Polkadot.js',
|
||||
'Connecting to the network with Pezkuwi Wallet',
|
||||
'Understanding the governance process',
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user