MCPcopy Create free account
hub / github.com/subquery/subql / enumNameToHash

Function enumNameToHash

packages/node-core/src/utils/graphql.ts:21–23  ·  view source on GitHub ↗
(enumName: string)

Source from the content-addressed store, hash-verified

19import {isArray, isObject} from 'lodash';
20
21export function enumNameToHash(enumName: string): string {
22 return blake2AsHex(enumName).substr(2, 10);
23}
24
25export interface EnumType {
26 enumValues: string[];

Callers 5

forceCleanMethod · 0.90
createEnumMethod · 0.90
modifyEnumMethod · 0.90
dropEnumMethod · 0.90
getColumnOptionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected