`;
-exports[`Receive > should render the receive page with a double icon and a choice to switch from shielded to unshielded address 1`] = `
+exports[`Receive > should render the receive page with a double icon and a choice to switch from shielded to public address 1`] = `
@@ -241,17 +241,17 @@ exports[`Receive > should render the receive page with a double icon and a choic
@@ -336,7 +336,7 @@ exports[`Receive > should render the receive page with a double icon and a choic
`;
-exports[`Receive > should render the receive page with a single icon and no choice for shielded / unshielded if the feature flag is not true 1`] = `
+exports[`Receive > should render the receive page with a single icon and no choice for shielded / public if the feature flag is not true 1`] = `
diff --git a/web-wallet/src/routes/(app)/dashboard/receive/__tests__/page.spec.js b/web-wallet/src/routes/(app)/dashboard/receive/__tests__/page.spec.js
index d8d582bb6f..ccf5edabfe 100644
--- a/web-wallet/src/routes/(app)/dashboard/receive/__tests__/page.spec.js
+++ b/web-wallet/src/routes/(app)/dashboard/receive/__tests__/page.spec.js
@@ -48,7 +48,7 @@ describe("Receive", () => {
vi.useRealTimers();
});
- it("should render the receive page with a single icon and no choice for shielded / unshielded if the feature flag is not true", async () => {
+ it("should render the receive page with a single icon and no choice for shielded / public if the feature flag is not true", async () => {
vi.stubEnv("VITE_FEATURE_ALLOCATE", "false");
const { container, getByRole, getByText } = render(Receive);
@@ -63,7 +63,7 @@ describe("Receive", () => {
vi.unstubAllEnvs();
});
- it("should render the receive page with a double icon and a choice to switch from shielded to unshielded address", async () => {
+ it("should render the receive page with a double icon and a choice to switch from shielded to public address", async () => {
const { container, getByRole, getByText } = render(Receive);
await vi.runAllTimersAsync();
@@ -74,7 +74,7 @@ describe("Receive", () => {
expect(container.firstChild).toMatchSnapshot();
});
- it('should change the icon to "unshielded" and show the unshielded address when the user makes such choice', async () => {
+ it('should change the icon to "public" and show the public address when the user makes such choice', async () => {
const { container, getByRole, getByText } = render(Receive);
await vi.runAllTimersAsync();
diff --git a/web-wallet/src/routes/(app)/dashboard/send/+page.svelte b/web-wallet/src/routes/(app)/dashboard/send/+page.svelte
index 825ccfc268..098738536d 100644
--- a/web-wallet/src/routes/(app)/dashboard/send/+page.svelte
+++ b/web-wallet/src/routes/(app)/dashboard/send/+page.svelte
@@ -9,12 +9,12 @@
import { createCurrencyFormatter, luxToDusk } from "$lib/dusk/currency";
import { gasStore, settingsStore, walletStore } from "$lib/stores";
- /** @type {(source: "shielded" | "unshielded", balanceInfo: WalletStoreBalance) => [bigint, ContractStatus[]]}*/
+ /** @type {(source: "shielded" | "public", balanceInfo: WalletStoreBalance) => [bigint, ContractStatus[]]}*/
function getContractInfo(source, balanceInfo) {
const spendable =
source === "shielded"
- ? balanceInfo.shielded.spendable
- : balanceInfo.unshielded.value;
+ ? balanceInfo.shieldedBalance.spendable
+ : balanceInfo.publicBalance.value;
const statuses = [
{
label: "Spendable",
@@ -31,7 +31,7 @@
]);
const gasLimits = $gasStore;
- /** @type {"shielded" | "unshielded"} */
+ /** @type {"shielded" | "public"} */
let spendableSource = "shielded";
/**
@@ -39,7 +39,7 @@
*/
function keyChangeHandler(event) {
if (event.detail.type === "account") {
- spendableSource = "unshielded";
+ spendableSource = "public";
} else {
spendableSource = "shielded";
}
diff --git a/web-wallet/src/routes/(app)/dashboard/send/__tests__/page.spec.js b/web-wallet/src/routes/(app)/dashboard/send/__tests__/page.spec.js
index dfb6e8d441..9bb1653637 100644
--- a/web-wallet/src/routes/(app)/dashboard/send/__tests__/page.spec.js
+++ b/web-wallet/src/routes/(app)/dashboard/send/__tests__/page.spec.js
@@ -28,8 +28,10 @@ vi.mock("$lib/stores", async (importOriginal) => {
const formatter = createCurrencyFormatter("en", "DUSK", 9);
const { balance, currentProfile } = mockedWalletStore.getMockedStoreValue();
-const formattedShielded = formatter(luxToDusk(balance.shielded.spendable));
-const formattedUnshielded = formatter(luxToDusk(balance.unshielded.value));
+const formattedShielded = formatter(
+ luxToDusk(balance.shieldedBalance.spendable)
+);
+const formattedPublic = formatter(luxToDusk(balance.publicBalance.value));
describe("Send page", () => {
afterEach(cleanup);
@@ -59,7 +61,7 @@ describe("Send page", () => {
expect(
container.querySelector(".contract-statuses__value")
- ).toHaveTextContent(formattedUnshielded);
+ ).toHaveTextContent(formattedPublic);
await fireEvent.input(addressTextbox, {
target: { value: currentProfile.address.toString() },
diff --git a/web-wallet/src/routes/(app)/dashboard/stake/+page.svelte b/web-wallet/src/routes/(app)/dashboard/stake/+page.svelte
index 68180db2aa..e93a912e40 100644
--- a/web-wallet/src/routes/(app)/dashboard/stake/+page.svelte
+++ b/web-wallet/src/routes/(app)/dashboard/stake/+page.svelte
@@ -55,7 +55,7 @@
$: statuses = [
{
label: "Spendable",
- value: duskFormatter(luxToDusk(balance.unshielded.value)),
+ value: duskFormatter(luxToDusk(balance.publicBalance.value)),
},
{
label: "Active Stake",
diff --git a/web-wallet/src/routes/components-showcase/Balances.svelte b/web-wallet/src/routes/components-showcase/Balances.svelte
index f3bff0a1cd..543af6f22d 100644
--- a/web-wallet/src/routes/components-showcase/Balances.svelte
+++ b/web-wallet/src/routes/components-showcase/Balances.svelte
@@ -1,11 +1,11 @@
@@ -14,8 +14,8 @@
fiatPrice={10}
locale="en"
tokenCurrency="DUSK"
- {shieldedAmount}
- {unshieldedAmount}
+ {shieldedBalance}
+ {publicBalance}
/>