Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
aba2cff
feat(earn): add Blend pool constants and API types
aristidesstaffieri Aug 19, 2026
f2f86ce
feat(earn): add Blend deposit transaction encoding primitives
aristidesstaffieri Aug 19, 2026
a028d4a
feat(earn): match Blend reserves to held balances by contract id
aristidesstaffieri Aug 19, 2026
999aab9
feat(earn): add Blend backend client
aristidesstaffieri Aug 19, 2026
09154af
feat(earn): add earn duck
aristidesstaffieri Aug 19, 2026
a7d5310
feat(earn): build and simulate Blend deposit transactions
aristidesstaffieri Aug 19, 2026
eb73572
feat(earn): add deposit flow helpers
aristidesstaffieri Aug 19, 2026
83df164
feat(earn): add Earn navigator and Home entry point
aristidesstaffieri Aug 19, 2026
c9d6d3c
feat(earn): add the Choose Token screen
aristidesstaffieri Aug 19, 2026
b4bc84b
feat(earn): add the pool details sheet
aristidesstaffieri Aug 20, 2026
59ac457
feat(earn): add the deposit amount screen
aristidesstaffieri Aug 20, 2026
075e8fe
feat(earn): add the review sheet
aristidesstaffieri Aug 20, 2026
09f28a5
feat(earn): add the deposit terminal screen
aristidesstaffieri Aug 20, 2026
a066b05
feat(earn): add earn analytics events and translations
aristidesstaffieri Aug 20, 2026
03aa037
fix(earn): address final review findings
aristidesstaffieri Aug 20, 2026
a0da0ad
fix(earn): replace the XLM fee buffer with a measured shortfall check
aristidesstaffieri Aug 20, 2026
d2f42c6
fix(earn): use the Figma asterisk icon for the Home Earn tile
aristidesstaffieri Aug 20, 2026
652ea91
feat(earn): add the first-run Earn intro sheet
aristidesstaffieri Aug 20, 2026
d8711f3
fix(earn): match the intro sheet to the Figma design
aristidesstaffieri Aug 21, 2026
4402a15
fix(earn): match the deposit flow to the Figma design
aristidesstaffieri Aug 21, 2026
af17e6f
fix(earn): complete the Figma design pass
aristidesstaffieri Aug 21, 2026
d652ebe
feat(earn): rebuild the Earn flow against the mobile Figma redesigns
aristidesstaffieri Aug 24, 2026
9133848
feat(earn): add swap-within-Earn
aristidesstaffieri Aug 24, 2026
5056ab7
Merge main into feat/earn-deposit
CassioMG Nov 11, 2026
b5745a9
fix(earn): render the Earn glow in light and dark themes
CassioMG Nov 11, 2026
0720d76
feat(earn): move Earn's sheets to the Varial sheet header
CassioMG Nov 11, 2026
5faaa67
refactor(earn): follow main's XDR and asset-identity conventions
CassioMG Nov 11, 2026
6747ac4
feat(earn): deposit into the Blend v2.1 Fixed pools
CassioMG Nov 11, 2026
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
37 changes: 37 additions & 0 deletions __tests__/components/AccountQrDisplay.test.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
import { AccountQrDisplay } from "components/AccountQrDisplay";
import { renderWithProviders } from "helpers/testUtils";
import React from "react";

jest.mock("react-native-qrcode-svg");

jest.mock("hooks/useAppTranslation", () => () => ({
t: (key: string) => {
const translations: Record<string, string> = {
"scanReceiveScreen.receive.network": "Stellar",
};
return translations[key] || key;
},
}));

const publicKey = "GACJYENHYW2LGHBNNGNZ4NCBGZYVTGTZM4CJLQIOQQ5IUZU3SYWOW5EK";

describe("AccountQrDisplay", () => {
it("renders the account name, truncated address, and the network pill", () => {
const { getByText } = renderWithProviders(
<AccountQrDisplay publicKey={publicKey} accountName="Account 1" />,
);

expect(getByText("Account 1")).toBeTruthy();
expect(getByText("GACJ...W5EK")).toBeTruthy();
expect(getByText("Stellar")).toBeTruthy();
});

it("renders an empty name line when no account name is provided", () => {
const { getByText, queryByText } = renderWithProviders(
<AccountQrDisplay publicKey={publicKey} />,
);

expect(getByText("GACJ...W5EK")).toBeTruthy();
expect(queryByText("undefined")).toBeNull();
});
});
Loading
Loading