-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
avenbreaks
committed
Apr 17, 2024
0 parents
commit ab20c22
Showing
21 changed files
with
2,960 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.idea | ||
l2config.local.json | ||
l2config.json | ||
explorer_collect |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Scroll Explorer L2 Indexer | ||
|
||
Scroll Explorer L2 Indexer is an indexer for indexing data from scroll L2 network to pg database. | ||
|
||
# Example config | ||
|
||
```json | ||
{ | ||
"SourceDataHost": "https://alpha-rpc.scroll.io/l2", | ||
"PosgresqlConfig": { | ||
"dbname": "", | ||
"host": "0.0.0.0", | ||
"password": "", | ||
"port": "5432", | ||
"user": "postgres" | ||
}, | ||
"Worker": { | ||
"handle": 2, | ||
"collect": 2 | ||
}, | ||
"RpcPool": { | ||
"size": 10, | ||
"timeout": 10 | ||
} | ||
} | ||
``` | ||
|
||
# How To Start | ||
|
||
``` | ||
go mod tidy | ||
go mod download | ||
go build main.go | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
module scroll-l2-indexer | ||
|
||
go 1.17 | ||
|
||
require ( | ||
github.com/axgle/mahonia v0.0.0-20180208002826-3358181d7394 | ||
github.com/bitly/go-simplejson v0.5.0 | ||
github.com/ethereum/go-ethereum v1.10.25 | ||
github.com/lib/pq v1.10.7 | ||
golang.org/x/crypto v0.0.0-20210921155107-089bfa567519 | ||
gopkg.in/redis.v3 v3.6.4 | ||
) | ||
|
||
require ( | ||
github.com/StackExchange/wmi v0.0.0-20180116203802-5d049714c4a6 // indirect | ||
github.com/bmizerany/assert v0.0.0-20160611221934-b7ed37b82869 // indirect | ||
github.com/btcsuite/btcd/btcec/v2 v2.2.0 // indirect | ||
github.com/deckarep/golang-set v1.8.0 // indirect | ||
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.0.1 // indirect | ||
github.com/garyburd/redigo v1.6.4 // indirect | ||
github.com/go-ole/go-ole v1.2.1 // indirect | ||
github.com/go-stack/stack v1.8.0 // indirect | ||
github.com/gorilla/websocket v1.4.2 // indirect | ||
github.com/holiman/uint256 v1.2.0 // indirect | ||
github.com/kr/pretty v0.3.0 // indirect | ||
github.com/onsi/ginkgo v1.16.5 // indirect | ||
github.com/onsi/gomega v1.21.1 // indirect | ||
github.com/shirou/gopsutil v3.21.4-0.20210419000835-c7a38de76ee5+incompatible // indirect | ||
github.com/tklauser/go-sysconf v0.3.5 // indirect | ||
github.com/tklauser/numcpus v0.2.2 // indirect | ||
golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f // indirect | ||
gopkg.in/bsm/ratelimit.v1 v1.0.0-20160220154919-db14e161995a // indirect | ||
gopkg.in/natefinch/npipe.v2 v2.0.0-20160621034901-c1b8fa8bdcce // indirect | ||
) |
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.