API
| Function | Signature |
|---|---|
from | (input) => Effect<StorageSlotType, StorageError> |
StorageSlotSchema | Accepts bigint, number, string, Uint8Array |
32-byte EVM storage slot identifiers
import { Storage } from 'voltaire-effect'
import { Effect } from 'effect'
const slot = yield* Storage.from(0n)
const slotFromHex = yield* Storage.from('0x0000...0001')
const slotFromNumber = yield* Storage.from(1)
| Function | Signature |
|---|---|
from | (input) => Effect<StorageSlotType, StorageError> |
StorageSlotSchema | Accepts bigint, number, string, Uint8Array |