Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(bonsai-core): bonsai ontology #1388

Merged
merged 12 commits into from
Jan 6, 2025
Merged

feat(bonsai-core): bonsai ontology #1388

merged 12 commits into from
Jan 6, 2025

Conversation

tyleroooo
Copy link
Contributor

No description provided.

@tyleroooo tyleroooo requested a review from a team as a code owner December 20, 2024 01:47
Copy link

vercel bot commented Dec 20, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
v4-staging ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 6, 2025 9:56pm
v4-testnet ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 6, 2025 9:56pm

@@ -42,6 +42,17 @@
"no-multi-assign": "off",
"no-nested-ternary": "off",
"no-param-reassign": ["error", { "props": false }],
"no-restricted-imports": [
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no importing from abacus-ts except from lib and ontology and summaryTypes


// all data should be accessed via selectrs in this file
// no files outside abacus-ts should access anything within abacus-ts except this file
export const MegalodonCore = {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is meant to be THE place you look up the basic data for displaying the app, the authoritative source, the root of all other selectors

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one downside is that this will break tree shaking for everyone who uses this object :/

},
} as const satisfies NestedSelectors;

export const MegalodonHelpers = {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is for common derived data, it's allowed to be messier

@tyleroooo tyleroooo changed the title feat: abacus-ts ontology feat: bonsai ontology Dec 20, 2024
@tyleroooo tyleroooo changed the title feat: bonsai ontology feat(bonsai-core): bonsai ontology Jan 6, 2025
src/abacus-ts/ontology.ts Outdated Show resolved Hide resolved
import { selectCurrentMarketInfo } from './markets';

export const selectAllAssetsInfo = createSelector([selectRawAssetsData], (assets) =>
transformAssetsInfo(assets)
);

export const selectAllAssetsInfoLoading = createSelector(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

createAppSelector?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AHHH good catch

@tyleroooo tyleroooo enabled auto-merge (squash) January 6, 2025 21:45
@tyleroooo tyleroooo merged commit 5b16007 into main Jan 6, 2025
8 checks passed
@tyleroooo tyleroooo deleted the tu/megalodon-ontology branch January 6, 2025 21:56
tinaszheng pushed a commit that referenced this pull request Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants