Dao
Aside from the P2P relationship mentioned before, grouping relationships are also important in a social network. With this relationship, users with common interests can interact and communicate more effectively.
In the Relation Protocol, DAOs serve the follow purposes:
Provide a social platform
With DAOs, people with common interests can build or join groups to create an interactive community.
DAO management
The Relation Protocol provides certain management functions for DAOs. DAO creators can manage the DAO, add or remove members. These features are important for a DAO and its stability.
Increase user interaction and participation
With DAOs, users can participate in social groupings more effectively to share their views and experience, thus increasing user interaction and participation.
Schema
DaoRegister
The schema corresponding to the DaoRegister contract is saved to Arweave in the form of a ttl file, with the transaction hash on Arweave as the schemaURI to be passed to the contract during its initialization stage. For example:
ar://7mRfawDArdDEcoHpiFkmrURYlMSkREwDnK3wYzZ7-x4A complete rdf example to describe a DAO contract created by an address is as follows:
:Soul_0x0000000000000000000000000000000000000011 p:daoContract :Contract_0x1110000000000000000000000000000000000022 .The schema consists of:
The list of prefixes.
Class
:Soul represents the address binded with a domain name record resolved. Contract represents the address of the DAO contract.
Predicate
p:daoContract is used to describe the DAO contract address owned by an address
Dao
The schema corresponding to a DAO contract is stored on Arweave in the form of a ttl file, with the transaction hash as the schemaURI to be passed to the contract during its initialization stage. For example:
A complete rdf example to describe that a certain address has joined a certain DAO:
The schema consists of:
schema's prefixes of namespaces
Class
:Soul represents the addresses of the members who joined the group. :Dao represents the group
Predicate
p:join is used to describe the relationship between an address and a group.
Contract
The DAO module consists of the DaoRegister contract and the DAO contract. We use the DaoRegister contract as the factory pattern and registration center to deploy and record the DAO contracts created by users.
DaoRegister
Dao
Full source code:
Last updated