2 stable releases

2.0.2 Jul 19, 2023

#25 in #legacy

GPL-3.0-or-later

10KB
286 lines

Wordcel

Core Protocol, comprising of on-chain programs, IDL and tests.

Account model

worcel accounts model

The program is modular and can be used to create generic content not limited to written content.

  1. 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.

  2. 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.

  3. 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 the comment instruction

  4. Create a follow action with create_connection instruction

  5. 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 the post 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

~10–22MB
~309K SLoC