@zk-email/email-recovery

v0.0.11-preview
Smart account module and related contracts to enable email recovery for validators
zk email recovery account abstraction smart account modules

build

forge build

build:optimized

FOUNDRY_PROFILE=optimized forge build

clean

rm -rf artifacts broadcast cache docs out out-optimized out-svg

gas:report

forge test --gas-report --mp "./test/integration/**/*.sol"

gas:snapshot

forge snapshot --mp "./test/integration/**/*.sol"

gas:snapshot:optimized

pnpm run build:optimized && FOUNDRY_PROFILE=test-optimized forge snapshot --mp "./test/integration/**/*.sol"

lint

forge fmt --check && pnpm solhint "{script,src,test}/**/*.sol"

prepack

pnpm install

prettier:check

prettier --check "**/*.{json,md,svg,yml}"

prettier:write

prettier --write "**/*.{json,md,svg,yml}"

test

COMMAND_HANDLER_TYPE=0 forge test --match-path "test/**/*.sol"

test:email-recovery-command-handler

COMMAND_HANDLER_TYPE=0 forge test --match-path "test/**/*.sol"

test:address-hiding-command-handler

COMMAND_HANDLER_TYPE=1 forge test --match-path "test/**/*.sol"

test:safe-email-recovery-command-handler

ACCOUNT_TYPE=SAFE COMMAND_HANDLER_TYPE=0 forge test --match-path "test/**/*.sol"

test:safe-address-hiding-command-handler

ACCOUNT_TYPE=SAFE COMMAND_HANDLER_TYPE=1 forge test --match-path "test/**/*.sol"

test:safe-recovery-command-handler

ACCOUNT_TYPE=SAFE COMMAND_HANDLER_TYPE=2 forge test --match-path "test/**/*.sol"

test:all

pnpm test:email-recovery-command-handler && pnpm test:address-hiding-command-handler && pnpm test:safe-recovery-command-handler

test:all-safe

pnpm test:safe-email-recovery-command-handler && pnpm test:safe-address-hiding-command-handler && pnpm test:safe-recovery-command-handler

test:script

forge test --match-path script/test/**/*.sol --threads 1

test:lite

FOUNDRY_PROFILE=lite forge test

test:optimized

pnpm run build:optimized && FOUNDRY_PROFILE=test-optimized forge test
npm i @zk-email/email-recovery

Metadata

  • MIT
  • Whatever
  • email-recovery
  • released 10/22/2024

Downloads