OffchainLabs / nitro-testnode

A complete environment for nitro-based service including sequencer, batch-poster, validator, and a coordinator.
Apache License 2.0
23 stars 57 forks source link

Decouple nitro-contracts from nitro #47

Closed gvladika closed 6 months ago

gvladika commented 7 months ago

PR enables using custom nitro-contracts and token-bridge-contracts versions in testnode.

So far, nitro-contracts version depended on the pinned nitro-contracts commit in nitro. And Go deployer was used to deploy the chains. Now that's replaced with a script in nitro-contracts which will do equivalent - deploy RollupCreator, deploy rollup and store configs and addresses.

Versions are provided via NITRO_CONTRACTS_BRANCH and TOKEN_BRIDGE_BRANCH env vars