@prb/effect-evm-safe
v3.0.1
Published
Effect-TS integration for Safe Apps
Downloads
2,839
Maintainers
Readme
effect-evm-safe
[!WARNING]
This is experimental, beta software. It is provided "as is" without warranty of any kind, express or implied.
Safe Apps + Safe multisig utilities for Effect, built on top of @prb/effect-evm.

Installation
bun add @prb/effect-evm-safe @prb/effect-evm @safe-global/safe-apps-sdkPeer dependencies
effect@^3@effect/platform@^0.93@prb/effect-evm@^1.0.0@safe-global/[email protected]viem@^2.43- Optional:
@wagmi/core@>=2.0.0(for hooks using wagmi) - Optional:
react@>=18.2.0,react-dom@>=18.2.0(for React hooks)
Usage
import { Layer } from "effect";
import { makeEffectEvmLayer } from "@prb/effect-evm";
import { SafeAppsServiceLive } from "@prb/effect-evm-safe";
const baseLayer = makeEffectEvmLayer(/* chain configs */, window.ethereum);
const layer = Layer.provideMerge(SafeAppsServiceLive(), baseLayer);Exports
- Safe Apps service:
SafeAppsService,SafeAppsServiceLive - Safe detection:
isSafeMultisig - Safe simulation:
SafeMultisigSimulationService,SafeMultisigSimulationServiceLive - Types + errors:
safe/* - React hooks:
@prb/effect-evm-safe/react-hooks
License
MIT
