cln-grpc: API updates after 8dd51d127f

Changing the JSON schemas changes this, and I didn't rebuild!

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell 2022-05-18 10:53:22 +09:30
parent abd01a1701
commit c7d359baf4
4 changed files with 5 additions and 0 deletions

View file

@ -580,6 +580,7 @@
"ListFunds.outputs[].blockheight": 8,
"ListFunds.outputs[].output": 2,
"ListFunds.outputs[].redeemscript": 6,
"ListFunds.outputs[].reserved": 9,
"ListFunds.outputs[].scriptpubkey": 4,
"ListFunds.outputs[].status": 7,
"ListFunds.outputs[].txid": 1

View file

@ -272,6 +272,7 @@ message ListfundsOutputs {
optional string address = 5;
optional bytes redeemscript = 6;
ListfundsOutputsStatus status = 7;
bool reserved = 9;
optional uint32 blockheight = 8;
}

View file

@ -188,6 +188,7 @@ impl From<&responses::ListfundsOutputs> for pb::ListfundsOutputs {
address: c.address.clone(), // Rule #2 for type string?
redeemscript: c.redeemscript.as_ref().map(|v| hex::decode(&v).unwrap()), // Rule #2 for type hex?
status: c.status as i32,
reserved: c.reserved.clone(), // Rule #2 for type boolean
blockheight: c.blockheight.clone(), // Rule #2 for type u32?
}
}

View file

@ -1286,6 +1286,8 @@ pub mod responses {
// Path `ListFunds.outputs[].status`
#[serde(rename = "status")]
pub status: ListfundsOutputsStatus,
#[serde(alias = "reserved")]
pub reserved: bool,
#[serde(alias = "blockheight", skip_serializing_if = "Option::is_none")]
pub blockheight: Option<u32>,
}