-
Notifications
You must be signed in to change notification settings - Fork 0
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: pop drink #1
Conversation
fix: format with pop-node config
refactor: repo structure
crates/pop-drink/src/lib.rs
Outdated
@@ -0,0 +1,13 @@ | |||
pub use drink::*; | |||
pub use ink_sandbox::api::{assets_api::AssetsAPI}; |
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.
Perhaps export all the apis available under mod api
, provided it doesnt clash with drink?
@@ -0,0 +1,13 @@ | |||
pub use drink::*; |
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.
There are quite a few functions in the examples tests which can be moved here to the crate root, so that they can be used across all example contracts and more importantly, all dev contracts.
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.
Yes this was definitely the plan. Wanted to see whether we were happy with them first, before providing them to devs. Which we now are
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.
Few issues occurs after the repo restructure PR merged. See:
…ives_conversion refactor: pop primitives conversion
fix: public methods documentation
docs: drink
feat: runtime error
17485c6
to
b735c02
Compare
@@ -28,7 +28,7 @@ pub mod devnet { | |||
pub use crate::error::*; | |||
|
|||
pub mod v0 { | |||
pub use pop_api::primitives::v0::{self, *}; | |||
pub use pop_api::primitives::v0::{self, Error as ApiError, *}; |
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 used somewhere? Line 34 imports it as v0::Error
Sets up the repo for pop drink.