🎉 Gate Square Growth Points Summer Lucky Draw Round 1️⃣ 2️⃣ Is Live!
🎁 Prize pool over $10,000! Win Huawei Mate Tri-fold Phone, F1 Red Bull Racing Car Model, exclusive Gate merch, popular tokens & more!
Try your luck now 👉 https://www.gate.com/activities/pointprize?now_period=12
How to earn Growth Points fast?
1️⃣ Go to [Square], tap the icon next to your avatar to enter [Community Center]
2️⃣ Complete daily tasks like posting, commenting, liking, and chatting to earn points
100% chance to win — prizes guaranteed! Come and draw now!
Event ends: August 9, 16:00 UTC
More details: https://www
Core Analysis of Sputnik DAO: How Proposal Mechanisms Drive Decentralization Governance in the NEAR Ecosystem
Rust smart contracts Development Diary (11): Analysis of Sputnik DAO Proposal Mechanism
Sputnik-DAO, as the infrastructure of the NEAR Protocol, is driving the NEAR ecosystem towards decentralization. Currently, the platform has facilitated the establishment of numerous decentralized autonomous communities for NEAR projects and provides a complete, flexible, and efficient community decision-making governance solution.
Sputnikdaov2 is a smart contract used for governance voting in the Sputnik-DAO community. This article will introduce the core concept of the contract: Proposal (, and in subsequent articles, it will discuss the related DAO community governance model )Policy (.
![])https://img-cdn.gateio.im/webp-social/moments-84ee9ca630a4cdcdb0d2eb63450a7cf4.webp(
1. Proposal Initiation
Members of the Sputnik-DAO community can initiate new proposals by calling the add_proposal)( method of the sputnikdaov2 smart contract. Proposers need to provide detailed information about the proposal)ProposalInput(, including:
The add_proposal)( method will perform relevant verification and processing, generating a complete proposal )Proposal(, and binding it to a unique proposal_id, adding it to the proposal pool maintained globally by the contract.
The proposal contains the following attributes:
It should be noted that Sputnik-DAO requires proposers to stake a certain amount of NEAR tokens as collateral. This deposit will be refunded to the proposer when the proposal concludes normally.
![])https://img-cdn.gateio.im/webp-social/moments-427716593b21fa32b47855ceb5e101fc.webp(
2. Proposal Status
Proposals in Sputnik-DAO may go through various states:
The proposal status change is driven by the act_proposal)( method. DAO members can call this method to vote on proposals and perform other operations.
![])https://img-cdn.gateio.im/webp-social/moments-ef0b959c42e1f5fc6263cd4a86fd078e.webp(
3. Proposal Execution
The approved proposals will be executed through the internal_execute_proposal)( function. Sputnik-DAO supports multiple types of proposals, this article focuses on two:
) 3.1 Contract Function Execution Proposal
FunctionCall proposals allow for the execution of specified contract functions. The proposal can include multiple ActionCall objects, each specifying the corresponding contract method name and parameters.
3.2 Contract Fund Transfer Proposal
The Transfer type proposal is used to transfer tokens from the contract account to a specified account. The underlying transfer operations for different types of tokens are implemented through the internal_payout###( function.
![])https://img-cdn.gateio.im/webp-social/moments-eb73d5e15f6161f0a4b442cd4b99a91e.webp(
4. Summary
This article introduces the core concept of the Sputnik DAO contract - Proposal ), including the creation, status changes, and execution of proposals. Subsequent articles will further discuss the governance model of Sputnik-DAO ( Policy ) implementation.