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

Expose RgbWallet Structs #32

Closed
wants to merge 1 commit into from
Closed

Conversation

crisdut
Copy link
Member

@crisdut crisdut commented Oct 26, 2023

@codecov
Copy link

codecov bot commented Oct 26, 2023

Codecov Report

Merging #32 (5dc0651) into master (083d5f0) will not change coverage.
The diff coverage is 0.0%.

@@          Coverage Diff          @@
##           master    #32   +/-   ##
=====================================
  Coverage     0.0%   0.0%           
=====================================
  Files           8      8           
  Lines         824    828    +4     
=====================================
- Misses        824    828    +4     
Flag Coverage Δ
rust 0.0% <0.0%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
src/descriptor.rs 0.0% <0.0%> (ø)
src/wallet.rs 0.0% <0.0%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

all = ["cli", "log"]
default = ["cli", "electrum", "log"]
Copy link
Member

Choose a reason for hiding this comment

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

Why do we need cli feature as a default? Libraries do not need it

Copy link
Member

Choose a reason for hiding this comment

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

Probably fine to remove it from here

Copy link
Member

@dr-orlovsky dr-orlovsky 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 we should wait with this PR for v0.11 since 99% of these structures will move to BP wallet in that release

@@ -40,6 +40,7 @@ pub struct TerminalPath {
}

#[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)]
#[derive(Serialize, Deserialize)]
Copy link
Member

Choose a reason for hiding this comment

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

This doesn't need serde since has to be serialized as string representation. If you need binary serialziation as well, than we need a custom serde implementation which serializes as string for human_readable case

@@ -28,6 +28,7 @@ use crate::descriptor::DeriveInfo;
use crate::{RgbDescr, SpkDescriptor};

#[derive(Copy, Clone, Ord, PartialOrd, Eq, PartialEq, Hash, Debug, Display)]
#[derive(Serialize, Deserialize)]
Copy link
Member

Choose a reason for hiding this comment

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

Ibid as for the DeriveInfo

@crisdut
Copy link
Member Author

crisdut commented Nov 6, 2023

I think we should wait with this PR for v0.11 since 99% of these structures will move to BP wallet in that release

Okay fine.

As soon as version 0.11 is released, I will check if anything from this PR was left out.

Thanks

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