Skip to main content
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)

API

FunctionSignature
from(input) => Effect<StorageSlotType, StorageError>
StorageSlotSchemaAccepts bigint, number, string, Uint8Array