2 stable releases
2.0.2 | Jul 19, 2023 |
---|
#29 in #legacy
10KB
286 lines
Wordcel
Core Protocol, comprising of on-chain programs, IDL and tests.
Account model
The program is modular and can be used to create generic content not limited to written content.
-
Create a publication To create a publication users have to create a profile, give a suitable name of their choice. The client calls the
initialize
ix of the on-chain program to create a profile account and initialize it with user data. -
Create a post in a publication The post is created after the content gets published on Arweave, the
create_post
instruction is called which creates the post account on-chain and stores the Arweave metadata URI. -
Update a post in a publication. The client calls the
update_post
ix to update the post. The program also allows users to comment on posts via thecomment
instruction -
Create a follow action with
create_connection
instruction -
Unfollow a user by closing the same above connection see
close_connection
The key feature of how posts are managed is the usage of random hashes. Random hashes are randomly generated on the client side and these are used as seeds of thepost account
this allows for a profile account to be associated with n no. of posts as the random hashes are very less likely to collide.
Dependencies
~11–22MB
~327K SLoC