From 996712adce19790f622ef041aa4f950664c74dd1 Mon Sep 17 00:00:00 2001 From: Gautam Sabhahit Date: Mon, 13 Nov 2023 19:50:10 +0530 Subject: [PATCH] docs: updating code pointers in the readme. (#118) --- P2P.md | 34 +++++++++++++++++++++++++--------- README.md | 2 +- 2 files changed, 26 insertions(+), 10 deletions(-) diff --git a/P2P.md b/P2P.md index ed8702c8..58188d65 100644 --- a/P2P.md +++ b/P2P.md @@ -7,16 +7,26 @@ ### Deploy EP and Factory from EF account-abstraction repo -run `bundler-spec-tests/deploy.sh` -entrypoint addr: 0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789 -SimpleAccountFactory addr: 0x9406Cc6185a346906296840746125a0E44976454 -SimpleAccount addr: 0xbba97eC4fFF328d485382DfD5A9bf9653c6018Af +1. clone the https://github.com/eth-infinitism/account-abstraction repo `git clone https://github.com/eth-infinitism/account-abstraction.git` +2. run `yarn deploy --network localhost` + +We should have deployments in the following addresses. +- Entrypoint addr: 0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789 +- SimpleAccountFactory addr: 0x9406Cc6185a346906296840746125a0E44976454 +- SimpleAccount addr: 0xbba97eC4fFF328d485382DfD5A9bf9653c6018Af // sample address, deployed address could be different ### Top up account go to docker console -`geth attach http://127.0.0.1:8545` -`eth.sendTransaction({ from: eth.accounts[0], to: "0xbba97eC4fFF328d485382DfD5A9bf9653c6018Af", value: 1000000000000000000 })` +``` +> geth attach http://127.0.0.1:8545 +``` +Inside geth terminal +``` +> eth.sendTransaction({ from: eth.accounts[0], to: "0xbba97eC4fFF328d485382DfD5A9bf9653c6018Af", value: 1000000000000000000 }) +``` + +### Modify the ### Generate userop from erc4337 examples @@ -41,12 +51,18 @@ Example: ### Run the bootnode -`./skandha node --redirectRpc --executor.bundlingMode manual` +``` +./skandha node --redirectRpc --executor.bundlingMode manual +``` ### Run a regular node -`./skandha node --redirectRpc --executor.bundlingMode manual --dataDir ./db --api.port 14338 --p2p.port 4338 --p2p.enrPort 4338 --p2p.bootEnrs [enr]` +``` +./skandha node --redirectRpc --executor.bundlingMode manual --dataDir ./db --api.port 14338 --p2p.port 4338 --p2p.enrPort 4338 --p2p.bootEnrs [enr] +``` ### Run the second regular node -`./skandha node --redirectRpc --executor.bundlingMode manual --dataDir ./db2 --api.port 14339 --p2p.port 4339 --p2p.enrPort 4339 --p2p.bootEnrs [enr]` \ No newline at end of file +``` +./skandha node --redirectRpc --executor.bundlingMode manual --dataDir ./db2 --api.port 14339 --p2p.port 4339 --p2p.enrPort 4339 --p2p.bootEnrs [enr] +``` diff --git a/README.md b/README.md index f81bd5d7..075980fe 100644 --- a/README.md +++ b/README.md @@ -70,7 +70,7 @@ Or follow the steps below: ```yaml { "networks": { - "dev": { # network Id (check packages/types/src/networks/networks.ts) + "dev": { # network Id (check packages/params/src/networks/.ts) "entryPoints": [ # supported entry points "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789" ],