UNPKG

@xuxinlai2002/pns-js

Version:

A NPM package in Typescript for .Play Name Service

6 lines 318 B
import { toBytes } from '../encoding/toBytes.js'; import { getEventSignature } from './getEventSignature.js'; import { keccak256 } from './keccak256.js'; const hash = (value) => keccak256(toBytes(value)); export const getEventSelector = (fn) => hash(getEventSignature(fn)); //# sourceMappingURL=getEventSelector.js.map