0xSpaceShard / starknet-devnet

A local testnet for Starknet
https://0xspaceshard.github.io/starknet-devnet/
MIT License
211 stars 77 forks source link

Setup Voyager local to point to devnet #60

Closed clacladev closed 2 years ago

clacladev commented 2 years ago

Hello team, I tried to run the voyager-local as described here https://voyager.online/local-version/ but it's lacking the info about how to point it to the currently running devnet on the same machine.

Maybe it's just me not being prepared enough on Docker, but can you help with the launch command for the docker voyager-local?

Thanks a lot!

FabijanC commented 2 years ago

Hi, thanks for the issue.

@badurinantun Could we expand our Readme section on this?

badurinantun commented 2 years ago

I wasn't able to set it up, as there were some other priorities on my plate :)

There a couple of requirements:

Example:

docker run -itd --name=voyager -p 8800:8800 \
   --network="host" \
   -e STARKNET_ENDPOINT=http://127.0.0.1:5000 \
   -e RPC_URL=http://127.0.0.1:8545 \
   ghcr.io/demerzelsolutions/voyager:latest

What's missing is CONTRACT_ADDRESS and L1_START_BLOCK, which is where I had to stop my research. @ccarnino you can pick up from there or I can update you once I resume my work.

clacladev commented 2 years ago

Thanks but I am out of my element with docker. And I am trying to juggle already 3 different problems at the same time 😄

FabijanC commented 2 years ago

Apparently this cannot be setup, as noted here by Lucas from Starkware: https://discord.com/channels/793094838509764618/960813841103593502

Why so?

because to run an instance of voyager you have to input a L1 rpc node with a starknet core contract that would need to verify L2

This can't be reproduced with Ganache and mock of core contract?

In theory yes but I assume that you'd have to send the L2 proofs to the ganache L1