babylonchain / optimism

Optimism is Ethereum, scaled.
https://optimism.io
MIT License
1 stars 0 forks source link

feat: refactor bitcoin rpc url to DA SDK btc config #18

Closed parketh closed 3 months ago

parketh commented 3 months ago

Summary

This PR updates chain configs for the updates described here https://github.com/babylonchain/babylon-da-sdk/pull/39

In particular, the Bitcoin rpc url is replaced with a BTCConfig which is passed to the BTC client.

Test plan

# Generate the chain config file
./scripts/getting-started/config.sh

# Generate `genesis.json`
# Note it's necessary to first set the L1_RPC_URL in env
go run cmd/main.go genesis l2 \                                                                                                                                                                                                                                                                   
  --deploy-config ../packages/contracts-bedrock/deploy-config/getting-started.json \
  --l1-deployments ../packages/contracts-bedrock/deployments/getting-started/.deploy \
  --outfile.l2 genesis.json \
  --outfile.rollup rollup.json \
  --l1-rpc $L1_RPC_URL

# Run tests
cd op-node/rollup
go test