File tree Expand file tree Collapse file tree 3 files changed +57
-2
lines changed
Expand file tree Collapse file tree 3 files changed +57
-2
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ export async function fetchValidatorList(url: string): Promise<UNLBlob> {
4040 * @returns The active UNLBlob parsed from UNLV2 format.
4141 * @throws Error if no active blob found.
4242 */
43- function getActiveBlobV2 ( unl : UNLV2 ) : UNLBlob {
43+ export function getActiveBlobV2 ( unl : UNLV2 ) : UNLBlob {
4444 let activeBlob
4545 for ( const blobItem of unl . blobs_v2 ) {
4646 const currentBlob : UNLBlob = parseBlob ( blobItem . blob )
@@ -69,7 +69,7 @@ function getActiveBlobV2(unl: UNLV2): UNLBlob {
6969 * @param blob - The UNLBlob to parse.
7070 * @returns The parsed UNLBlob.
7171 */
72- function parseBlob ( blob : string ) : UNLBlob {
72+ export function parseBlob ( blob : string ) : UNLBlob {
7373 const buf = Buffer . from ( blob , 'base64' )
7474 const blobParsed : UNLBlob = JSON . parse ( buf . toString ( 'ascii' ) )
7575 return blobParsed
You can’t perform that action at this time.
0 commit comments