📜 [專欄新文章] Scaling Ethereum 參賽心得
✍️ Johnson
📥 歡迎投稿: https://medium.com/taipei-ethereum-meetup #徵技術分享文 #使用心得 #教學文 #medium
Scaling Ethereum 是一場由 ETHGlobal 所舉辦的線上黑客松,也是我第一次參加與以太坊有關的黑客松活動,這篇文章就來分享一人參賽的過程與心得。
源起
一開始是在 telegram 群組中得知這場比賽的消息,因緣際會之下剛好有人想組隊參賽,於是就在報名截止的前一天一起跟著報名了。
報名的方式除了填一些基本資料外,最特別的是還要 stack 以太幣,也就是要傳送 0.01 顆以太幣給主辦方,規則是必須在比賽的最後,有提交作品的人才能贖回 0.01 顆以太幣,之後看到 meme 頻道有人留言:
When your project is incomplete but you submit to get back stake.
一方面,這確實也會激勵你好好把比賽完成,就算沒做完也要有些成果上去,這也是主辦方秉持的精神,他們認為大家來黑客松相互學習成長,競賽獎金則是其次。
獎金
比賽方式是由 25 個左右的贊助者(sponsor)分別提供獎金,每個 sponsor 都有錄製一段影片,說明怎麼獲得他們的獎金,大部分會要你使用他們開發的工具,或者必須跟 sponsor 在做的研究有關,去實作出創新的作品。可參考:Prizes — Scaling Ethereum
你的專案可以選擇要投入哪個 sponsor 的獎金,一個專案可以投入多個 sponsor 底下,這樣獲獎機會也會比較高。
我選擇的 sponsor 是 zkSync,他們的說明如下:
zkSync is a user-centric zkRollup developed by Matter Labs. It uses zero-knowledge proofs to keep data availability on mainnet to achieve exponentially lower transaction costs. You may have seen us powering projects such as payments and Gitcoin Grants. We are currently rapidly developing zkSync 2.0, which will feature EVM-compatibility in testnet May 2021, soon followed by zkPorter, our new exponential scalability solution.
PrizeszkSync will be awarding their Prizes as follows:
- 1 winner — 4,000 USDC
- 2 winners — 2,000 USDC
- 4 winners — 500 USDC
We encourage builders to utilize zkSync SDK’s, implemented in JavaScript/Typescript and Rust. Prizes will be awarded to projects that make it simpler and easier for non-technical users to use zkSync, other ideas include integrations of current tools such as in Gitcoin Grants and tools for easy mass payments and multi-sigs.
社群互動
這個 hackathon 很棒的地方是他把使用者體驗做的很好。每個人都會有自己的 dashboard 顯示目前專案的進度和一些訊息。
Check-In #1 和 Check-In #2 的階段會要你提供專案的構想,你隨時都可以修改。主辦方會看你提交的資訊,幫助你找到適合的 sponsor,或是給你一些建議,就算是一人參賽也能感受到回饋。
整個賽程期間,社群都是使用 discord 在互動,discord 裡頭有很多頻道,像是基本的大會報告的頻道,或是一些不重要的迷因、閒聊頻道都有。
每個 sponsor 也都有自己的頻道,我就會在 sponsor-zksync 的頻道詢問技術的問題,例如我想問問 zkSync 一些關於專案構想的意見:
Hi there, I want to build a gas fee relayer which make my ERC-20 token transfer without transaction fee, to be more precise, delegating gas payment by another party. I think this is done by GSN https://opengsn.org/ , but maybe it could built on L2 with zkSync? I’m not sure, could somebody give me some advice about this topic?
zkSync 團隊的人回應我:
This is an amazing idea! This can totally be built, as we support batching transactions which can be used for all kinds of creative things such as paying for transaction fees in an erc-20 token. Your idea seems like a combination of that and the gitcoin grants integration. To get started, I suggest you watch the short 10 minute presentation I made on using the SDK and batching. Looking forward to your project!!
在 Check-In #2 的時候,我提交新版的專案構想,有一個欄位是問:「目前專案遇到什麼阻礙?」我的問題應該是被主辦方貼給 zkSync 的團隊,於是 zkSync 的團隊成員就用 discord 私訊我,貼了一些程式碼教我怎麼使用他們的 Javascript SDK,這突如其來的救援也幫了大忙。
除此之外,主辦方每個禮拜都會寄 email 通知一些重要的活動,賽程期間舉辦了四個 Summits 研討會,邀請世界各地有名的以太坊開發者分享議題,主辦方還有一個自己的 TV 網頁,直播所有的線上活動。這些活動都有錄影,可以在 youtube 看到過去所有的演講內容:https://www.youtube.com/c/ETHGlobal/videos
因為我的作品是使用 zkSync 的 Javascript SDK 製作的,好像也只能投稿 zkSync 作為獎金的 sponsor,不過主辦方在最後一個禮拜,也寄 email 告訴我說可以多投稿不同的 sponsors 看看,他依據我的專案構想給我一些適合的 sponsors 作為參考。
不過最後我還是只投稿了 zkSync,有點懶著再看其他 sponsors 的文件,也覺得其他 sponsors 的題目需要花比較大的功夫才能完成,一個人能力有限,就做點簡單的東西就好。
關於我的專案 — Gas Relay Service
在以太坊的世界,每一筆交易都需要額外付一筆交易費,也就是以太坊的 gas fee。
我的專案是讓「收款人」能夠幫「付款人」支付以太坊的手續費。
在黑客松之前,我就想研究「第三方支付手續費」的議題,因此我大部分時間其實都在研究一般的 meta-transactions 是怎麼實作的,有興趣的人可以看看 simple meta-transactions 的原始碼:https://github.com/chnejohnson/simple-meta-transaction
之後我才開始玩 zkSync 的 SDK,並研究怎麼在 Layer 2 實現第三方支付手續費的問題,以下就附上作品連結以及簡單的專案介紹給有興趣的人參考:https://showcase.ethglobal.co/scaling/gas-relay-service-on-zksync
The target is that token sender can choose to find another account to pay for fee. The another account can be (1) the token receiver’s account, (2) sender’s another account, (3) third party’s account.
In this project, I finished the demo, which is the (1) above, that receiver pay gas fee for the sender.
有趣的是,我在研究 meta-transactions 時學到很多智能合約的寫法,結果在最後專案上都沒用到(沒寫到合約的程式),zkSync Javascript SDK 其實很簡單,他們的文件寫得很清楚。最後 Demo 還是用 zkSync 團隊的成品修改來的…XD。
所幸在沒有懂太多技術的前提下完成了這場黑客松的專案,成功贖回了 0.01 顆以太幣。
評審與決選
整個賽程來到最後一個禮拜,主辦方安排兩天的時間進行 Judges,使用 zoom 進行線上研討會,一個人基本上是 7 分鐘,前 4 分鐘播放 Demo 簡報,後三分鐘會有評審問問題。
第一個問題是說:「Demo 中你是使用 zkSync 的錢包網頁去操作,那實際上你做得部分是什麼?」
我就回答我在他們的網頁上加了一顆按鈕,使用他們的 SDK 做出 gas relay 的功能,還有一個後端的 server 去作 relay。
第二個問題大概是問:「什麼樣的情境下會需要由 receiver 幫 sender 支付 gas fee?」
我的回答是,在一般超商購物的情境,消費者通常只支付商品的價格,不會支付額外的交易費,我認為以太坊的手續費應該屬於軟體的營運成本,由賣方支付比較適合。那如果賣方希望手續費的成本是由消費者承擔,可以直接調高商品的價格。
當然,我英文講得零零落落,希望評審有聽懂就是了…
最後一場直播就是 Finale 決選,主辦方選出十二個隊伍,公開再 Demo 一次,以及提供線上觀眾詢問問題,至此整個賽程就差不多進入尾聲。
決選後的不久,主辦方就公布了這次有獲得獎金的隊伍,幸運拿到了 zkSync 頒發的小獎~
zkSync — Matter Labs
- Zeneth — 2000 USDC
- ZeroSwap — 1500 USDC
- Kangaroo — 500 USDC
- Gas Relay Service — 500 USDC
後記
這次的參賽隊伍中,Zeneth 跟我的主題非常相似:
Zeneth — Use Flashbots to enable arbitrary meta-transactions so EOAs can enter L2s without ETH
另一個我覺得有趣的專案是 Alexandria:
Alexandria — A dApp using STARKs to verify aspects of your identity without revealing more than you should
沒想到主辦方 ETHGlobal 下個月又要再舉辦一場黑客松,有興趣的人可以看看:https://defi.ethglobal.co/ ,這次的主題是 De-Fi。
最後,只要有到 ETHGlobal 的 TV 網頁參加 Summit 研討會的直播,就能夠獲得 POAP 勳章,它就是一個酷東西~😋
POAP: Proof of Attendance Protocol
Scaling Ethereum 參賽心得 was originally published in Taipei Ethereum Meetup on Medium, where people are continuing the conversation by highlighting and responding to this story.
👏 歡迎轉載分享鼓掌
同時也有13部Youtube影片,追蹤數超過1萬的網紅Saga Dance Crew,也在其Youtube影片中提到,#KPOPDANCECOVER #ITZY #MAFIA\ Hurry up, baby, catch me if you can, 하하 Dancers: Puipui as Yeji (https://www.instagram.com/puii.2/) Nana as Yuna (ht...
relay on you 在 Brian 布萊恩 Facebook 的最佳貼文
大家平常喜歡吃素、全素、蛋奶素、吃葷? 留言一下~
我接受 #陽明春天 的 #創意料理 接力棒的挑戰! 接下來的一週都會有不一樣的創意料理!
我是第一棒!我選擇用陽明春天的「沙爹猴菇串」來料理
我今天要介紹的是他們的「沙爹猴菇串」因為我第一次吃到這道菜真的覺得它的口感跟味道很棒! 不管是平常在吃素還是也會吃肉的朋友吃到這道菜的時候都一定會覺得超級好吃! 而且一包有9串! 可以讓全家吃到好吃的沙爹串~
這次我是用烤箱烤6分鐘就可以直接上桌! 超級快也超級方便! 沒有烤箱的話也沒關係因為也可以用蒸的喔~
現在有一個特別活動,過年期間陽明春天電商推出15款全素冷凍年菜
(一) 1/31年前期間冷凍宅配滿$3000免運
(二)新入會員 領$100 (滿500可折抵)
(三)輸入優惠碼「brian」即享8折優惠 (滿$500可折抵,至2021/3/31止)
I’ve accepted Yangming Spring’s creative cuisine relay challenge. Over the next week, there will be lots of different kinds of food to see! I’m first, and I chose the Mushroom Satay for my dish. Next, I nominate @slow_vashion to use Yangming Spring’s food to make a creative dish. Remember to look at tomorrow’s post!
I wanted to introduce this dish today because the first time I tried it I felt like the flavor and texture was amazing! Regardless of if you normally eat vegan, vegetarian, or if you eat meat, you’ll definitely love these! And they come with 9 in a package! That way you can be sure everyone in the family gets to try these amazing skewers~
I baked these in my oven for 6 minutes, and they were ready to serve. Super fast and convenient. If you don’t have an oven, you can also steam them.
There’s a special going on now, Yangming Spring has put out 15 different kinds of frozen Chinese New Year’s dishes.
1. If you purchase over NT$3000, shipping is free.
2. New customers get a NT$100, (usable after purchasing NT$500.
3. Enter my promo code “brian” and you can get a 20% discount (usable after purchasing NT$500, and good before 03/31/2021)
#新年居家食裝秀起來
#創意料理 #2021 #年菜 #chinesenewyear
#Veganrunway #陽明春天 #YMSpring #2020食裝秀 #過年 #中國新年 #牛年 #新年快樂 #全素 #素食 #素食料理 #全素料理 #農曆年 #農曆新年 #cny #lunarnewyear
relay on you 在 wingkeh Facebook 的最讚貼文
😍Let’s Smile with me TEEHEE!
-----------
*Tbh, I believe a big smile is the best way to spread happiness & positive energy to others. (Put your hands up “🙌🏻❤️”in the comment below if you agree with me)
-----------
And let’s join me on Pocky Day Smile Relay challenge and spread smiles all across Malaysia.
-----------
P/s: If you have any question on how to join the challenge, you can go to check out my stories ya 😉 I will guide you there!
#PockyMY #PockyDaySmileRelay #PockyDay #1111 #ShareHappiness #photooftheday #love #happy
relay on you 在 Saga Dance Crew Youtube 的最佳貼文
#KPOPDANCECOVER #ITZY #MAFIA\
Hurry up, baby, catch me if you can, 하하
Dancers:
Puipui as Yeji (https://www.instagram.com/puii.2/)
Nana as Yuna (https://www.instagram.com/bang_n_a/)
Jessie as Chaeryeoung (https://www.instagram.com/theweirdarl/)
Jen as Ryujin (https://www.instagram.com/jenchui_/)
Chloe as Lia (https://instagram.com/im.co24/)
Videographer:
Wilson (https://www.instagram.com/wilsonyseung/)
Editor:
Puipui as Yeji (https://www.instagram.com/puii.2/)
Like us on Facebook page:
https://www.facebook.com/Saga-Dance-Crew
Follow us on Instagram:
https://www.instagram.com/sagadancecrew
Follow us on Twitter:
https://twitter.com/SagaDanceCrew
![post-title](https://i.ytimg.com/vi/J_XFZ4xWy58/hqdefault.jpg)
relay on you 在 Youji Youtube 的最佳貼文
全てのフェスリレー枠に適応されるゴールデンルール↓
・参加型ルールを破ったものは一回目に警告、二回目にこの配信枠中での参加不可(聞かない場合はブロック)
・煽り、利敵行為、放置、味方批判は禁止
――――― アドバタイズ / Advertisement ―――――
?...チャンネルメンバー登録 / Register as a Channel Member
https://www.youtube.com/c/youjiman/join
このチャンネルがお気に召しましたら / If you like my channel
――――― 日本語 ―――――
?♂️...ご挨拶
初めまして。ヨージと言います。
アメリカに住んでいる純日本人です。
日本語と英語が話せます。
?...配信について
フェスリレーという企画に参加します!
今回は第23走・ゆうぽんさんとコラボです!
キノコチームでやっていきます!
参加型です!交代制度やパスワードは...その時に決めるか。
[コラボ相手]
ゆうぽん さん
https://www.youtube.com/channel/UCCgqUf1O2gNg_oJQNLGDKzQ
[5時からの走者]
やさむぎ さん
https://www.youtube.com/channel/UCFYk46YScbBp6Wq3fAelImw
MISA さん
https://www.youtube.com/channel/UCfrTlCLv1uh1WeIQDaMMp2g
[タイムテーブル]
https://twitter.com/Rato_Gameplayer/status/1349657511092097025
?...フレンドコード
SW-3516-9899-0870
* フレンド申請を送ったら”必ず”Switchで使っているお名前を教えて下さい!
* フレンド枠には上限があるため、たまに整理します。名前が変わって誰か分からない方は整理対象になりやすいです。次やる時にまた送って下さい。
?...ルール
* 暴言・煽りはそっちの自由。だが、裁くのはこっちの自由だ。
* 人数合わせが必要なリグマやプラベを抜けたい時は、事前報告(1試合前)をお願いします。
* 回線落ちなどで他人に迷惑を掛けたら謝りましょう!幼稚園で習いましたよね。
* 英語圏リスナーさんのチャットの翻訳は受け付けておりません。
例外として、伝える必要がある内容だと判断した場合は自発的に翻訳します。
* 不良ではないのでタイマンはしません。大人なのでかくれんぼもしません。
?...禁止事項
ここに書かれていないことでも一度注意されたら辞めてもらえると助かります。
* 放置や意図的な回線切断
* 裏部屋の作成・やり取り
* 他プレイヤーに対する指示・文句
* 自分や他人の個人情報の開示
* 個人的なネガティブな話
* リスナー同士の他人が混ざれない会話
* 似た・同じ内容の発言の繰り返し
* 宣伝・売名行為
* その他公序良俗に反する発言
?…コマンド
カッコの中のコマンドをチャットに打つとNightbotが反応します。
「eng」
半角スペースを追加して日本語文を入力すると英語に翻訳されます。
例:「eng こんにちは」→「Hello」
「:_hmm」(スタンプ:チャンネル全メンバーのみ)
本音を暴かれます。
「:_ohno:」(スタンプ:チャンネル全メンバーのみ)
敗因を教えてくれます。
「:_kurae:」(スタンプ:Proメンバーのみ)
インスタントリプレイが再生されます。
「!ローリング」(Proメンバーのみ)
回れます。
「!スキャン」(Proメンバーのみ)
スキャンされます。
それでは、健闘を祈る❗️
――――― English ―――――
?♂️...Greeting
Hello my name is Youji. I'm a Japanese American that lives in the U.S. I can speak Japanese and English. Nice to meet you.
?...About Stream
I’m relaying Splatfest with other streamers! I'm on a mushroom team this time. Join us!
?...My Friend Code
SW-3516-9899-0870
* If you sent a friend request, you MUST tell me your in game name!
* I’ll delete you if I don’t recognize you because you changed your in game name. Please send it again next time.
?...Rules
* You will be punished if you choose to disrespecting others or squidbagging.
* I want you to tell me in advance (1 game ahead) when you want to leave from my league or private battle.
* If you annoy others (eg. disconnect on purpose), you should have the decency to apologize. I assume that is a basic manner you already learned in kindergarten.
?... Warnings
Please be mindful of your actions. Even if it’s not listed on here I warned you.
* Go AFK or disconnect on purpose
* Boss people around or tell others what to do
* Reveal you or someone else's personal information
* Talk about your personal negative stories
* Talk to other viewers about personal topics that no one else can understand or relate to
* Posting the same or similar messages over and over
* Advertising
* Any other inappropriate talking
?…Commands
You may use these commands inside “” to have Nightbot to react you. The same command can be used only once in 5 seconds.
“jpn”
It gonna translate English sentence to Japanese
e.g.: “jpn Hello” → “こんにちは”
“!japan”
It tells you the local time in Japan.
“!quote”
Try it then you'll know.
Have a good time and best of luck❗️
――――――――――
#NintendoSwitch#スプラトゥーン2#Splatoon2#視聴者参加型#Playingwithviewers
Support the stream: https://streamlabs.com/youjiman
![post-title](https://i.ytimg.com/vi/9inO14a2ThE/hqdefault.jpg)
relay on you 在 Youji Youtube 的最佳貼文
全てのフェスリレー枠に適応されるゴールデンルール↓
・参加型ルールを破ったものは一回目に警告、二回目にこの配信枠中での参加不可(聞かない場合はブロック)
・煽り、利敵行為、放置、味方批判は禁止
――――― アドバタイズ / Advertisement ―――――
?...チャンネルメンバー登録 / Register as a Channel Member
https://www.youtube.com/c/youjiman/join
このチャンネルがお気に召しましたら / If you like my channel
――――― 日本語 ―――――
?♂️...ご挨拶
初めまして。ヨージと言います。
アメリカに住んでいる純日本人です。
日本語と英語が話せます。
?...配信について
フェスリレーという企画に参加します!
今回は第4走・トワイライトザッキーさんとコラボです!
スターチームでやっていきます!
参加型です!参加希望者は2試合交代でパスワードは0035です!
[コラボ相手]
トワイライトザッキー さん
https://www.youtube.com/channel/UCBxAzCYKTBwRDW3vmYHws8w
[15時からの走者]
4sピクミン さん
https://www.youtube.com/channel/UCbesEaAYwZCREA8Ncoh0yng
ゆう さん
https://www.youtube.com/channel/UCKi9fJq7Lp_6U4LqSs0CkNQ
[タイムテーブル]
https://twitter.com/Rato_Gameplayer/status/1349657511092097025
?...フレンドコード
SW-3516-9899-0870
* フレンド申請を送ったら”必ず”Switchで使っているお名前を教えて下さい!
* フレンド枠には上限があるため、たまに整理します。名前が変わって誰か分からない方は整理対象になりやすいです。次やる時にまた送って下さい。
?...ルール
* 暴言・煽りはそっちの自由。だが、裁くのはこっちの自由だ。
* 人数合わせが必要なリグマやプラベを抜けたい時は、事前報告(1試合前)をお願いします。
* 回線落ちなどで他人に迷惑を掛けたら謝りましょう!幼稚園で習いましたよね。
* 英語圏リスナーさんのチャットの翻訳は受け付けておりません。
例外として、伝える必要がある内容だと判断した場合は自発的に翻訳します。
* 不良ではないのでタイマンはしません。大人なのでかくれんぼもしません。
?...禁止事項
ここに書かれていないことでも一度注意されたら辞めてもらえると助かります。
* 放置や意図的な回線切断
* 裏部屋の作成・やり取り
* 他プレイヤーに対する指示・文句
* 自分や他人の個人情報の開示
* 個人的なネガティブな話
* リスナー同士の他人が混ざれない会話
* 似た・同じ内容の発言の繰り返し
* 宣伝・売名行為
* その他公序良俗に反する発言
?…コマンド
カッコの中のコマンドをチャットに打つとNightbotが反応します。
「eng」
半角スペースを追加して日本語文を入力すると英語に翻訳されます。
例:「eng こんにちは」→「Hello」
「:_hmm」(スタンプ:チャンネル全メンバーのみ)
本音を暴かれます。
「:_ohno:」(スタンプ:チャンネル全メンバーのみ)
敗因を教えてくれます。
「:_kurae:」(スタンプ:Proメンバーのみ)
インスタントリプレイが再生されます。
「!ローリング」(Proメンバーのみ)
回れます。
「!スキャン」(Proメンバーのみ)
スキャンされます。
それでは、健闘を祈る❗️
――――― English ―――――
?♂️...Greeting
Hello my name is Youji. I'm a Japanese American that lives in the U.S. I can speak Japanese and English. Nice to meet you.
?...About Stream
I’m relaying Splatfest with other streamers! I'm on a star team this time. Join us! We will take turns with 2 games if there are many players to join. The password is 0035.
?...My Friend Code
SW-3516-9899-0870
* If you sent a friend request, you MUST tell me your in game name!
* I’ll delete you if I don’t recognize you because you changed your in game name. Please send it again next time.
?...Rules
* You will be punished if you choose to disrespecting others or squidbagging.
* I want you to tell me in advance (1 game ahead) when you want to leave from my league or private battle.
* If you annoy others (eg. disconnect on purpose), you should have the decency to apologize. I assume that is a basic manner you already learned in kindergarten.
?... Warnings
Please be mindful of your actions. Even if it’s not listed on here I warned you.
* Go AFK or disconnect on purpose
* Boss people around or tell others what to do
* Reveal you or someone else's personal information
* Talk about your personal negative stories
* Talk to other viewers about personal topics that no one else can understand or relate to
* Posting the same or similar messages over and over
* Advertising
* Any other inappropriate talking
?…Commands
You may use these commands inside “” to have Nightbot to react you. The same command can be used only once in 5 seconds.
“jpn”
It gonna translate English sentence to Japanese
e.g.: “jpn Hello” → “こんにちは”
“!japan”
It tells you the local time in Japan.
“!quote”
Try it then you'll know.
Have a good time and best of luck❗️
――――――――――
#NintendoSwitch#スプラトゥーン2#Splatoon2#視聴者参加型#Playingwithviewers
Support the stream: https://streamlabs.com/youjiman
![post-title](https://i.ytimg.com/vi/104Wxz3MEfw/hqdefault.jpg)