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
Conversation
|
||
[lib] | ||
crate-type = ["cdylib", "lib"] | ||
name = "phoenix" |
There was a problem hiding this comment.
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", |
There was a problem hiding this comment.
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", |
There was a problem hiding this comment.
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", |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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
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
Changes:
pub(crate)
andpub
WritableMarket
trait to create a logical separation between read/write functionality in the market