Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/optimism-java/dispute-explorer
A dispute explorer for superchains
https://github.com/optimism-java/dispute-explorer
Last synced: 10 days ago
JSON representation
A dispute explorer for superchains
- Host: GitHub
- URL: https://github.com/optimism-java/dispute-explorer
- Owner: optimism-java
- License: mit
- Created: 2024-06-13T09:14:30.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-09-13T08:03:53.000Z (2 months ago)
- Last Synced: 2024-09-13T20:16:08.418Z (2 months ago)
- Language: Go
- Size: 209 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dispute-explorer
This is a dispute explorer for showing dispute games information who use op stack
You can use Docker to run this.
# Prerequisites
Download and install Docker.
# 1. Run dispute-explorer-backend
# Step 1. Config Environment file
```
mv .env.template .evn
``````
#log_format you can use console or json
LOG_FORMAT=console# config your mysql data source
MYSQL_DATA_SOURCE=# config chain name to tag your block chain name
BLOCKCHAIN=# l1 rpc url example: eth json rpc url
L1_RPC_URL=RPC_RATE_LIMIT=15
RPC_RATE_BURST=5# the block number which before the first game has been created to make sure can not missing any game
FROM_BLOCK_NUMBER=6034337# FROM_BLOCK_NUMBER block hash
FROM_BLOCK_HASH=0xafc3e42c5899591501d29649ffef0bfdec68f8d77e6d44ee00ef88cfb1a2f163# the contract address of dispute game factory proxy
DISPUTE_GAME_PROXY_CONTRACT=0x05F9613aDB30026FFd634f38e5C4dFd30a197Fa1API_PORT=8080
```# Step 2. Start Dispute Game Explorer backend service
use docker-compose to run this service
```
cd deploy
docker-compose -f docker-compose.yml up -d
```Now, this project is running now.
Tip: if you just need a backend service to collect all data, Run Step 1 and Step 2.
# Step 3. Run the deployment script
Run the script to launch the service
```
cd deploy
./star.sh
```Now, this project is running.
# Step 4. Validate meiliSync Service
We can visit meiliSearch api to validate meiliSync service. more [meiliSearch docs](https://www.meilisearch.com/docs/reference/api/overview)
```
curl -H "Authorization: Bearer " http://localhost:port/indexes
```You should get a result, similar to :
```json
{
"results": [
{
"uid": "disputegame",
"createdAt": "2024-08-06T09:24:24.640693956Z",
"updatedAt": "2024-08-07T07:02:32.402360903Z",
"primaryKey": "id"
},
{
"uid": "gameclaim",
"createdAt": "2024-08-06T09:24:24.670117944Z",
"updatedAt": "2024-08-07T07:02:28.94487306Z",
"primaryKey": "id"
},
{
"uid": "gamecredit",
"createdAt": "2024-08-06T10:37:42.013472322Z",
"updatedAt": "2024-08-07T07:02:32.379350451Z",
"primaryKey": "id"
},
{
"uid": "syncevents",
"createdAt": "2024-08-06T09:24:24.696318772Z",
"updatedAt": "2024-08-07T07:02:30.382386632Z",
"primaryKey": "id"
}
],
"offset": 0,
"limit": 20,
"total": 4
}
```If you get information like this, it means our deployment it`s success.