-
Notifications
You must be signed in to change notification settings - Fork 6
feat:Add decoder and callbacks for Governance Protocol Parameters and Delegation #459
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,18 +1,89 @@ | ||||||
| use anyhow::{anyhow, Result}; | ||||||
| use bigdecimal::BigDecimal; | ||||||
| use minicbor::Decode; | ||||||
| use num_rational::Ratio; | ||||||
| use num_traits::ToPrimitive; | ||||||
| use serde::de::Error; | ||||||
| use serde::{Deserialize, Deserializer, Serialize, Serializer}; | ||||||
| use serde_with::{DeserializeAs, SerializeAs}; | ||||||
| use std::fmt; | ||||||
| use std::ops::Deref; | ||||||
| use std::str::FromStr; | ||||||
|
|
||||||
| pub type RationalNumber = num_rational::Ratio<u64>; | ||||||
| #[derive(serde::Deserialize, serde::Serialize, Debug, Clone, PartialEq, Eq, PartialOrd, Ord)] | ||||||
|
||||||
| #[derive(serde::Deserialize, serde::Serialize, Debug, Clone, PartialEq, Eq, PartialOrd, Ord)] | |
| #[derive(serde::Deserialize, serde::Serialize, Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)] |
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.
I think we should add a new target or rename this.
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.
On the fence about this, as it now matches what CI/CD does, which is my intent. One-stop shopping! I like a simple name when possible. I don't know if anyone else was even using it.
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.
Thought about it some more and made the change, though you may not like it. I used "check" for the new name. It wasn't taken yet, and it can be my one-stop-shopping target for CI/CD compliance.