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
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Soma
September 24, 2022
Programming
72
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
noplan inc 勉強会(Foundryの紹介)
solidityの開発ツールキット "Foundry" の紹介
スマートコントラクト開発してみた所感
Soma
September 24, 2022
More Decks by Soma
See All by Soma
POAP (Proof Of Attendance Protocol)説明
somaseki
0
240
Other Decks in Programming
See All in Programming
個人開発基盤をまるごとCloudflareに引っ越して爆速で総合的体験を向上させた話
tinykitten
0
110
Gmail/Google DriveをトリガーにAIエージェントを動かそう! / Run AI agents with Gmail/Google Drive as triggers!
har1101
3
470
AWS Step Functions 大規模並列の壁を越える / jaws-sonic-2026-niigata-step-functions
kasacchiful
PRO
0
390
Pythonの実行はどこまで賢くなったのか? CPythonとPyPyから見る最適化のしくみ
curekoshimizu
4
2.8k
Discordを用いたラボオートメーション関連情報収集の自動化
noguhiro2002
0
510
Vibes Containers 〜AIで変わるコンテナ設計と運用〜
tkikuc
2
500
数年滞っていたダークモード対応をおよそ2週間で完了させる
chigichan24
0
680
Snowflakeで業務アプリを作ろう。 Snowflakeのアプリ機能解説&実践ガイド
ayumu_yamaguchi
1
150
AIの中の人になってみる
htkym
0
170
Building an Out-of-Order CPU
latte72
1
710
ALB ログから Trace を気合で繋げる技術
fohte
7
880
iOS開発×AI駆動開発 〜最近使って便利だったスキルの話〜
nogu66
0
140
Featured
See All Featured
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
440
Designing Powerful Visuals for Engaging Learning
tmiket
1
530
Paper Plane (Part 1)
katiecoart
PRO
1
11k
Facilitating Awesome Meetings
lara
57
7.1k
Build The Right Thing And Hit Your Dates
maggiecrowley
39
3.4k
Everyday Curiosity
cassininazir
0
310
svc-hook: hooking system calls on ARM64 by binary rewriting
retrage
2
560
Raft: Consensus for Rubyists
vanstee
141
7.7k
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.8k
The AI Revolution Will Not Be Monopolized: How open-source beats economies of scale, even for LLMs
inesmontani
PRO
3
3.7k
Breaking role norms: Why Content Design is so much more than writing copy - Taylor Woolridge
uxyall
1
400
Ethics towards AI in product and experience design
skipperchong
2
360
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