-
Notifications
You must be signed in to change notification settings - Fork 4
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
Chaincash store updates/impl #43
base: master
Are you sure you want to change the base?
Conversation
80a10ea
to
a877773
Compare
docs/MODEL.md
Outdated
int id PK | ||
int note_id FK | ||
int type "Type enum of the denomination, 0 = gold" |
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.
would make sense to have a denomination for erg as well? so this is used polymorphically?
impl TryFrom<&ErgoBox> for ReserveBoxSpec { | ||
type Error = Error; | ||
|
||
fn try_from(value: &ErgoBox) -> Result<Self, Self::Error> { |
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 also check the ergo tree to ensure its a reserve box
Ok(reg.v.try_extract_into::<EcPoint>().unwrap()) | ||
} else { | ||
Err(Error::InvalidType { | ||
field: "owner".to_owned(), |
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.
this field could be &'static str
typed
node.sign_and_submit
to return the signed transaction so we have access toErgoBox
es, we need them for box ids