小屋創作

日誌2018-12-16 22:31

以太坊區塊鏈智能合約相關學習資源筆記

作者:o喵星o

\之後再細細整理/

大推集成資源專欄

https://medium.com/taipei-ethereum-meetup/101/home
https://medium.com/hackoin-taiwan/智能合約-smart-contract-教學系列-1-序-b1902f707b6f

合約框架: Truffle

https://truffleframework.com/tutorials/robust-smart-contracts-with-openzeppelin?fbclid=IwAR1V21TgctAjNynzGOFuJtg1ymBsfnBpriqCQhbJs4vfht6xhSVCsqertTg
https://medium.com/heartbankacademy/how-truffle-works-under-the-hood-f1ff6add416c

npm install zeppelin-solidity(一個方便開發truffle框架合約的module)

http://me.tryblockchain.org/robust-smart-contracts-with-openzeppelin.html?fbclid=IwAR3up8f9OzdZv_g3UBlxg3nujzbTK0CW4jPaIWen30kc9w0Co7GBrLYXV4k
import ‘node_modules/zeppelin-solidity/contracts/token/StandardToken.sol’;
會compile不過,需改成
import ‘node_modules/zeppelin-solidity/contracts/token/ERC20/MintableToken.sol’;

以太坊私有鏈模擬器ganache

https://truffleframework.com/ganache

合約語言: Solidity (.sol)

教學: https://solidity-cn.readthedocs.io/zh/develop/solidity-in-depth.html
https://blog.gasolin.idv.tw/2017/09/06/howto-write-a-smart-contract/?fbclid=IwAR3OhIKbecLItKQ2xCCHj7FXofxP_eGL6HFZTHZqlQCPXV_7Tl59smVOxhs
https://medium.com/taipei-ethereum-meetup/比較-require-assert-和-revert-及其運作方式-30c24d534ce4

測試時好用的網頁錢包 Metamask

https://metamask.io/

手把手建ERC20/智能合約教學系列(有些有坑)

