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(ECO-2876): Add arena candlesticks to SDK #640

Merged
merged 15 commits into from
Mar 4, 2025
Merged

feat(ECO-2876): Add arena candlesticks to SDK #640

merged 15 commits into from
Mar 4, 2025

Conversation

CRBl69
Copy link
Collaborator

@CRBl69 CRBl69 commented Feb 20, 2025

Description

This PR updates the SDK with the new candlestick types.

It adds types for the arena_candlestick table.

Copy link

vercel bot commented Feb 20, 2025

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

Name Status Preview Comments Updated (UTC)
emojicoin-dot-fun ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 4, 2025 8:27pm
emojicoin-dot-fun-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 4, 2025 8:27pm

Copy link
Collaborator

@xbtmatt xbtmatt left a comment

Choose a reason for hiding this comment

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

I would be extra safe with this and not include it in any of the existing Period stuff, neither types nor the enum. In it should be typed differently than the other periods, because it's not a contract type. It will make it fairly annoying to work with, but if it's included in the existing types, TypeScript won't warn us about some functions breaking (that should break)

They're just used in so many different places and there are assumptions in a few places on the number of periods. (check calculatePeriodBoundariesCrossed, and in general a few of the utility/conversion functions that were missed at the bottom of sdk/src/const.ts)

Honestly, it might be a little difficult to properly add it in, so I'm okay if you remove them entirely. Although they would be really nice to have, especially for testing, I think they might be a little too difficult to add properly.

I apologize for suggesting we use them without fully thinking it through, there's just so many places you'd need to update it to get it working. It won't fail until you run the frontend, either...

We can discuss on call tomorrow, too

Copy link
Collaborator

@xbtmatt xbtmatt left a comment

Choose a reason for hiding this comment

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

I think this needs to be updated, right? The candlesticks aren't nullable anymore

@xbtmatt xbtmatt requested a review from alnoki March 4, 2025 08:22
@xbtmatt xbtmatt added this pull request to the merge queue Mar 4, 2025
@xbtmatt xbtmatt removed this pull request from the merge queue due to a manual request Mar 4, 2025
@xbtmatt xbtmatt enabled auto-merge March 4, 2025 20:44
@xbtmatt xbtmatt added this pull request to the merge queue Mar 4, 2025
Merged via the queue into arena with commit 71b2ddf Mar 4, 2025
9 of 10 checks passed
@xbtmatt xbtmatt deleted the ECO-2876 branch March 4, 2025 21:12
xbtmatt added a commit that referenced this pull request Mar 5, 2025
…and README to support `arena` (#565)

[ECO-2785] Update event types across the SDK and frontend to support broker-emitted arena events (#566)

[ECO-2786] Add e2e tests for all arena websocket events except `Melee` events (#567)

[ECO-2789] Update the broker image version for the `alpha` stack to use `5.0.1`: arena event emission support (#568)

[ECO-2664] Add home page arena update (#508)

Co-authored-by: Matt <[email protected]>

[ECO-2588] Add market page banner and navigation link to arena (#512)

Co-authored-by: Matt <[email protected]>

[ECO-2802] Fix minor import issue (#576)

[ECO-2807] Have the `deployer` service start a very short arena; add tests to set next melee duration (#579)

[ECO-2812] Kill stacks (#586)

[ECO-2809] Restrict number of lines changed in a PR (#582)

[ECO-2816] Deploy arena stack (#590)

[ECO-2801] Attempt to properly rebase arena feature branch (#575)

Co-authored-by: Bogdan Crisan <[email protected]>

[ECO-2815] Update SDK according to processor changes (#589)

[ECO-2828] Add shadcn styles to `global.css` for prototyping (#593)

[ECO-2811] Bump processor submodule; add/separate SDK test commands for arena; change skip to page; add arena routes to `ROUTES` (#585)

ci(ECO-2840): Add conventional commit check (#607)

feat(ECO-2837): Add configurable arena indexing (#608)

ci(ECO-2482): Disable submodule check when PR not to main (#610)

chore(ECO-2843): Update stack deploy files (#611)

fix(ECO-2845): Don't try to parse user agent string if it's empty (#613)

chore(ECO-2844): Revive stack deploy files (#612)

fix(ECO-2846): Remove the blur on hover effect for performance and UX reasons (#614)

chore(ECO-2847): Remove disabling arena indexing override (#616)

[ECO-2813] Add a `/test-utils` page for updating arena state on a local network; add shadcn for prototyping components (#587)

test(ECO-2808): Add E2E tests for arena processor refactor (#581)

Co-authored-by: Matt <[email protected]>

chore(ECO-2851): Clean up `PrivateChart.tsx` and make the inner logic more modular (#618)

[ECO-2826] Add happy path indexer testing for enter, swap, and exit (#591)

Co-authored-by: Matt <[email protected]>

fix(ECO-2853):  Fix object comparison in e2e tests that accidentally got merged (#621)

test(ECO-2827): Add arena leaderboard testing (#592)

Co-authored-by: Matt <[email protected]>

ci(ECO-2855): Add GitHub actions merge queue support (#622)

docs(ECO-2860): Document emojicoin arena audit (#625)

ci(ECO-2870): Update docs site build to run each PR (#627)

fix(ECO-2848): Update `next.config.mjs` `experimental.staleTimes` to remove opinionated default caching behavior (#617)

chore(ECO-2880): Simplify PR template for conventional commits (#631)

test(ECO-2887): Update loop test declaration per Aptos Labs guidance (#632)

chore(ECO-2875): Miscellaneous clean-up and stylistic fixes for consistency (#630)

chore(ECO-2889): Kill `arena` stack in preparation for cold upgrade (#634)

chore(ECO-2891): Revive `arena` stack with `v6.0.0-alpha.1` versions (#635)

chore(ECO-2857): Update SDK to match new processor fields (#624)

Co-authored-by: Matt <[email protected]>

chore(ECO-2888): Bump arena `processor` submodule to `v6.0.0-alpha.1`; build corresponding new `broker` image (#633)

test(ECO-2835): Test leaderboard exit status (#605)

Co-authored-by: Matt <[email protected]>

test(ECO-2862): Add missing test cases for arena processing (#626)

Co-authored-by: Matt <[email protected]>

feat(ECO-2876): Add arena candlesticks to SDK (#640)

Co-authored-by: Matt <[email protected]>

chore(ECO-2956): Prepare the `alpha` stack for revival by killing it (#670)

chore(ECO-2957): Revive the `alpha` stack with `6.0.0` (#671)
xbtmatt added a commit that referenced this pull request Mar 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants