Skip to content

Commit

Permalink
feat: add extension & sdk versions to settings
Browse files Browse the repository at this point in the history
  • Loading branch information
jurevans committed Oct 3, 2024
1 parent e72d0f1 commit 34fe76b
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 4 deletions.
2 changes: 1 addition & 1 deletion apps/extension/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@namada/extension",
"version": "0.3.2",
"version": "0.3.3",
"description": "Namada Browser Extension",
"repository": "https://github.com/anoma/namada-interface/",
"author": "Heliax Dev <[email protected]>",
Expand Down
17 changes: 17 additions & 0 deletions apps/extension/src/App/Common/AppHeaderNavigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import { useVaultContext } from "context";
import { FaDiscord, FaXTwitter } from "react-icons/fa6";
import { GoAlert, GoQuestion } from "react-icons/go";
import { useNavigate } from "react-router-dom";
import sdkPackage from "../../../../../packages/sdk/package.json";
import extensionPackage from "../../../package.json";

type AppHeaderNavigationProps = {
open: boolean;
Expand Down Expand Up @@ -97,6 +99,21 @@ export const AppHeaderNavigation = ({
Lock Wallet
</li>
</Stack>
<div className="relative h-full">
<Stack
as="ul"
gap={1}
direction="vertical"
className="absolute bottom-4"
>
<li>
Keychain Version: <strong>{extensionPackage.version}</strong>
</li>
<li>
SDK Version: <strong>{sdkPackage.version}</strong>
</li>
</Stack>
</div>
<footer className="flex items-center justify-between text-yellow-950 text-2xl">
<Stack
as="ul"
Expand Down
2 changes: 2 additions & 0 deletions apps/namadillo/src/App/Settings/SettingsMain.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { routes } from "App/routes";
import { version as sdkVersion } from "../../../../../packages/sdk/package.json";
import { version } from "../../../package.json";
import { SettingsPanelMenuItem } from "./SettingsPanelMenuItem";

Expand All @@ -14,6 +15,7 @@ export const SettingsMain = (): JSX.Element => {
</ul>
<div className="text-xs">
<div>Namadillo Version: {version}</div>
<div>SDK Version: {sdkVersion}</div>
</div>
</div>
);
Expand Down
3 changes: 0 additions & 3 deletions packages/crypto/lib/src/crypto/zip32.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ use masp_primitives::{
use wasm_bindgen::prelude::*;
use zeroize::{Zeroize, ZeroizeOnDrop};

#[wasm_bindgen]
pub struct ExtSpendingKey(pub(crate) ExtendedSpendingKey);

#[wasm_bindgen]
#[derive(Zeroize)]
pub struct DerivationResult {
Expand Down

0 comments on commit 34fe76b

Please sign in to comment.