Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
avenbreaks committed Apr 17, 2024
0 parents commit ab20c22
Show file tree
Hide file tree
Showing 21 changed files with 2,960 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.idea
l2config.local.json
l2config.json
explorer_collect
34 changes: 34 additions & 0 deletions README.md
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
```
34 changes: 34 additions & 0 deletions go.mod
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
)
657 changes: 657 additions & 0 deletions go.sum

Large diffs are not rendered by default.

Loading

0 comments on commit ab20c22

Please sign in to comment.