MCPcopy Create free account
hub / github.com/circlefin/arc-node / StorageSlot

Function StorageSlot

scripts/genesis/types.ts:30–30  ·  view source on GitHub ↗
(key: Bytes32, value: Bytes32)

Source from the content-addressed store, hash-verified

28export const schemaStorage = z.tuple([schemaBytes32, schemaBytes32])
29
30export const StorageSlot = (key: Bytes32, value: Bytes32) => schemaStorage.parse([key, value])
31
32// currentTimestamp returns the current unix timestamp, minus one second to ensure it's in the past.
33export const currentTimestamp = () => BigInt(new Date().getTime()) / 1000n - 1n

Calls 1

parseMethod · 0.45

Tested by

no test coverage detected