Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reviewing and updating Truffle-related references and code #955

Open
wbnns opened this issue Mar 13, 2020 · 20 comments
Open

Reviewing and updating Truffle-related references and code #955

wbnns opened this issue Mar 13, 2020 · 20 comments

Comments

@wbnns
Copy link
Contributor

wbnns commented Mar 13, 2020

@adrianmcli @nicholasjpaterno

Thank you all for your offer of assistance with helping review and update Truffle-related references and code. As discussed via email, opening this issue so we can organize / coordinate together.

There are currently a significant number of references, as can be seen via git grep 'truffle' (here's a link to a gist with the output).

A lot of the code itself that needs to be reviewed/updated is in code/truffle.

Was thinking depending on your availability, it would be nice if you all could review the in-chapter references and help update the code samples.

Please let me know.

@adrianmcli
Copy link
Contributor

adrianmcli commented Mar 15, 2020

@wbnns thanks for the initial push.

I ran a similar command and found 51 files for "truffle" and 13 files for "ganache": https://gist.github.com/adrianmcli/97fd7388989aba80c8ec15de66ec4c45

I think this can be broken down into the following categories:

  1. Chapters, Appendix, Glossary — Mostly text in paragraphs.
  2. Code-based — Actual code.
  3. Miscellaneous — Things in the contrib folder and also example_keys.txt

I think we can probably ignore the contrib stuff since most of that is old and it may not make it "into print" so-to-speak. However the rest definitely requires a review.

What does everyone think?

Files Breakdown

Ganache

  • Chapters, Appendix, Glossary
    03clients.asciidoc
    10tokens.asciidoc
    appdx-dev-tools.asciidoc
    glossary.asciidoc
    
  • Code
    code/aws/truffle.js
    code/truffle/CallExamples/truffle-config.js
    code/truffle/METoken/truffle-config.js
    code/truffle/METoken_Faucet/truffle-config.js
    code/truffle/METoken_METFaucet/truffle-config.js
    code/truffle/console/truffle-config.js
    
  • Miscellaneous
    contrib/angular4-truffle.asciidoc
    contrib/ethereum-testnets.asciidoc
    misc/example_keys.txt
    

Truffle

  • Chapters, Appendix, Glossary
    06transactions.asciidoc
    07smart-contracts-solidity.asciidoc
    10tokens.asciidoc
    12dapps.asciidoc
    appdx-dev-tools.asciidoc
    glossary.asciidoc
    
  • Code
    code/auction_dapp/DEV_README.md
    code/aws/truffle.js
    code/truffle/CallExamples/build/contracts/Migrations.json
    code/truffle/CallExamples/build/contracts/calledContract.json
    code/truffle/CallExamples/build/contracts/calledLibrary.json
    code/truffle/CallExamples/build/contracts/caller.json
    code/truffle/CallExamples/package-lock.json
    code/truffle/CallExamples/package.json
    code/truffle/CallExamples/truffle-config.js
    code/truffle/Faucet/package-lock.json
    code/truffle/Faucet/package.json
    code/truffle/FaucetEvents/build/contracts/Faucet.json
    code/truffle/FaucetEvents/build/contracts/Migrations.json
    code/truffle/FaucetEvents/build/contracts/mortal.json
    code/truffle/FaucetEvents/build/contracts/owned.json
    code/truffle/FaucetEvents/package-lock.json
    code/truffle/FaucetEvents/package.json
    code/truffle/FaucetReentryAttack/build/contracts/Attacker.json
    code/truffle/FaucetReentryAttack/build/contracts/Faucet.json
    code/truffle/FaucetReentryAttack/build/contracts/Migrations.json
    code/truffle/FaucetReentryAttack/build/contracts/mortal.json
    code/truffle/FaucetReentryAttack/build/contracts/owned.json
    code/truffle/FaucetReentryAttack/package-lock.json
    code/truffle/FaucetReentryAttack/package.json
    code/truffle/METoken/package-lock.json
    code/truffle/METoken/package.json
    code/truffle/METoken/truffle-config.js
    code/truffle/METoken_Faucet/build/contracts/Faucet.json
    code/truffle/METoken_Faucet/build/contracts/METoken.json
    code/truffle/METoken_Faucet/build/contracts/Migrations.json
    code/truffle/METoken_Faucet/package-lock.json
    code/truffle/METoken_Faucet/package.json
    code/truffle/METoken_Faucet/truffle-config.js
    code/truffle/METoken_METFaucet/build/contracts/METFaucet.json
    code/truffle/METoken_METFaucet/build/contracts/METoken.json
    code/truffle/METoken_METFaucet/build/contracts/Migrations.json
    code/truffle/METoken_METFaucet/package-lock.json
    code/truffle/METoken_METFaucet/package.json
    code/truffle/METoken_METFaucet/truffle-config.js
    code/truffle/console/package-lock.json
    code/truffle/console/package.json
    code/truffle/console/truffle-config.js
    
  • Miscellaneous
    contrib/angular4-truffle.asciidoc
    contrib/aws-network-operation.asciidoc
    contrib/ethereum-basics.asciidoc
    

@adrianmcli
Copy link
Contributor

Also @wbnns is there a new deadline that you can give us?

@wbnns
Copy link
Contributor Author

wbnns commented Mar 16, 2020

@adrianmcli

This sounds great. Thanks so much!

With regard to a deadline, it would be great to see what you all may be able to help us accomplish in the next 2-4 weeks, alongside your other commitments, if possible.

@adrianmcli
Copy link
Contributor

@wbnns Got it. @nicholasjpaterno and I will coordinate to have this done in a few weeks!

@wbnns
Copy link
Contributor Author

wbnns commented Mar 16, 2020

@adrianmcli @nicholasjpaterno

Thanks! Please let us know as any questions arise.

@adrianmcli
Copy link
Contributor

adrianmcli commented Apr 4, 2020

@wbnns 3 PRs are now ready for review for the Ganache-specific references. Do note that I didn't run through the tutorial itself yet, I just corrected things that I know to be incorrect. I assume someone needs to do all that before publishing (i.e. actually read through the book and do the tutorials).

Ganache

  • Chapters, Appendix, Glossary: Ganache Text References #960
    03clients.asciidoc
    10tokens.asciidoc
    appdx-dev-tools.asciidoc
    glossary.asciidoc
    
  • Code: Ganache Code References #959
    code/aws/truffle.js
    code/truffle/CallExamples/truffle-config.js
    code/truffle/METoken/truffle-config.js
    code/truffle/METoken_Faucet/truffle-config.js
    code/truffle/METoken_METFaucet/truffle-config.js
    code/truffle/console/truffle-config.js
    
  • Miscellaneous: Ganache Misc References #958
    contrib/angular4-truffle.asciidoc
    contrib/ethereum-testnets.asciidoc
    misc/example_keys.txt
    

@adrianmcli
Copy link
Contributor

@wbnns It's my understanding that files in the contrib folder aren't actually part of the book and that a lot of them are files to be potentially included.

I think it might be a good idea to ignore them for now as a couple of them are quite outdated and require a lot of work to update. I'd rather focus our limited energies on what's already in the book.

Also, #961 is my review of the in-text references of "truffle" and is ready for review. Files reviewed:

06transactions.asciidoc
07smart-contracts-solidity.asciidoc
10tokens.asciidoc
12dapps.asciidoc
appdx-dev-tools.asciidoc
glossary.asciidoc

@wbnns
Copy link
Contributor Author

wbnns commented Apr 8, 2020

@adrianmcli Thanks for the assistance! Merged #958, #959, #960 & #961.

Just to confirm, are you all still in the process of reviewing code/truffle/*?

Regarding contrib/:

I think it might be a good idea to ignore them for now as a couple of them are quite outdated and require a lot of work to update. I'd rather focus our limited energies on what's already in the book.

Understood. Let's defer to @aantonop on this.

Also:

I assume someone needs to do all that before publishing (i.e. actually read through the book and do the tutorials).

Yes, this is correct.

@adrianmcli
Copy link
Contributor

@wbnns thanks for the merge

Just to confirm, are you all still in the process of reviewing code/truffle/*?

I'm waiting to see when #962 gets merged in. Since 0.6 brings quite a few significant changes to the code, I'd have to do the reivew/testing all over again if I did it now and the PR was subsequently merged.

@adrianmcli
Copy link
Contributor

Just pointing out that I am no longer associated with Truffle, but I am happy to keep helping with the book.

@wbnns
Copy link
Contributor Author

wbnns commented May 9, 2020

@adrianmcli

Ok, that would be great. I hope the move is for the best and that it connects you with a new and awesome opportunity.

What do you currently have bandwidth for in terms of what we were discussing previously?

@adrianmcli
Copy link
Contributor

@wbnns I think we should make a decision on @HAOYUatHZ's issue first: #962 (comment)

@chanhosuh
Copy link

Has anyone gone through the proposed tutorial changes to make sure everything works with all the recent updates? Or do you need a hand on that?

@adrianmcli
Copy link
Contributor

@chanhosuh I want to do it after all the code has been upgraded to 0.6. (e.g. when #962 is merged). Not sure why it's not merged yet though?

@HAOYUatHZ @wbnns what's the timeline on having everything converted to 0.6 so we can test things out and finalize this edition of the book?

@chanhosuh
Copy link

by the way, I noticed the truffle build artifacts are also being committed for several of the projects... is that on purpose? Not sure what benefit that provides, but possibly could be an issue since it contains a mapping of network IDs to contract addresses which wouldn't work for readers. It also leaks a bit of info about the user's local environment, but that can be stripped out harmlessly, I believe, if the build artifacts are needed.

@wbnns
Copy link
Contributor Author

wbnns commented Jun 9, 2020

@adrianmcli

what's the timeline on having everything converted to 0.6 so we can test things out and finalize this edition of the book?

Hello. I think late summer / early fall might be the earliest, most realistic estimate.

@adrianmcli
Copy link
Contributor

@chanhosuh agreed, those can definitely be gitignored.

@HAOYUatHZ
Copy link
Contributor

#962 is kind of ready.

If anyone can review it will be the best!

@wbnns
Copy link
Contributor Author

wbnns commented Mar 10, 2021

#962 is merged, sorry for the delay!

@wbnns wbnns added this to the Second Edition milestone Mar 11, 2021
@mshearer0
Copy link

Please see #1119

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants
@adrianmcli @wbnns @chanhosuh @HAOYUatHZ @mshearer0 and others