Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    jacob@discord and a well formatted git log
    Jo@discord Yeah I use sourcetree for all my Git related tasks. It's super easy to use and makes comparing diffs, checking branches and a lot of other stuff easier
    Jo@discord I know how to use the command line to do the same thing, but I really prefer having a UI
    Embark Bot
    @embarkbot_gitlab
    Embark Bot
    @embarkbot_gitlab
    iurimatias@discord I should learn emacs one of these days, get a bit outside the vim bubble
    iurimatias@discord I did use in the university, but I was no expert by any means
    Embark Bot
    @embarkbot_gitlab
    michaelsbradleyjr@discord if I hadn't started working heavily with Clojure circa 2011/12 I don't think I would have gotten into it, probably would have stuck w/ vim. if spacemacs or doom-emacs had been around at that time I probably would have started there
    michaelsbradleyjr@discord more than anything, the "killer app" that has me in emacs everyday I'm coding is magit
    michaelsbradleyjr@discord otherwise I kind of plateaued several years and could probably be using emacs as a whole lot more efficiently
    michaelsbradleyjr@discord dired too is so nice, I would kill for dired in vscode
    michaelsbradleyjr@discord someone tried to make a dired-like plugin but abandoned it
    Embark Bot
    @embarkbot_gitlab
    michaelsbradleyjr@discord otherwise I kind of plateaued several years ago in terms of my emacs fu, i.e. I could probably be using emacs as a whole a lot more efficiently
    Siphamandla brian Mjoli
    @Brianspha
    @jrainville I keep getting this error message I've never used whisper before
    UnhandledPromiseRejectionWarning: Error: Method shh_generateSymKeyFromPassword not supported please assist
    This happens when i try to do this
    const channelSymKey = await web3.shh.generateSymKeyFromPassword('some string');
    @iurimatias
    Jonathan Rainville
    @jrainville
    I'm no expert with Whisper, but I know that it's not supported in ganache for example. The message above seems to say that you are using a Node that doesn't support Whisper, could that be possible?
    Embark Bot
    @embarkbot_gitlab
    iurimatias@discord was about to ask that
    iurimatias@discord what node is it connecting to?
    Siphamandla brian Mjoli
    @Brianspha
    Nah, im connecting to a node that has the --shh flag turned on
    Embark Bot
    @embarkbot_gitlab
    iurimatias@discord is it geth? if so what version
    Siphamandla brian Mjoli
    @Brianspha
    Yes geth v 1.9.2-stable-e76047e9
    This is how i enabled the node
    geth --datadir ./"BlockchainData" --syncmode full --ws --shh --wsaddr "0.0.0.0" --wsapi admin,personal,db,eth,net,web3,txpool,miner,clique --wsport 12000 --wsorigins "*" --port 10000 --rpc --rpcaddr 0.0.0.0 --rpccorsdomain "*" --rpcport 11000 --rpcapi admin,personal,db,eth,net,web3,txpool,miner,clique --bootnodes enode://6ce75a04deae05ed8bb3dd62f929afda96eaa175a3f6c6f915d48b23f30649a1a93d69a5b24f992251a55fb5417dfbceed9137ece18b29400b0adb47405577a3@127.0.0.1:9999 --networkid 1234 --gasprice 200 --ipcdisable --allow-insecure-unlock --keystore ./"BlockchainData/keystore"
    Embark Bot
    @embarkbot_gitlab
    iurimatias@discord so I suspect that, geth 1.9 probably uses a newer version of whisper
    iurimatias@discord which web3 or that version of web3 does not support
    iurimatias@discord I did some work with whisper recently, and recall some methods being removed in v6
    iurimatias@discord in the case of parity for e.g, they don't seem to support that call at all anymore https://wiki.parity.io/JSONRPC-shh-module
    Siphamandla brian Mjoli
    @Brianspha
    Cool, I've never used whisper before seems like its a mission to get right
    Jonathan Rainville
    @jrainville
    You can use the EmbarkJS methods too to help with using the default Whisper API: https://embark.status.im/docs/messages_javascript.html#Listening-to-messages
    Siphamandla brian Mjoli
    @Brianspha
    I've seen it work on the embark demo maybe I should use that, cool thats exactly what im doing now
    Thank you
    Jonathan Rainville
    @jrainville
    aight perfect
    np
    Siphamandla brian Mjoli
    @Brianspha
    Do you know if whisper is unit-testable? it seems to be failing or if theres a way of unit testing it?
    Jonathan Rainville
    @jrainville
    Sorry, I don't know
    Siphamandla brian Mjoli
    @Brianspha

    ``
    EmbarkJS.Messages.listenTo({
    topic: ['topic1', 'topic2']
    }).subscribe(message {
    console.log('received: ' + message);
    });

    EmbarkJS.Messages.listenTo({
        topic: ['topic1', 'topic2']
    }).subscribe((message)=> {
        console.log('received: ' + message);
    });

    ``

    is it suppose to be like the second 1
    Jonathan Rainville
    @jrainville
    Yes, the first one is missing the arrow =>
    This is from the demo:
    EmbarkJS.Messages.listenTo({topic: [this.state.listenTo]}).subscribe(
          message => {
            messageList.push(<span>Channel: <b>{message.topic}</b> |  Message: <b>{message.data}</b></span>);
            this.setState({messageList});
          },
          error => {
            messageList.push(<span className="alert-danger">Error: {error.message || "Unknown Error"}</span>);
            this.setState({messageList});
          }
        );
    Siphamandla brian Mjoli
    @Brianspha
    Thank you for the help
    @jrainville
    Embark Bot
    @embarkbot_gitlab
    iurimatias@discord you can use the exact same command and connect embark to it
    Embark Bot
    @embarkbot_gitlab
    3esmit@discord @rramos used to do that for snt-gas-relayer, but without this --fork feature. We called it "simulate" execution. How you did it, Richard?
    Embark Bot
    @embarkbot_gitlab
    rramos@discord ah! it's a fork too 🙂
    rramos@discord let web3Sim = new Web3(ganache.provider({ fork: `${this.config.node.ganache.protocol}://${this.config.node.ganache.host}:${this.config.node.ganache.port}`, locked: false, gasLimit: 10000000 }));
    rramos@discord but instead of starting ganache separately, the relayer creates its own ganache provider
    Embark Bot
    @embarkbot_gitlab
    3esmit@discord Very cool! Seems like embark could implement this as a feature? Like, simulate mainnet? So it does everyything in this simulated forked chain.. some thigns to care would be nice to change "chainId", just to make impossible any replay mistakes