Skip to content
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
7 changes: 3 additions & 4 deletions client/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { InAppBrowserWarning } from "@/_components/status/in-app-browser-warning
import { AboutPage } from "@/pages/about";
import AccountPage from "@/pages/account";
import AccountsPage from "@/pages/accounts";
import AppStatePage from "@/pages/app-state";
import ContactsPage from "@/pages/contacts";
import DecryptPage from "@/pages/decrypt";
import EncryptPage from "@/pages/encrypt";
Expand All @@ -12,7 +13,6 @@ import SendPage from "@/pages/send";
import { SettingsPage } from "@/pages/settings";
import SharePage from "@/pages/share";
import StatusPage from "@/pages/status";
import TestingPage from "@/pages/testing";
import TransactionsPage from "@/pages/transactions";
import { HashRouter, Route, Routes } from "react-router-dom";
import { AuthProvider } from "./_providers/auth-provider";
Expand Down Expand Up @@ -99,12 +99,11 @@ function App() {
<Route path="/share" element={<SharePage />} />
<Route path="/status" element={<StatusPage />} />

{/* TODO remove once confirmed that everything works */}
<Route
path="/testing"
path="/state"
element={
<ProtectedRoute>
<TestingPage />
<AppStatePage />
</ProtectedRoute>
}
/>
Expand Down
17 changes: 17 additions & 0 deletions client/src/_constants/seo-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,23 @@ export const PAGE_METADATA: Record<string, PageMetadata> = {
"Ethereum development",
],
},
state: {
header: "App State",
title: "commbank.eth | App State",
description: "View account state and sync status",
path: "/state",
ogImage: OG_IMAGE,
ogImageAlt: OG_IMAGE_ALT,
keywords: [
"commbank.eth account",
"open source finance",
"privacy technology",
"blockchain project",
"passkey",
"credentials management",
"Ethereum development",
],
},
};

export function getPageUrl(path: string): string {
Expand Down
1 change: 1 addition & 0 deletions client/src/_hooks/use-chainlink-price.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ export const useChainlinkPrice = (
description: String(description),
};
},
retry: 3,
refetchInterval: options?.refetchInterval ?? 60000, // Default: refetch every 60 seconds
enabled: options?.enabled ?? true,
});
Expand Down
1 change: 1 addition & 0 deletions client/src/_hooks/use-erc20-balance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ export const useERC20Balance = (asset?: SupportedAsset | null) => {
return balance;
},
enabled: !!address && !!asset,
retry: 3,
});

return queryFn;
Expand Down
4 changes: 2 additions & 2 deletions client/src/_hooks/use-indexer-leafs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ interface LeafInsertedResponse {
envio_Commbankdoteth_LeafInserted: IndexerLeafInserted[];
}

const fetchIndexerLeafs = async (
export const fetchIndexerLeafs = async (
limit: number = 50,
offset: number = 0,
): Promise<IndexerLeafInserted[]> => {
Expand All @@ -29,7 +29,7 @@ export const useIndexerLeafs = (limit: number = 50, offset: number = 0) => {
return useQuery({
queryKey: ["indexer-leafs", limit, offset],
queryFn: () => fetchIndexerLeafs(limit, offset),
retry: 1,
retry: 3,
refetchInterval: 20_000, // refetch every 20 seconds
});
};
2 changes: 1 addition & 1 deletion client/src/_hooks/use-indexer-notes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const useIndexerNotes = (limit: number = 50, offset: number = 0) => {
return useQuery({
queryKey: ["indexer-notes", limit, offset],
queryFn: () => fetchIndexerNotes(limit, offset),
retry: 1,
retry: 3,
refetchInterval: 20_000, // refetch every 20 seconds
});
};
2 changes: 1 addition & 1 deletion client/src/_hooks/use-indexer-nullifiers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const useIndexerNullifiers = (
return useQuery({
queryKey: ["indexer-nullifiers", limit, offset],
queryFn: () => fetchIndexerNullifiers(limit, offset),
retry: 1,
retry: 3,
refetchInterval: 20_000, // refetch every 20 seconds
});
};
1 change: 1 addition & 0 deletions client/src/_hooks/use-private-balances.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export function usePrivateBalances(assets: SupportedAsset[]) {

return balances;
},
retry: 3,
enabled: assets.length > 0,
});
}
4 changes: 3 additions & 1 deletion client/src/_hooks/use-public-transfer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@ export function usePublicTransfer({
return useMutation({
mutationFn: async ({ amount, asset, recipient }: PublicTransferParams) => {
if (!recipient.evmAddress) {
throw new Error("Recipient must have an EVM address for public transfer");
throw new Error(
"Recipient must have an EVM address for public transfer",
);
}

// Generate unique transaction ID upfront
Expand Down
1 change: 1 addition & 0 deletions client/src/_hooks/use-user-asset-notes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export function useUserAssetNotes(assetId: string | undefined) {
(note) => BigInt(note.assetId) === BigInt(assetId ?? "0"),
);
},
retry: 3,
enabled: !!assetId,
});
}
1 change: 1 addition & 0 deletions client/src/_hooks/use-user-notes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ export function useUserNotes() {
return useQuery({
queryKey: ["notes"],
queryFn: getAllNotes,
retry: 3,
});
}
4 changes: 2 additions & 2 deletions client/src/lib/gas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ export async function getAdjustedGasPrice(
return parseUnits("2", "gwei");
}

// Add 50% buffer to handle base fee increases between estimation and inclusion
return (basePrice * 150n) / 100n;
// Add 20% buffer to handle base fee increases between estimation and inclusion
return (basePrice * 120n) / 100n;
}
4 changes: 2 additions & 2 deletions client/src/pages/about.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,11 @@ In order to facilitate a smoother user experience with regards to submitting tra

Your use of this software is your own choice, just like everything else. It might have some bugs or unexpected behaviours, so don't do anything unless it makes sense.

With regards to the legalities of commbank.eth's private unstoppable money - more documentation is on the way, but in the mean time that's a conversation I think is best done at the pub.
With regards to the legalities of commbank.eth's private unstoppable money - more documentation is on the way, but in the mean time that is a conversation I think is best had at the pub.

If you're curious about how commbank.eth works - you can look at **all** of the [source code in github](https://github.com/hooperben/commbank.eth), all of which is free to use - **forever**.

Found a bug? Create an issue in the Github or reach out to the project on [twitter](https://twitter.com/commbankdoteth).
If you've found a bug? Create an issue in the Github or reach out to the project on [twitter](https://twitter.com/commbankdoteth).

Thanks for reading, take it easy.
`;
Expand Down
Loading