Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Autobot
    @status-im-auto
    Jo@discord: Hmm, I'll investigate, but @rabbit or @michaelb would probably know faster
    robertosnap@discord: K, thx doign the same 🙂
    michaelb@discord: how is embark being run?
    michaelb@discord: oh i see above, just a sec
    robertosnap@discord: Straight from the repo (root)
    robertosnap@discord: with yarn

    robertosnap@discord: yarn test --scope embark-ethereum-blockchain-client

    I just removed the this.logFile = dappPath(".embark", "contractEvents.json"); to see what happened and then it fails on

    this.events.request( "blockchain:client:register", "ethereum", this.getEthereumClient.bind(this) );

    So it seems that the Blockchain client is not instantiated. Do i need to make this plugin a dep of something or something? (sorry, really new to this setup)

    robertosnap@discord: yarn test --scope embark-ethereum-blockchain-client

    I just removed the this.logFile = dappPath(".embark", "contractEvents.json"); to see what happened and then it fails on

    this.events.request( "blockchain:client:register", "ethereum", this.getEthereumClient.bind(this) );

    So it seems that the Blockchain client is not instantiated. Do i need to make this plugin a dep of something or something while testing? (sorry, really new to this setup)

    michaelb@discord: sorry, still gathering context
    you're adding tests to https://github.com/embarklabs/embark/tree/master/packages/plugins/ethereum-blockchain-client, is that correct?
    Autobot
    @status-im-auto
    robertosnap@discord: Correct
    robertosnap@discord: il fork and create a pub repo, 2 sek
    michaelb@discord: so, in the context of tests, you'll need to set DAPP_PATH manually, to whatever makes the most sense, usually a temp directory
    robertosnap@discord: kk, i ltry that
    robertosnap@discord: thx
    michaelb@discord: sometimes it can just be a nonsense value, if the test won't result in stuff being written to disk.
    see for example: https://github.com/embarklabs/embark/blob/master/packages/stack/pipeline/test/pipeline.spec.js#L8-L11
    Autobot
    @status-im-auto

    robertosnap@discord: I get the message command handler for 'blockchain:client:register' not registered i see this command is set in the packages/stack/blockchain/src/index.js

    How can i assure this dep is set? ( 😬 )

    robertosnap@discord: I get the message command handler for 'blockchain:client:register' not registered which comes from the plugin constructor

    this.events.request( "blockchain:client:register", "ethereum", this.getEthereumClient.bind(this) );

    i see this command is set in the STACK /stack/blockchain/src/index.js

    How can i assure this dep is set? ( 😬 )

    Autobot
    @status-im-auto
    michaelb@discord: I think you need to set it up on the fake embark object
    Jo@discord: Yeah, I was trying to find an example, but you can indeed just stub it
    michaelb@discord: apologies, the Embark team got repurposed to building the Status Desktop app and it's been nearly 6 months since any of us have spent significant time with the code, takes a little while to refresh one's memory 😄
    michaelb@discord: @Jo do you remember when we used to write JavaScript?
    robertosnap@discord: Yea, think i understand found something in packages/stack/blockchain/test/blockchain.spec.js
    Jo@discord: > do you remember when we used to write JavaScript?
    you mean there is real JS and not just fake QML JS???
    michaelb@discord: yeah, those happy real JS days of yore
    robertosnap@discord: haha, been there 😄 so understand and no worries
    michaelb@discord: > packages/stack/blockchain/test/blockchain.spec.js
    yes, that's a good one to study
    Autobot
    @status-im-auto
    Jo@discord: Anyway @robertosnap, you can do something like this before initiating your ethereum-blockchain object:
    embark.events.setCommandHandler("blockchain:client:register", function () {/*do stuff hre or use a sinon spy*/});
    robertosnap@discord: aa, yea, cool ,il try that
    Autobot
    @status-im-auto
    robertosnap@discord: Btw. where is the root of this chat? In gitter its discord, in discords its bot, in status its bridge
    Jo@discord: We use a Status internal discord or core contributors.
    Jo@discord: We use a Status internal discord for core contributors.
    Autobot
    @status-im-auto
    Diligent Maroon Eagle@status: Hi
    Conor James Thomas Warford Henry
    @ConorHenry
    Can you use sub space in conjunction with embark framework or does that make no sense?
    Autobot
    @status-im-auto
    iurimatias@discord: you can
    Autobot
    @status-im-auto
    3esmit@discord: I did a shell script to work with embark, because I have trouble in using embark with latest go-ethereum https://github.com/3esmit/my-governance-example/blob/master/script/ethereum.sh
    Autobot
    @status-im-auto
    michaelb@discord: we love your singing @3esmit.stateofus.eth 😄
    Autobot
    @status-im-auto
    3esmit@discord: xD
    Autobot
    @status-im-auto
    bigsharkdefi@discord: https://discord.gg/Nqpp8vq
    Alexandre Jun
    @aochiai_twitter
    hi, is there any special instructions to install on WSL?
    Alexandre Jun
    @aochiai_twitter
    What can make a the embark demo console doesnt start properly (wait for my command)?
    Autobot
    @status-im-auto
    Jo@discord: It probably the whisper bug again. Try and update your communications config (config/communications.js) and set enabled: false
    Alexandre Jun
    @aochiai_twitter

    thank you Jo!

    Jo@discord: It probably the whisper bug again. Try and update your communications config (config/communications.js) and set enabled: false

    Alexandre Jun
    @aochiai_twitter
    image.png
    Hi, I am following the TokenFactory tutorial, after I include the "import Token from 'Embark/contracts/Token';" on app/js/index.js file, just like the tutorial, the "compiler" stops working failing to resolve it, with the message above...
    From what I see, it is Seaching the Token include not on "embarkArtifacts/contracts" where Token.js lies, tried to change the embark.json generationdir parameter to see if it helps, but did not...
    Alexandre Jun
    @aochiai_twitter
    one thing that I changed is "initial_balance value in config/contracts.js" where "contracts:" has been changed to "deploy:" since v4 (saw it somewhere)... does the error has to do with it??
    Alexandre Jun
    @aochiai_twitter
    Is there anything I am doing wrong?
    Autobot
    @status-im-auto

    Jo@discord: It's hard to tell exactly what's wrong, but that tutorial is very old, so it is very likely that the information you see there doesn't work with Embark 6.
    What you can is if you really want to continue with that tutorial, is to also check the migration guide and see what needs to be changed: https://framework.embarklabs.io/docs/migrating_from_3.x.html

    It would porbably be simpler however to just start from scratch and learn the new configs directly instead. I'll ask the team to see if we have a more up to date tutorial cc <@&628557706092871690>

    Jo@discord: It's hard to tell exactly what's wrong, but that tutorial is very old, so it is very likely that the information you see there doesn't work with Embark 6.
    What you can do is, if you really want to continue with that tutorial, is to also check the migration guide and see what needs to be changed: https://framework.embarklabs.io/docs/migrating_from_3.x.html

    It would porbably be simpler however to just start from scratch and learn the new configs directly instead. I'll ask the team to see if we have a more up to date tutorial cc <@&628557706092871690>

    Alexandre Jun
    @aochiai_twitter
    ok, thank you...