feat(server): ProposalKind ::GrantWalletAccess and ::ApproveServerUpdate

This commit is contained in:
CleverWild
2026-06-13 15:51:22 +02:00
committed by Skipper
parent 3e61d807b4
commit ba8748a17b
3 changed files with 163 additions and 1 deletions

View File

@@ -48,6 +48,11 @@ async fn handle_create(
Some(ProtoKind::ApproveSdkClient(p)) => ProposalKind::ApproveSdkClient {
client_id: p.client_id,
},
Some(ProtoKind::GrantWalletAccess(p)) => ProposalKind::GrantWalletAccess {
wallet_id: p.wallet_id,
client_id: p.client_id,
},
Some(ProtoKind::ApproveServerUpdate(_)) => ProposalKind::ApproveServerUpdate,
None => return Err(Status::invalid_argument("Missing proposal kind")),
};
let ttl_secs = req.ttl_secs.map(i64::from);