GithubHelp home page GithubHelp logo

Comments (12)

peterjoel avatar peterjoel commented on May 27, 2024 2

@rstormsf @patitonar @sergeevii123 The changes that you've made to the README since I came to this have helped enormously. It's much easier to follow. And all worked first time, when I started from scratch just now. So thanks for that.

from bridge-ui.

peterjoel avatar peterjoel commented on May 27, 2024 1

@rstormsf Thanks, that was the problem. It was at the end of a long day!

from bridge-ui.

patitonar avatar patitonar commented on May 27, 2024

I followed the instructions and worked correctly for me. I also used the same address for 0xETH_ACCOUNT_VALIDATOR_SOKOL, VALIDATORS and PROXY_OWNER but didn't have to add the from parameter on the truffle configuration.

Some considerations from instructions before running the deploy:

  • Make sure your parity Home(sokol) node is fully synced by this step. You can start parity from console on the folder sokol-node with the following command parity --config sokol.toml --nat=none --no-ui
  • Get free Sokol Coins from the sokol-faucet

from bridge-ui.

peterjoel avatar peterjoel commented on May 27, 2024

@patitonar I believe it's fully synchronised. And I requested the Sokol tokens from the faucet.

The command you suggested, parity --config sokol.toml --nat=none --no-ui is exactly what is given in the README file.

My main uncertainties at this point are:

  • Is it correct to use the same account for everything? I.e. Validator and the bridge contract admin/owner?
  • What does it mean for the account to be "unlocked"? I was assuming this meant I would just sign the transaction in Parity UI, but...
  • Given that Sokol is running with --no-ui, how to sign a transaction? And how to verify that the Sokol faucet tokens are actually sent?

from bridge-ui.

peterjoel avatar peterjoel commented on May 27, 2024

@patitonar Are you signing the deployment transaction in a gui, or is it done by the deployment script, using the password file?

from bridge-ui.

patitonar avatar patitonar commented on May 27, 2024

Hi @peterjoel sorry on the delay. The signing is done by the deployment script using the password file and the JSON keystore file for my account provided in the folder sokol-datadir/keys/Sokol

from bridge-ui.

peterjoel avatar peterjoel commented on May 27, 2024

Thanks @patitonar, that's what I thought should happen. I'm going to start from scratch this afternoon, or maybe try on a different system.

Can you confirm the versions of Parity and Rust that you have got this working with? I'm using Parity v1.10.0-beta and Rust 1.23.0.

from bridge-ui.

patitonar avatar patitonar commented on May 27, 2024

@peterjoel I got this working with rustc 1.25 and Parity v1.9.5-stable

from bridge-ui.

peterjoel avatar peterjoel commented on May 27, 2024

@patitonar I have that part working now. I upgraded my OS, Xcode, npm and node. And one of them was the reason.

from bridge-ui.

peterjoel avatar peterjoel commented on May 27, 2024

Couple more questions though on the remainder.

  • At steps 7 and 8, the commands, (e.g. cat sokol-kovan-bridge/../HomeBridge.json | jq '.bytecode' -r | cut -c 3- > HomeBridge_bytecode.bin) only make sense if run from outside the sokol-kovan-bridge directory. But then the files are created one level too high. I changed the path so they are created in the main directory. I assume this is just a mistake in the readme, and should be ok.
  • In step 10, am I supposed to edit db.toml to include the correct block numbers for the contract deployments? If so, I'm not sure where to find those after the fact.

In any case (and I'm guessing this is about the deployment block numbers) step 12 fails with:

peter$ env RUST_LOG=info ./parity-bridge/target/release/bridge --config config.toml --database db.toml
INFO:bridge: Parsing cli arguments
INFO:bridge: Loading config
INFO:bridge: Starting event loop
INFO:bridge: Establishing ipc connection
WARN:bridge: Can't establish an IPC connection: Error(Msg("Cannot connect to home node ipc"), State { next_error: Some(Error(Web3(Error(Io(Error { repr: Os { code: 2, message: "No such file or directory" } }), State { next_error: None, backtrace: None })), State { next_error: None, backtrace: None })), backtrace: None })
Cannot connect to home node ipc

Caused by:
  Error(Io(Error { repr: Os { code: 2, message: "No such file or directory" } }), State { next_error: None, backtrace: None })
vermilion:sokol-kovan-bridge

from bridge-ui.

rstormsf avatar rstormsf commented on May 27, 2024

@peterjoel I have updated instructions. Sorry about it

from bridge-ui.

rstormsf avatar rstormsf commented on May 27, 2024
WARN:bridge: Can't establish an IPC connection: Error(Msg("Cannot connect to home node ipc"), State { next_error: Some(Error(Web3(Error(Io(Error { repr: Os { code: 2, message: "No such file or directory" } }), State { next_error: None, backtrace: None })), State { next_error: None, backtrace: None })), backtrace: None })
Cannot connect to home node ipc

Caused by:
  Error(Io(Error { repr: Os { code: 2, message: "No such file or directory" } }), State { next_error: None, backtrace: None })
vermilion:sokol-kovan-bridge

seems like you haven't provided correct path to your IPC file.
Check your config.toml for IPC paths
and make sure you run the bridge when both parity sokol and kovan nodes are up and running

from bridge-ui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.