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

[drft] drp xtndd #700

Closed
wants to merge 1 commit into from
Closed

[drft] drp xtndd #700

wants to merge 1 commit into from

Conversation

vsubhuman
Copy link
Contributor

No description provided.

@vsubhuman vsubhuman changed the title drp xtndd [drft] drp xtndd Nov 10, 2024
@@ -29,6 +30,93 @@ pub enum DRepKind {
AlwaysNoConfidence,
}

#[wasm_bindgen]
#[derive(Clone, Debug, Hash, Eq, Ord, PartialEq, PartialOrd)]
pub enum DRepExtendedId {
Copy link
Contributor

Choose a reason for hiding this comment

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

My suggestion to fully implement CIP-129 GovernanceIdentifier to not have N implementations of different things that just are subset of GovernanceIdentifier

self.internal_to_bech32("drep".to_string())
}

pub fn to_bech32_cip129(&self) -> Result<String, JsError> {
Copy link
Contributor

Choose a reason for hiding this comment

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

probably we need to encode only in cip129 format and do not provide API to encode in a old format when cip129 will be merged

@vsubhuman
Copy link
Contributor Author

After additional discussing it was agreed to take a different approach

@vsubhuman vsubhuman closed this Nov 14, 2024
@vsubhuman vsubhuman deleted the ruslan/prpsl branch November 14, 2024 11:23
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.

2 participants