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

Function toBlobString

cli/src/utils.ts:68–72  ·  view source on GitHub ↗
(buffer: Uint8Array)

Source from the content-addressed store, hash-verified

66};
67
68export const toBlobString = (buffer: Uint8Array): string => {
69 return Array.from(buffer)
70 .map(byte => `\\${byte.toString(16).padStart(2, '0')}`)
71 .join('');
72};
73
74export const assertReplicaIsHealthy = async (network: string): Promise<void> => {
75 const ping: { replica_health_status?: string } = JSON.parse(

Callers 1

publish.tsFile · 0.90

Calls 3

mapMethod · 0.80
toStringMethod · 0.80
fromMethod · 0.45

Tested by

no test coverage detected