~/talk

Writing, testing and debugging contracts using Buidler

Talkat HackMoney 2020 · 2020-04-24..05-24· [developer-experience, security]
links:none on file
slides:none on file

Live demo shows how to set up a Solidity project with Buidler, use ethers and Waffle to deploy and test a minimal token with an initial supply of 1,000,000, and write mocha/chai tests that call ethers.getSigners, deploy via ContractFactory, check balances and run transfers. Debugging uses Buidler EVM plus console.log in Solidity to print state and VM stack traces, and Waffle assertions like expect().to.be.revertedWith to verify require reverts; deploy scripts target Infura/Ropsten when replacing VM keys.

AI-written summary · about

  1. 0:00Workshop introduction
  2. 2:08Environment setup
  3. 5:05Introduction to Buidler
  4. 7:47Installing dependencies
  5. 12:28Smart contract languages
  6. 15:30Buidler configuration
  7. 17:13Writing a smart contract
  8. 19:43Creating unit tests
  9. 24:06Deploying and testing
  10. 33:50Implementing token logic
  11. 47:36Debugging with console logs
  12. 59:48Advanced testing
  13. 1:07:05Deployment scripts
  14. 1:21:37Wrap up and logistics
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.