mirror of
https://github.com/semaphore-protocol/semaphore.git
synced 2026-04-28 03:00:41 -04:00
This new package allows devs to fetch on-chain data by using a Semaphore subgraph or the Ethers library. BREAKING CHANGE: The code of the old `@semaphore-protocol/subgraph` package has been moved to the `@semaphore-protocol/data` package. re #256
5 lines
162 B
TypeScript
5 lines
162 B
TypeScript
// eslint-disable-next-line import/prefer-default-export
|
|
export function jsDateToGraphqlDate(date: Date): number {
|
|
return Math.round(date.getTime() / 1000)
|
|
}
|