Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upIssue #575 split test_lib.js #613
Conversation
mergify
bot
added
the
work-in-progress
label
Jan 3, 2019
This comment has been minimized.
This comment has been minimized.
@elpiel yes, if the Also, please do feedback on your development experience and let us know if we should update documentation or tooling to make the experience smoother and this project easier to contribute to. |
D4nte
reviewed
Jan 4, 2019
api_tests/comit_node_conf.js Outdated
D4nte
reviewed
Jan 4, 2019
|
This comment has been minimized.
This comment has been minimized.
So in terms of development experience, indeed I think some stuff can be added to the Readme. I was pretty new to the For now that's it I think, if there is something else I will update you. I've also update the PR with list of things that need to be done, it's not full yet though but also I want your feedback on it. |
elpiel
force-pushed the
elpiel:issue-575-split-test_lib_js
branch
from
4610a81
to
732a267
Jan 4, 2019
elpiel
added some commits
Jan 3, 2019
elpiel
force-pushed the
elpiel:issue-575-split-test_lib_js
branch
from
e2c96f5
to
7228043
Jan 5, 2019
This comment has been minimized.
This comment has been minimized.
I think that's much better now. There are definitely things that can be improved more, but since it's only about splitting I decided to leave it like this. If you have anything else you'll like me to change, I will be happy to do so. |
elpiel
changed the title
[WIP] Issue #575 split test_lib.js
Issue #575 split test_lib.js
Jan 6, 2019
D4nte
requested a review
from
luckysori
Jan 6, 2019
D4nte
self-assigned this
Jan 7, 2019
D4nte
requested a review
from comit-network/rust-devs
Jan 7, 2019
D4nte
reviewed
Jan 7, 2019
await bitcoin_rpc_client_conf.btc_import_address(bob_final_address); // Watch only import | ||
await bitcoin_rpc_client_conf.btc_import_address( | ||
alice.wallet.btc().identity().address | ||
); // Watch only import |
This comment has been minimized.
This comment has been minimized.
D4nte
Jan 7, 2019
Member
I know it's due to the formatting but could you move the comment to it's own line above the import?
This comment has been minimized.
This comment has been minimized.
elpiel
Jan 7, 2019
Author
Contributor
Yes, no, I didn't go into much details while moving code. I will do it today
D4nte
assigned
LLFourn
Jan 7, 2019
D4nte
requested a review
from comit-network/rust-devs
Jan 7, 2019
D4nte
dismissed
their
stale review
Jan 7, 2019
Happy with the changes. Would like @LLFourn to review
D4nte
added
review
and removed
work-in-progress
labels
Jan 7, 2019
LLFourn
requested changes
Jan 8, 2019
Nice work. Thanks.
Actually, I think we only need these files: |
return this._btc_wallet; | ||
} | ||
|
||
async send_raw_tx(hex) { |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
LLFourn
Jan 8, 2019
Contributor
It's a bitcoin thing so just put it in bitcoin.js
. Alternatively, just delete it and call the thing on bitcoin_rpc_client
directly. I don't think this function adds any value.
); | ||
} | ||
|
||
eth() { |
This comment has been minimized.
This comment has been minimized.
LLFourn
Jan 8, 2019
•
Contributor
ComitNodeConf
. We can then delete this file.
ComitNodeConf
to something else like Actor
(it no longer represents the configuration of a comit node exclusively).
This comment has been minimized.
This comment has been minimized.
elpiel
Jan 8, 2019
Author
Contributor
Make sense! I will do it. I wasn't sure exactly what names would be good and if I had to merge things.
I'm also not sure what to do with those two places that directly use the Wallet:
Any suggestions about that?
This comment has been minimized.
This comment has been minimized.
LLFourn
Jan 8, 2019
Contributor
@elpiel Whoops. You're right. Forget about removing wallet for now then (probably call it wallet instead of wallet_conf
).
const fs = require("fs"); | ||
|
||
class ComitNodeConf { | ||
constructor(name, bitcoin_utxo) { |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@LLFourn Can you tell me where should the |
D4nte
removed their assignment
Jan 8, 2019
This comment has been minimized.
This comment has been minimized.
@elpiel Good question. I don't think we should put util stuff in harness because it's an executable file rather than a library. There are two functions in there that are just returning global variables -- I'm not sure why we did that. For Obviously the mint erc20 tokens thing should just go in |
This comment has been minimized.
This comment has been minimized.
@LLFourn Now that I moved stuff around, I have an issue with the tests. Also can you give any advice for the PS: I am just getting started with blockchain and cryptocurrencies and wasn't sure about the erc20 tokes
|
elpiel
force-pushed the
elpiel:issue-575-split-test_lib_js
branch
from
35025b2
to
8287709
Jan 9, 2019
This comment has been minimized.
This comment has been minimized.
@elpiel No worries. Thanks! Since you've done most of the heavy lifting, I think it's faster if I just fix the logging thing and cleanup any remaining things. I'll make a PR to your fork and then we can merge this stuff :) |
This comment has been minimized.
This comment has been minimized.
CLAassistant
commented
Jan 10, 2019
•
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@LLFourn thanks a lot! The changes do make sense. I hope to contribute to the Rust part soon as well. |
LLFourn
approved these changes
Jan 10, 2019
LLFourn
merged commit 692aeb1
into
comit-network:master
Jan 10, 2019
1 check passed
wafflebot
bot
removed
the
review
label
Jan 10, 2019
This comment has been minimized.
This comment has been minimized.
@elpiel No worries. Thanks for your contribution! |
elpiel commentedJan 3, 2019
•
edited
Hello,
I already separated the ComitConf and the LQS, still things to be changed there, just want to check if I am on the right direction.
Resolves #575
PS: I also see a lot of requires or constants that are not used, is this intended? I will not change the signatures of the methods, but should I clean up some unused requires and variables/constants?