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

Method hashCode

packages/utils/src/types/TypeClass.ts:27–32  ·  view source on GitHub ↗
(data: D)

Source from the content-addressed store, hash-verified

25 return this._sequelizeType;
26 }
27 hashCode(data: D): Uint8Array {
28 if (this._hashCode === undefined) {
29 return Buffer.from(JSON.stringify(data));
30 }
31 return this._hashCode(data);
32 }
33}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected