Skip to content

Commit

Permalink
docs: updating code pointers in the readme. (#118)
Browse files Browse the repository at this point in the history
  • Loading branch information
lazycoder1 authored Nov 13, 2023
1 parent 1baf2cc commit 996712a
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 10 deletions.
34 changes: 25 additions & 9 deletions P2P.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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]`
```
./skandha node --redirectRpc --executor.bundlingMode manual --dataDir ./db2 --api.port 14339 --p2p.port 4339 --p2p.enrPort 4339 --p2p.bootEnrs [enr]
```
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/<network>.ts)
"entryPoints": [ # supported entry points
"0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789"
],
Expand Down

0 comments on commit 996712a

Please sign in to comment.