MCPcopy Create free account
hub / github.com/dfinity/orbit / get_transfer

Method get_transfer

core/station/impl/src/services/transfer.rs:34–45  ·  view source on GitHub ↗
(&self, id: &TransferId, ctx: &CallContext)

Source from the content-addressed store, hash-verified

32 }
33
34 pub fn get_transfer(&self, id: &TransferId, ctx: &CallContext) -> ServiceResult<Transfer> {
35 let transfer_key = Transfer::key(*id);
36 let transfer = self.transfer_repository.get(&transfer_key).ok_or({
37 TransferError::TransferNotFound {
38 transfer_id: Uuid::from_bytes(*id).hyphenated().to_string(),
39 }
40 })?;
41
42 self.assert_transfer_access(&transfer, ctx)?;
43
44 Ok(transfer)
45 }
46
47 pub fn get_transfers(
48 &self,

Callers 3

get_transfersMethod · 0.80
get_transferFunction · 0.80

Calls 2

getMethod · 0.45

Tested by

no test coverage detected