Skip to content

Latest commit

 

History

History
109 lines (79 loc) · 2.75 KB

File metadata and controls

109 lines (79 loc) · 2.75 KB

Developer Notes

watchexec --exts go --watch . 'make test && make lint'
watchexec --exts go --watch . 'go test ./internal/sequencers/... && make lint'

uint64 type is based on rollups_outputs.rs

Voucher
InputIndex  uint64
OutputIndex uint64

Input encoded by rollups-contract V2

0xcc7dee1f000000000000000000000000000000000000000000000000cc0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007fa9385be102ac3eac297483dd6233d62b3e149600000000000000000000000000000000000000000000000000000000000000e10000000000000000000000000000000000000000000000000000000061d0c1b100000000000000000000000000000000000000000000000000000000000000e100000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000020157f9f93806730d47e3a6e8b41b4fa9d98f89ec6f53627f3abf1d171769345eb

How to run the HL GraphQL

Run the postgraphile

docker compose up --wait postgraphile

Stop with clean:

docker compose down --rmi local --remove-orphans --volumes

http://localhost:5001/graphiql

Build

go build

Run the nonodo with HL GraphQL flag enabled

go run . --high-level-graphql --enable-debug --node-version v2
export POSTGRES_HOST=127.0.0.1
export POSTGRES_PORT=5432
export POSTGRES_DB=mydatabase
export POSTGRES_USER=myuser
export POSTGRES_PASSWORD=mypassword
go run . --http-address=0.0.0.0 --high-level-graphql --enable-debug --node-version v2 --db-implementation postgres

Disable sync

export POSTGRES_HOST=127.0.0.1
export POSTGRES_PORT=5432
export POSTGRES_DB=mydatabase
export POSTGRES_USER=myuser
export POSTGRES_PASSWORD=mypassword
go run . --http-address=0.0.0.0 --high-level-graphql --enable-debug --node-version v2 --db-implementation postgres --graphile-disable-sync

Environment Variables

To configure the endpoint of the node v2 Graphile, you can set the GRAPHILE_URL environment variable. Here's how you can do it:

export GRAPHILE_URL=localhost:5001/graphql

Enable Avail

go run . -d --avail  --avail-from-block 746430

Avail + Sepolia

 go build . && ./nonodo --avail-enabled -d \
    --avail-from-block <L2 block number> \
    --rpc-url <your rpc endpoint> \
    --contracts-input-box-block <L1 block number> \

Example:

go build . && ./nonodo --avail-enabled -d \
    --avail-from-block 853228 \
    --rpc-url wss://ethereum-sepolia-rpc.publicnode.com \
    --contracts-input-box-block 6863007

Clear database raw:

make clean-db-raw