Skip to content

Commit

Permalink
Progress!
Browse files Browse the repository at this point in the history
Fix bug preventing searching for testnet accounts
Add page: Create prediction market asset
Add page: Prediction market asset overview + actions
  • Loading branch information
grctest committed Sep 8, 2024
1 parent 74d27f0 commit d879791
Show file tree
Hide file tree
Showing 86 changed files with 7,888 additions and 563 deletions.
903 changes: 406 additions & 497 deletions package-lock.json

Large diffs are not rendered by default.

9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
"@radix-ui/react-toggle-group": "^1.1.0",
"@radix-ui/react-tooltip": "^1.1.2",
"@react-hook/throttle": "^2.2.0",
"@types/react": "^18.3.4",
"@types/react": "^18.3.5",
"@types/react-dom": "^18.3.0",
"assert": "^2.1.0",
"astro": "^4.14.5",
Expand All @@ -100,6 +100,7 @@
"create-hmac": "^1.1.7",
"date-fns": "^3.6.0",
"deep-equal": "^2.2.3",
"dompurify": "^3.1.6",
"ecurve": "^1.0.6",
"electron-devtools-installer": "^3.2.0",
"embla-carousel-react": "^8.2.0",
Expand All @@ -109,7 +110,7 @@
"isomorphic-ws": "^5.0.0",
"long": "^5.2.3",
"lucide-react": "^0.427.0",
"nanostores": "^0.11.2",
"nanostores": "^0.11.3",
"next-themes": "^0.3.0",
"react": "^18.3.1",
"react-day-picker": "^8.10.1",
Expand All @@ -136,7 +137,7 @@
"@babel/preset-env": "^7.25.3",
"@soda/friendly-errors-webpack-plugin": "^1.8.1",
"babel-loader": "^9.1.3",
"electron": "^32.0.1",
"electron": "^32.0.2",
"electron-builder": "^24.13.3",
"webpack": "^5.93.0",
"webpack-cli": "^5.1.4",
Expand All @@ -153,7 +154,7 @@
"eraseOffers": "rm -rf ./src/data/bitshares/allOffers.json && rm -rf ./src/data/bitshares_testnet/allOffers.json",
"eraseFees": "rm -rf ./src/data/bitshares/fees.json && rm -rf ./src/data/bitshares_testnet/fees.json",
"a": "",
"refreshData": "rm -rf ./src/data/bitshares/* && rm -rf ./src/data/bitshares_testnet/* && bun run fetchPools && bun run fetchFees && bun run fetchAssets && bun run fetchDynamicData && bun run fetchIssuers && bun run fetchBitassetData && bun run fetchOffers",
"refreshData": "rm -rf ./src/data/bitshares/* && rm -rf ./src/data/bitshares_testnet/* && bun run initData",
"initData": "bun run fetchPools && bun run fetchFees && bun run fetchAssets && bun run fetchDynamicData && bun run fetchIssuers && bun run fetchBitassetData && bun run fetchOffers",
"fetchPools": "bun run ./src/data/fetchPools.js",
"fetchAssets": "bun run ./src/data/fetchAssets.js",
Expand Down
4 changes: 1 addition & 3 deletions src/components/AccountSelect.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,12 @@ import { Button } from "@/components/ui/button";
import { Avatar } from "@/components/Avatar.tsx";

import { $currentUser, setCurrentUser, $userStorage, removeUser } from "@/stores/users.ts";
import { $currentNode } from "@/stores/node.ts";

import { accountSearch } from "@/nanoeffects/UserSearch.ts";

export default function AccountSelect(properties) {
const { t, i18n } = useTranslation(locale.get(), { i18n: i18nInstance });
const usr = useSyncExternalStore($currentUser.subscribe, $currentUser.get, () => true);
const currentNode = useStore($currentNode);

const [chain, setChain] = useState();
const [mode, setMode] = useState();
Expand All @@ -46,7 +44,7 @@ export default function AccountSelect(properties) {
async function lookupAccount() {
let response;
try {
response = await accountSearch(chain, accountInput, currentNode ? currentNode.url : null);
response = await accountSearch(chain, accountInput);
} catch (error) {
console.log({ error, msg: t("AccountSelect:noAccount") });
setErrorMessage(t("AccountSelect:noAccount"));
Expand Down
Loading

0 comments on commit d879791

Please sign in to comment.