Skip to content
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

fix(provider): added akash install step in manual wallet import part #875

Merged
merged 3 commits into from
Feb 20, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions apps/provider-console/env/.env.production
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID=3da517f744e821dd4dee314da0f2c279

BASE_API_MAINNET_URL=$NEXT_PUBLIC_BASE_API_MAINNET_URL
NEXT_PUBLIC_SENTRY_ENABLED="true"
NEXT_PUBLIC_GA_MEASUREMENT_ID="G-BCWM6KRTN1"
28 changes: 15 additions & 13 deletions apps/provider-console/sentry.client.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,22 @@ Sentry.init({
dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,
enabled: !!process.env.NEXT_PUBLIC_SENTRY_DSN,
integrations: [
Sentry.replayIntegration(),
new Sentry.BrowserTracing({
// Set sampling rate for performance monitoring
tracePropagationTargets: ["localhost", /^https:\/\/provider-console.akash.network/]
})
Sentry.browserTracingIntegration(),
Sentry.replayIntegration() // Use this instead of new Sentry.Replay()
],
// Session replay sampling rates
replaysSessionSampleRate: 0.1,
replaysOnErrorSampleRate: 1.0,

// Performance monitoring sampling rate
tracesSampleRate: 0.2,
// Performance Monitoring
tracesSampleRate: 1.0, // Capture all transactions (adjust in production)
profilesSampleRate: 0.1, // Capture CPU profiles (useful for debugging performance)

// Enable automatic instrumentation for analytics
enableAutoSessionTracking: true,
sessionTrackingIntervalMillis: 30000
// Session Replay Configuration
replaysSessionSampleRate: 0.1, // Capture 10% of sessions for replay
replaysOnErrorSampleRate: 1.0, // Always capture sessions when an error occurs

// Additional Debugging Options
normalizeDepth: 5, // Increase depth of serialized objects for better error insights
ignoreErrors: [
"Non-Error promise rejection", // Ignore common harmless errors
"ResizeObserver loop limit exceeded"
]
});
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,9 @@ export const WalletImport: React.FC<WalletImportProps> = ({ onComplete }) => {
resolver: zodResolver(seedFormSchema)
});

const [copiedCommand, setCopiedCommand] = useState(false);
const [copiedRootCommand, setCopiedRootCommand] = useState(false);
const [copiedInstallCommand, setCopiedInstallCommand] = useState(false);
const [copiedAddKeyCommand, setCopiedAddKeyCommand] = useState(false);
const [copiedPassphrase, setCopiedPassphrase] = useState(false);

const handleCopy = (text: string, setCopied: React.Dispatch<React.SetStateAction<boolean>>) => {
Expand Down Expand Up @@ -346,8 +348,30 @@ export const WalletImport: React.FC<WalletImportProps> = ({ onComplete }) => {
Go to your control node's root directory
<div className="bg-secondary relative mt-2 rounded-md p-4">
<code className="text-sm">cd ~</code>
<Button variant="ghost" size="sm" className="absolute right-2 top-2" onClick={() => handleCopy("cd ~", setCopiedCommand)}>
{copiedCommand ? <Check className="text-green-500" /> : <Copy />}
<Button variant="ghost" size="sm" className="absolute right-2 top-2" onClick={() => handleCopy("cd ~", setCopiedRootCommand)}>
{copiedRootCommand ? <Check className="text-green-500" /> : <Copy />}
</Button>
</div>
</li>
<li>
Run This Command: Copy and paste the following command into the terminal, then press Enter:
<div className="bg-secondary relative mt-2 rounded-md p-4">
<code className="text-sm">
curl https://raw.githubusercontent.com/akash-network/provider/main/install.sh | bash -s $(curl -s
https://api.github.com/repos/akash-network/provider/releases/latest | jq -r '.tag_name')
</code>
<Button
variant="ghost"
size="sm"
className="absolute right-2 top-2"
onClick={() =>
handleCopy(
"curl https://raw.githubusercontent.com/akash-network/provider/main/install.sh | bash -s $(curl -s https://api.github.com/repos/akash-network/provider/releases/latest | jq -r '.tag_name')",
setCopiedInstallCommand
)
}
>
{copiedInstallCommand ? <Check className="text-green-500" /> : <Copy />}
</Button>
</div>
</li>
Expand All @@ -359,9 +383,9 @@ export const WalletImport: React.FC<WalletImportProps> = ({ onComplete }) => {
variant="ghost"
size="sm"
className="absolute right-2 top-2"
onClick={() => handleCopy("~/bin/provider-services keys add provider --recover --keyring-backend file", setCopiedCommand)}
onClick={() => handleCopy("~/bin/provider-services keys add provider --recover --keyring-backend file", setCopiedAddKeyCommand)}
>
{copiedCommand ? <Check className="text-green-500" /> : <Copy />}
{copiedAddKeyCommand ? <Check className="text-green-500" /> : <Copy />}
</Button>
</div>
</li>
Expand All @@ -371,7 +395,7 @@ export const WalletImport: React.FC<WalletImportProps> = ({ onComplete }) => {
<li>
First, it will ask for your 12 or 24-word mnemonic phrase. <br />
Type or paste the seed phrase for the wallet you want to import and press Enter. <br />
Next, it will ask for your wallet passphrase.{" "}
Next, it will ask for your wallet passphrase (Make sure you use below passphrase).{" "}
</li>
<li>
Copy and paste the passphrase below and press Enter:
Expand Down