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

[deepbook] - make critbit tree and order getters public #14927

Merged
merged 3 commits into from
Nov 22, 2023

Conversation

patrickkuo
Copy link
Contributor

Description

Make critbit tree and order getters public

Test Plan

There are no logic changes, rely on existing unit tests.

If your changes are not user-facing and not a breaking change, you can skip the following section. Otherwise, please indicate what changed, and then add to the Release Notes section as highlighted during the release process.

Type of Change (Check all that apply)

  • protocol change
  • user-visible impact
  • breaking change for a client SDKs
  • breaking change for FNs (FN binary must upgrade)
  • breaking change for validators or node operators (must upgrade binaries)
  • breaking change for on-chain data layout
  • necessitate either a data wipe or data migration

Release notes

Copy link

vercel bot commented Nov 20, 2023

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

Name Status Preview Comments Updated (UTC)
sui-core ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 21, 2023 11:49am
sui-typescript-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 21, 2023 11:49am
4 Ignored Deployments
Name Status Preview Comments Updated (UTC)
explorer ⬜️ Ignored (Inspect) Visit Preview Nov 21, 2023 11:49am
multisig-toolkit ⬜️ Ignored (Inspect) Visit Preview Nov 21, 2023 11:49am
mysten-ui ⬜️ Ignored (Inspect) Visit Preview Nov 21, 2023 11:49am
sui-kiosk ⬜️ Ignored (Inspect) Visit Preview Nov 21, 2023 11:49am

@patrickkuo patrickkuo force-pushed the pat/deep-book-getters branch from f9f937a to 9521e70 Compare November 20, 2023 15:17
@vercel vercel bot temporarily deployed to Preview – mysten-ui November 20, 2023 15:19 Inactive
@patrickkuo patrickkuo force-pushed the pat/deep-book-getters branch from 5e0d90d to 24ea663 Compare November 20, 2023 22:38
@vercel vercel bot temporarily deployed to Preview – mysten-ui November 20, 2023 22:39 Inactive
@healthydeve
Copy link
Contributor

We also need to run the test generation under sui-swarm-config

@@ -1858,27 +1858,43 @@ module deepbook::clob_v2 {
}

// Methods for accessing pool data, used by the order_query package
public(friend) fun asks<BaseAsset, QuoteAsset>(pool: &Pool<BaseAsset, QuoteAsset>): &CritbitTree<TickLevel> {
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we know if changing these functions have backwards compatibility issues? cc: @sblackshear @amnn

Copy link
Member

Choose a reason for hiding this comment

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

It's fine to make these public (and not public(friend)), but it does mean that in future, you will have to preserve the signature of this function.

@patrickkuo patrickkuo merged commit 1a014d5 into main Nov 22, 2023
33 checks passed
@patrickkuo patrickkuo deleted the pat/deep-book-getters branch November 22, 2023 16:42
tzakian pushed a commit that referenced this pull request Nov 29, 2023
## Description 

Make critbit tree and order getters public

## Test Plan 

There are no logic changes, rely on existing unit tests.
---
If your changes are not user-facing and not a breaking change, you can
skip the following section. Otherwise, please indicate what changed, and
then add to the Release Notes section as highlighted during the release
process.

### Type of Change (Check all that apply)

- [ ] protocol change
- [ ] user-visible impact
- [ ] breaking change for a client SDKs
- [ ] breaking change for FNs (FN binary must upgrade)
- [ ] breaking change for validators or node operators (must upgrade
binaries)
- [ ] breaking change for on-chain data layout
- [ ] necessitate either a data wipe or data migration

### Release notes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants