This introduces a sidecar DA Server for Optimism that interacts with Avail DA for posting and retrieving data.
Flag | Default Value |
---|---|
--addr |
localhost |
--port |
8080 |
--avail.rpc |
|
--avail.seed |
|
--avail.appid |
|
--avail.timeout |
100 * time.Second |
- You will need to get a seed phrase, funded with Avail tokens, and an App ID. Steps to generate them can be found here
make da-server
./bin/avail-da-server --addr=localhost --port=8000 --avail.rpc=<Avail RPC URL> --avail.seed="<seed phrase>" --avail.appid=<APP ID> --avail.timeout=<(optional) Timeout>
-
Copy
.env.example
to.env
. Fill the values inside. -
Run the following command:
make test
-
Copy
.env.example
to.env
. Fill the values inside. -
Run the following commands:
docker-compose build docker-compose up