-
Notifications
You must be signed in to change notification settings - Fork 5
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
595 feature provide raw transaction data for emily api deposit operations #601
Changes from 4 commits
e21faeb
ebefcce
990fb13
90ac297
dd644fb
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 |
---|---|---|
|
@@ -49,6 +49,10 @@ pub struct Deposit { | |
pub status_message: String, | ||
/// Deposit parameters | ||
pub parameters: DepositParameters, | ||
/// Raw reclaim script binary. | ||
pub reclaim_script: String, | ||
/// Raw deposit script binary. | ||
pub deposit_script: String, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. qq: I was looking around and noticed that those scripts, as well as things like There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah this isn't specified in the spec either. Can we make this a hex string? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This will only be a comment change for now since these aren't being messed with. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done. Changed the comment to the following: /// Raw reclaim script binary in hex.
pub reclaim_script: String,
/// Raw deposit script binary in hex.
pub deposit_script: String, There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That's cool see. I guess that means that we require the input be a hex string. Should we clarify that in an addendum to the spec, or just update it as is now? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. update as it is now |
||
/// Details about the on chain artifacts that fulfilled the deposit. | ||
#[serde(skip_serializing_if = "Option::is_none")] | ||
pub fulfillment: Option<Fulfillment>, | ||
|
@@ -76,8 +80,8 @@ pub struct DepositParameters { | |
pub max_fee: u64, | ||
/// Bitcoin block height at which the reclaim script becomes executable. | ||
pub lock_time: u64, | ||
/// Raw reclaim script. | ||
pub reclaim_script: String, | ||
// /// Raw reclaim script. | ||
// pub reclaim_script: String, | ||
matteojug marked this conversation as resolved.
Show resolved
Hide resolved
|
||
} | ||
|
||
/// Reduced version of the Deposit data. | ||
|
@@ -115,6 +119,10 @@ pub struct DepositInfo { | |
pub last_update_block_hash: String, | ||
/// The status of the deposit. | ||
pub status: Status, | ||
/// Raw reclaim script binary. | ||
pub reclaim_script: String, | ||
/// Raw deposit script binary. | ||
pub deposit_script: String, | ||
} | ||
|
||
/// Create a DepositInfo, which has a subset of the data within a Deposit, from a Deposit. | ||
|
@@ -128,6 +136,8 @@ impl From<Deposit> for DepositInfo { | |
last_update_height: deposit.last_update_height, | ||
last_update_block_hash: deposit.last_update_block_hash, | ||
status: deposit.status, | ||
reclaim_script: deposit.reclaim_script, | ||
deposit_script: deposit.deposit_script, | ||
} | ||
} | ||
} |
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.
Prevents the missing
bootstrap.zip
case when running the makefile command.