UNPKG

@quirks/store

Version:
20 lines (19 loc) 441 B
import { assertIsDefined as i } from "@quirks/core"; import { store as a } from "./index2.js"; function d() { return a.getState().wallet; } function h(t) { const n = a.getState(), e = n.chains.find((c) => c.chain_name === t); i(e); const s = n.getAddress(e.chain_id); return i(s), s; } function f(t) { return a.getState().chains.find((e) => e.chain_name === t); } export { h as getAddress, f as getChain, d as getWallet };