Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Indexer core #103

Merged
merged 26 commits into from
Nov 21, 2023
Merged
Show file tree
Hide file tree
Changes from 21 commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
1dacfb6
blockchain helper
bogdanfazakas Nov 8, 2023
1205449
more networks events handling
bogdanfazakas Nov 9, 2023
bb509a6
fixes
bogdanfazakas Nov 9, 2023
99a2bfa
no longer use blockchain singletone
bogdanfazakas Nov 12, 2023
7339ec8
add get deployed block
bogdanfazakas Nov 12, 2023
eb800a1
more event handling and pre processing
bogdanfazakas Nov 13, 2023
c26efe8
event hashes check
bogdanfazakas Nov 13, 2023
2e2bd57
more fixes
bogdanfazakas Nov 15, 2023
36dfdc3
merge develop
bogdanfazakas Nov 15, 2023
e6a0fb6
add db conn for last indexed block for network
bogdanfazakas Nov 15, 2023
693bde3
wip tests
bogdanfazakas Nov 15, 2023
e6379df
more refactors and fixes
bogdanfazakas Nov 17, 2023
e662402
added tests
bogdanfazakas Nov 17, 2023
1e0c77f
merge develop and fixed conflicts
bogdanfazakas Nov 17, 2023
6d92dce
use logger helper
bogdanfazakas Nov 17, 2023
13c0061
simplify tests
bogdanfazakas Nov 20, 2023
1137ecb
make proccess network stay in a loop
bogdanfazakas Nov 20, 2023
8b5d5da
update logger usage
bogdanfazakas Nov 20, 2023
c231123
address json fallback update
bogdanfazakas Nov 20, 2023
56c6d1a
refactor block processing
bogdanfazakas Nov 20, 2023
c49730c
fix test
bogdanfazakas Nov 20, 2023
1c6af50
update filter and address
bogdanfazakas Nov 21, 2023
99cde33
merge develop, fix conflicts, and updapte status handler logic
bogdanfazakas Nov 21, 2023
3f7dcbd
update package
bogdanfazakas Nov 21, 2023
2d08837
more fixes after merge with status and topic hash
bogdanfazakas Nov 21, 2023
5071d50
merge main and fix more conflicts
bogdanfazakas Nov 21, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ npm run build
```bash
export HTTP_API_PORT=8000
export PRIVATE_KEY=0x.....
export RPCS="{ \"1\": \"https://rpc.eth.gateway.fm\", \"137\": \"https://polygon.meowrpc.com\", \"80001\": \"https://rpc-mumbai.maticvigil.com\" }"
export RPCS="{ \"1\":{ \"rpc\":\"https://rpc.eth.gateway.fm\", \"chainId\": 1, \"network\": \"mainet\", \"chunkSize\": 100 }, \"137\": { \"rpc\": \"https://polygon.meowrpc.com\", \"chainId\": 137, \"network\": \"polygon\", \"chunkSize\": 100 }, \"80001\": { \"rpc\": \"https://rpc-mumbai.maticvigil.com\", \"chainId\": 80001, \"network\": \"polygon-mumbai\", \"chunkSize\": 100 }}"
```

For downloading the file from IPFS or ARWEAVE, please export the following env variables;
Expand All @@ -34,13 +34,13 @@ For downloading the file from IPFS or ARWEAVE, please export the following env v
export IPFS_GATEWAY='https://ipfs.io/'
export ARWEAVE_GATEWAY='https://arweave.net/'
```

Then start the node:

```bash
npm run start
```


## 4. Open a 2nd terminal and run another node

```bash
Expand All @@ -55,6 +55,7 @@ For downloading the file from IPFS or ARWEAVE, please export the following env v
export IPFS_GATEWAY=''
export ARWEAVE_GATEWAY=''
```

Then start the node:

```bash
Expand Down
255 changes: 254 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
"it-pipe": "^3.0.1",
"libp2p": "^0.46.9",
"lodash.clonedeep": "^4.5.0",
"sinon": "^17.0.1",
"stream-concat": "^1.0.0",
"swagger-ui-express": "^5.0.0",
"ts-node": "^10.9.1",
Expand Down
Loading
Loading