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

Phoenix v1/crate boundaries #8

Merged
merged 4 commits into from Feb 14, 2023
Merged

Conversation

jarry-xiao
Copy link
Contributor

@jarry-xiao jarry-xiao commented Feb 14, 2023

Changes:

  • Partition structs and functions into pub(crate) and pub
  • Introduce a WritableMarket trait to create a logical separation between read/write functionality in the market


[lib]
crate-type = ["cdylib", "lib"]
name = "phoenix"
Copy link
Contributor

Choose a reason for hiding this comment

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

should we call this phoenix-v1?

idl/package.json Outdated
"dependencies": {
"@metaplex-foundation/rustbin": "^0.3.1"
}
"name": "phoenix",
Copy link
Contributor

Choose a reason for hiding this comment

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

phoenix-v1

idl/package.json Outdated
}
"name": "phoenix",
"version": "1.0.0",
"description": "SDK for phoenix",
Copy link
Contributor

Choose a reason for hiding this comment

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

probably also phoenix-v1?

idl/package.json Outdated
"version": "1.0.0",
"description": "SDK for phoenix",
"main": "index.ts",
"license": "MIT",
Copy link
Contributor

Choose a reason for hiding this comment

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

is this correct? what does this apply to?

@@ -1,15 +1,15 @@
pub mod accounts;
pub mod dispatch_market;
pub mod error;
pub mod event_recorder;
pub(crate) mod event_recorder;
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: sort imports so pub(crate)s go together

@jarry-xiao jarry-xiao merged commit 7c5321e into master Feb 14, 2023
eugene-chen pushed a commit that referenced this pull request Feb 14, 2023
Changes:
- Partition structs and functions into `pub(crate)` and `pub`
- Introduce a `WritableMarket` trait to create a logical separation
between read/write functionality in the market

Run clippy and add new instruction file
@jarry-xiao jarry-xiao deleted the phoenix-v1/crate-boundaries branch May 1, 2023 14:15
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.

None yet

2 participants