Skip to main content
import { StorageValue } from 'voltaire-effect'
import { Effect } from 'effect'

const value = yield* StorageValue.from('0x0000...0064')
const fromBigInt = yield* StorageValue.fromBigInt(100n)
const zero = StorageValue.zero()  // 32 zero bytes

API

FunctionSignature
from(input) => Effect<StorageValueType, InvalidLengthError>
fromBigInt(n) => Effect<StorageValueType, Error>
zero() => StorageValueType (sync)
StorageValueSchemaAccepts hex string, Uint8Array, bigint, number