Skip to content

Commit

Permalink
nit: Update deposit script fields to be hex strings and remove commen…
Browse files Browse the repository at this point in the history
…ted out code.
  • Loading branch information
AshtonStephens committed Oct 2, 2024
1 parent 90ac297 commit dd644fb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
8 changes: 4 additions & 4 deletions .generated-sources/emily/openapi/emily-openapi-spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -1305,7 +1305,7 @@
},
"depositScript": {
"type": "string",
"description": "Raw deposit script binary."
"description": "Raw deposit script binary in hex."
},
"fulfillment": {
"allOf": [
Expand Down Expand Up @@ -1334,7 +1334,7 @@
},
"reclaimScript": {
"type": "string",
"description": "Raw reclaim script binary."
"description": "Raw reclaim script binary in hex."
},
"status": {
"$ref": "#/components/schemas/Status"
Expand Down Expand Up @@ -1378,7 +1378,7 @@
},
"depositScript": {
"type": "string",
"description": "Raw deposit script binary."
"description": "Raw deposit script binary in hex."
},
"lastUpdateBlockHash": {
"type": "string",
Expand All @@ -1396,7 +1396,7 @@
},
"reclaimScript": {
"type": "string",
"description": "Raw reclaim script binary."
"description": "Raw reclaim script binary in hex."
},
"status": {
"$ref": "#/components/schemas/Status"
Expand Down
10 changes: 4 additions & 6 deletions emily/handler/src/api/models/deposit/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ pub struct Deposit {
pub status_message: String,
/// Deposit parameters
pub parameters: DepositParameters,
/// Raw reclaim script binary.
/// Raw reclaim script binary in hex.
pub reclaim_script: String,
/// Raw deposit script binary.
/// Raw deposit script binary in hex.
pub deposit_script: String,
/// Details about the on chain artifacts that fulfilled the deposit.
#[serde(skip_serializing_if = "Option::is_none")]
Expand Down Expand Up @@ -80,8 +80,6 @@ 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,
}

/// Reduced version of the Deposit data.
Expand Down Expand Up @@ -119,9 +117,9 @@ pub struct DepositInfo {
pub last_update_block_hash: String,
/// The status of the deposit.
pub status: Status,
/// Raw reclaim script binary.
/// Raw reclaim script binary in hex.
pub reclaim_script: String,
/// Raw deposit script binary.
/// Raw deposit script binary in hex.
pub deposit_script: String,
}

Expand Down

0 comments on commit dd644fb

Please sign in to comment.