Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
noplan inc 勉強会(Foundryの紹介)
Search
Soma
September 24, 2022
Programming
1
66
noplan inc 勉強会(Foundryの紹介)
solidityの開発ツールキット "Foundry" の紹介
スマートコントラクト開発してみた所感
Soma
September 24, 2022
Tweet
Share
More Decks by Soma
See All by Soma
POAP (Proof Of Attendance Protocol)説明
somaseki
0
230
Other Decks in Programming
See All in Programming
UPDATEがシステムを複雑にする? イミュータブルデータモデルのすすめ
shimomura
1
550
実践ArchUnit ~実例による検証パターンの紹介~
ogiwarat
2
270
Rails産でないDBを Railsに引っ越すHACK - Omotesando.rb #110
lnit
1
160
FormFlow - Build Stunning Multistep Forms
yceruto
1
180
A comprehensive view of refactoring
marabesi
0
790
從零到一:搭建你的第一個 Observability 平台
blueswen
1
950
DroidKnights 2025 - 다양한 스크롤 뷰에서의 영상 재생
gaeun5744
3
290
Beyond Portability: Live Migration for Evolving WebAssembly Workloads
chikuwait
0
380
セキュリティマネジャー廃止とクラウドネイティブ型サンドボックス活用
kazumura
1
180
GoのWebAssembly活用パターン紹介
syumai
3
10k
Practical Tips and Tricks for Working with Compose Multiplatform Previews (mDevCamp 2025)
stewemetal
0
120
Javaに鉄道指向プログラミング (Railway Oriented Pro gramming) のエッセンスを取り入れる/Bringing the Essence of Railway-Oriented Programming to Java
cocet33000
2
580
Featured
See All Featured
Imperfection Machines: The Place of Print at Facebook
scottboms
267
13k
RailsConf 2023
tenderlove
30
1.1k
What’s in a name? Adding method to the madness
productmarketing
PRO
22
3.5k
Designing for Performance
lara
609
69k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
137
34k
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
Reflections from 52 weeks, 52 projects
jeffersonlam
351
20k
Why Our Code Smells
bkeepers
PRO
337
57k
Making the Leap to Tech Lead
cromwellryan
134
9.3k
Building a Scalable Design System with Sketch
lauravandoore
462
33k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
252
21k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
15
1.5k
Transcript
noplan.inc 月末定例勉強会 Foundry (Solidity開発ツール) soma 2022/09/23
1. Foundryとは 2. 特徴 3. 比較(主にhardhatと) 4. 使ってみた所感 5. その他できること
6. まとめ Foundryは使えそうか? hardhatに取って代わるか? Agenda
1. Foundryとは - Rust製のSolidity開発ツールキット - Paradigm (Crypto系VC) が開発 - dapptoolsというsolidity開発ツールの影響受けている
2. 特徴 - コンパイル・テストが速い
2. 特徴 - fuzzing test - trace
3. 比較(主にhardhatと) - コンパイル・テストが速い 👍
- 言語切り替えのスイッチングコストない 👍 - await, bignumber, ethersjs or web3jsの知見 不要 -
便利な機能がネイティブ実装されている 👍 - fuzzing test - gas trace - 学習コスト少し高い 👎 - プラグイン少ない 👎 3. 比較(主にhardhatと)
4. 使ってみた所感 - コンパイルやテストがサクサク終わるので気持ち良い - テスト書くときの考え方 「フロント、ノードからコントラクト操作」というよりも「 VM直接いじっている」 - テスト・スクリプトのファイル名や関数名に命名規則がある個人的には好き
- testファイルは '.t.sol' - test関数名は 'test....' - script実行ファイルは '.s.sol'
5. その他できること - upgradeable contractの実装 - 実際のチェーンをローカルノードにフォークしてテスト - differential testing
etc.
6. まとめ - 開発体験良い(シンプルテスト速いしバグトレースしやすい - 既存のhardhatプロジェクトを置き換えるのは難しい - プラグインの少なさと使用者の少なさ、ネット上の記事の少ないので、業務で採用す るにはまだ早い 現状はhardhat使った開発が無難
将来的に取って代わるというより2強になる可能性ある
参考資料 https://book.getfoundry.sh https://qiita.com/oishun/items/808994e0aea83cf08d7b https://yamenmerhi.medium.com/foundry-vs-hardhat-918c55e47add https://zenn.dev/razokulover/articles/574eb471e6db1c