https://hackernoon.com/search?q=Ethereum Development Walkthrough &fbclid=IwAR2iyx3xZiJKCT4ay7e3tMC6xTlPdJdVnf7ZtKRecV4DcnfLkUZmu_yHWOQ
https://tw.saowen.com/a/0921953004d860c5f70f3129a5752dcaae7d1c4d8e3406e755b29051472abeef?fbclid=IwAR3ocwuUeNhxn3YgV-y9pXNaZkpZdtrc6izlBphIGzdq-BRafr36O2oP9Yc
https://blog.csdn.net/weixin_42350212/article/details/80753328?fbclid=IwAR04DdI5xouFjgY5BEdXeoP_nBfu13malvO-N2gM0_xTI2T19tFkUqUDEmQ
https://medium.com/haloblock/deploy-your-own-smart-contract-with-truffle-and-ganache-cli-beginner-tutorial-c46bce0bd01e?fbclid=IwAR33_b4A_NEzDI1Y6yVBoRcpEsRRGrDv3qkhMwBSB4tPMJv0XIE-8r_uXcw
https://medium.com/coinmonks/build-a-smart-contract-that-transfers-erc20-token-from-your-wallet-to-other-addresses-or-erc20-ee8dc35f40f6?fbclid=IwAR0SSs2gYOL6dJzgqfjKfyWgEpSqe_adsyEtA8_Heu0ZghH_xPR0t1g4LJo
https://ethereum.stackexchange.com/questions/46318/how-can-i-transfer-erc20-tokens-from-a-contract-to-an-user-account?fbclid=IwAR2HLYD4BZ2GqLC9023u5rEAliGoA5uMpAAw0TSr79Kb6vQU9L7F0ny4e_0
https://medium.com/coinmonks/developing-ethereum-dapps-with-truffle-ganache-and-metamask-31bc5023ce91?fbclid=IwAR2Rkbg32aLXkLnlOtcqBYtKPNJANquqbiuVoln6_13ebPMM3t36Ll8rtCQ
https://hackernoon.com/ethereum-development-walkthrough-part-2-truffle-ganache-geth-and-mist-8d6320e12269?fbclid=IwAR23svE5B4efNDJAh89KUlmP7VIt7tZQoQR87yVB1FyeoUMIuBf7--HuVug
https://gasolin.gitbooks.io/learn-ethereum-dapp/content/create-a-crypto-token.html
https://juejin.im/post/5ac789466fb9a028c5236d4d
https://truffleframework.com/docs/truffle/testing/writing-tests-in-javascript
http://kimiwublog.blogspot.com/2018/07/truffledebug.html
https://medium.com/taipei-ethereum-meetup/使用truffle作smart-contract測試及debug-ii-測試-ada91b366009
https://medium.com/taipei-ethereum-meetup/ethereum-dapp-tutorial-push-button-cae3810086a4
https://blog.csdn.net/diandianxiyu_geek/article/details/78361621
https://gasolin.gitbooks.io/learn-ethereum-dapp/content/add-unit-test.html
test會用到的2個lib:
https://github.com/chaijs/chai
https://mochajs.org/
http://www.thinkingincrowd.me/2018/03/17/dapp-development-5-UI-integration/
https://medium.com/@anderson.c/ethereum-智能合約開發筆記-透過-metamask-使用-web3-ethjs-64b73aa8d3a?fbclid=IwAR2oliIwoKc9iJW6bQzvfGtut9RRJdGSPiLiR93RSAn00f_4DZ-vPnnucDA
https://easonwang01.gitbooks.io/blockchain/dapp/web3.html?fbclid=IwAR1zdAQAzekH-JAf5zggZFgGbdY62yds8pawWLK0C0lAQjtLQwbNy-bhZXM
https://ithelp.ithome.com.tw/users/20092025/ironman?fbclid=IwAR1GWUy1V3C32VtSfZgam5omyy5F0cJ-zBhOgZQ6hJE307ZhYfWQp1bfdao
https://easonwang01.gitbooks.io/blockchain/dapp/web3.html
https://medium.com/@ksin751119/ethereum-dapp初心者之路-5-簡介web3-javascript-api及常用操作-253c468450c0
https://github.com/gitferry/mastering-ethereum/tree/master/web3-interact-with-Solidity/codes
https://coursetro.com/posts/code/99/Interacting-with-a-Smart-Contract-through-Web3.js-(Tutorial)
https://zhuanlan.zhihu.com/p/44527515

工具

http://blog.hubwiz.com/2018/06/19/ethereum-devtools-5/

實用論壇

https://learnblockchain.cn/
https://ethfans.org/
https://ethereum.stackexchange.com/

範例

https://github.com/EasonWang01/Blockchain-and-Cryptography

喵指令

ganache-cli.cmd --account “0x3dabf8e545e3e75c0e0700006628b4766b34161a10fe192f68eda639ecad807b, 100000000000000000000” --account “0x935e13bf06853c5bf8959006f64e95c315565daed3d13d9246e7f03b1bc26125, 100000000000000000000" --account “0xae59c9dcd4d2d232bfed3b151fe87ae24ef617bed5745b476ddfbe6c15dd60db, 100000000000000000000”

Web3 1.0.0文檔

npm install web3@1.0.0-beta.18 --save

1

0

LINE 分享

相關創作

【行程規劃】2024/05/04拜六、五月份行程&路線研究

【亞夜玩遊戲】《皇冠之心 Online》搶先體驗版

【yotoo】240505

留言

開啟 APP

face基於日前微軟官方表示 Internet Explorer 不再支援新的網路標準,可能無法使用新的應用程式來呈現網站內容,在瀏覽器支援度及網站安全性的雙重考量下,為了讓巴友們有更好的使用體驗,巴哈姆特即將於 2019年9月2日 停止支援 Internet Explorer 瀏覽器的頁面呈現和功能。
屆時建議您使用下述瀏覽器來瀏覽巴哈姆特:
。Google Chrome(推薦)
。Mozilla Firefox
。Microsoft Edge(Windows10以上的作業系統版本才可使用)

face我們了解您不想看到廣告的心情⋯ 若您願意支持巴哈姆特永續經營,請將 gamer.com.tw 加入廣告阻擋工具的白名單中,謝謝 !【教學】