Sui Workshop: Learning Sui Move by Building a Crowdfunding PlatformSui Workshop:用群眾募資平台學 Sui Move

Sui Workshop: Learning Sui Move by Building a Crowdfunding PlatformSui Workshop:用群眾募資平台學 Sui Move

Sui Workshop:用群眾募資平台學 Sui Move
In short摘要

Coming from Solidity, building an on-chain crowdfunding platform showed me where Sui Move's object ownership beats account-based contract state.從 Solidity 轉到 Sui Move,用一個鏈上群眾募資平台看清物件所有權相較帳戶式合約狀態的優勢。

Coming from Solidity, the First Thing I Noticed Was Ownership

Having previous experience with Solidity, I was already familiar with building smart contracts. What I immediately noticed on Sui Move was the simplicity and convenience of development: its object-oriented nature makes contract writing faster and more convenient, and it also allows for effective control over object ownership.

That last part is the difference that stuck. The workshop’s curriculum walked from the fundamental concepts and logic of Sui, through writing and deploying Sui Move contracts, up to NFT creation and purchase contracts, and then handed teams the task of building their own project and showing it to potential investors. Along that path, the recurring question was less “what does this function do” and more “who owns this object”.

A Problem Where Ownership Is the Whole Point

Our team’s project was an on-chain crowdfunding platform — SuiGive, with the code in the SuiGive repository. We chose it because the problem is one that on-chain data is unusually well suited to.

Many existing public fundraising projects suffer from a lack of transparency regarding fund allocation and actual project outcomes, and it’s difficult for the public to effectively monitor a project’s progress. The transparent nature of on-chain data addresses exactly that. Beyond transparency, using on-chain smart contracts we can manage fund flows efficiently, controlling the movement of funds through strict, consensus-verified code. We can issue NFTs to provide unique verification for donors, which could in turn link to other services such as tax deductions. And on-chain transactions can effectively lower transaction costs, improving on the high costs associated with traditional financial transactions.

The project is currently in the early stages of development; the GitHub repository has the detailed progress.

The Language Is Only Half the Argument

A language is only as good as the chain under it. Sui’s fast block verification speed and low cost make it a highly competitive Layer 1 blockchain, and the unique programming language also makes this chain stand out. For an application like a crowdfunding platform — many small donations, each of which has to be cheap and fast to be worth making on-chain at all — those two properties are not a footnote.

What I Take Away

The workshop replaced a vague sense that Sui Move was “another smart contract language” with a concrete reason to prefer it for certain problems: when what you are modelling is ownership of discrete things, an object model is a better fit than account-based contract state. I plan to continue developing and exploring Sui Move, and I’m excited about its future potential — that continued exploration is what eventually led to SuiAudit, an AI audit tool for Sui Move contracts.

從 Solidity 過來,我第一個注意到的是所有權

因為先前有 Solidity 的經驗,我對寫智慧合約並不陌生。在 Sui Move 上我立刻注意到的是開發的簡單與便利:它物件導向的本質讓合約寫起來更快也更順手,同時也能有效控制物件的所有權。

真正讓我記住的是後面那一點。這場 workshop 的課程從 Sui 的基本概念與邏輯出發,走到撰寫與部署 Sui Move 合約,再到 NFT 的鑄造與購買合約,最後讓各組做出自己的專案並向潛在投資人展示。一路上反覆出現的問題,與其說是「這個函式做什麼」,不如說是「這個物件屬於誰」。

一個所有權就是全部重點的問題

我們這組的專案是一個鏈上群眾募資平台——SuiGive,程式碼在 SuiGive repository。我們選它,是因為這個問題特別適合用鏈上資料來處理。

許多既有的公開募資專案在資金分配與實際成果上都不夠透明,大眾也很難有效監督專案進度。鏈上資料的透明特性正好對症。除了透明之外,用鏈上智慧合約可以有效率地管理資金流,透過嚴格且經共識驗證的程式碼控制資金移動。我們可以發行 NFT 給捐款人作為獨一無二的憑證,而這又能接上其他服務,例如稅務扣除。鏈上交易也能有效降低交易成本,改善傳統金融交易的高費用。

這個專案目前仍在開發早期;詳細進度都放在 GitHub repository 上。

語言只是論證的一半

一個語言的好壞,取決於底下那條鏈。Sui 快速的區塊驗證速度與低成本,使它成為競爭力很強的 Layer 1;而獨特的程式語言也讓這條鏈與眾不同。對群眾募資平台這種應用來說——大量的小額捐款,每一筆都得夠便宜、夠快,放上鏈才划算——這兩個特性絕不是註腳。

我的收穫

這場 workshop 把「Sui Move 不過是另一種智慧合約語言」這種模糊印象,換成一個具體的偏好理由:當你要模型化的東西是一個個離散物件的所有權時,物件模型比帳戶式的合約狀態更合適。我打算繼續開發與探索 Sui Move,也很期待它的未來潛力——而那樣的持續探索,最後帶我做出了 SuiAudit,一個給 Sui Move 合約用的 AI 稽核工具。