Dror Tirosh 9b0c62d5a0 v0.2.0 (#10)
2022-10-05 21:18:52 +03:00
2022-09-29 11:17:46 +03:00
2022-10-05 21:18:52 +03:00
2022-10-05 21:11:49 +03:00
2022-10-05 21:18:52 +03:00
2022-10-05 21:18:52 +03:00
2022-09-29 11:17:46 +03:00
2022-10-05 21:11:49 +03:00
2022-10-05 21:11:49 +03:00

EIP4337 reference modules

Bundler

A basic eip4337 "bundler"

  • expose a node with a minimal RPC calls:
    • eth_sendUserOperation to send a user operation
    • eth_supportedEntryPoints to report the bundler's supported entry points
    • eth_chainId

usage:

  1. start hardhat-node with yarn hardhat-node or geth In another Window:
  2. deploy contracts with yarn hardhat deploy --network localhost
  3. run yarn run bundler --network localhost --mnemonic file so it will listen on port 3000
  4. to run a simple test, do yarn run runop --deployDeployer --network localhost The runop script:
    • deploys a wallet deployer (if not already there)
    • creates a random signer (owner for wallet)
    • determines the wallet address, and funds it
    • sends a transaction (which also creates the wallet)
    • sends another transaction, on this existing wallet
    • (uses account[0] or mnemonic file for funding, and creating deployer if needed)

sdk

SDK to create and send UserOperations see SDK Readme

utils

internal utility methods/test contracts, used by other packages.

Description
No description provided
Readme 1.3 MiB
Languages
TypeScript 97.1%
Shell 1.3%
JavaScript 1.3%
Dockerfile 0.2%
Solidity 0.1%