Move module for Aptos Social Network dApp.
The dApp is live at berzanxyz.github.io
.
An interface for Aptos Social Network resides in aptos-social-network-interface
.
Events and tests are not implemented as this project is very basic.
- Clone the repo with
git clone https://github.com/berzanxyz/aptos-social-network-contract.git
- You can use Dev Containers for getting the development environment ready.
aptos move compile
aptos move publish
aptos move run --function-id <MODULE-ADDRESS>::social_network::init
aptos move run --function-id <MODULE-ADDRESS>::social_network::create_user_profile --args 'string:<NAME>' 'string:<BIO>' 'string:<PFP-URL>'
aptos move run --function-id <MODULE-ADDRESS>::social_network::update_user_profile --args 'string:<NAME>' 'string:<BIO>' 'string:<PFP-URL>'
aptos move run --function-id <MODULE-ADDRESS>::social_network::make_post --args 'string:<CONTENT>' 'string:<IMAGE-URL or none>'
aptos move run --function-id <MODULE-ADDRESS>::social_network::make_comment --args 'address:<POST-OWNER-ADDRESS>' 'u64:<POST-INDEX>' 'string:<COMMENT-CONTENT>'
aptos move run --function-id <MODULE-ADDRESS>::social_network::like_post --args 'address:<POST-OWNER-ADDRESS>' 'u64:<POST-INDEX>'
aptos move run --function-id <MODULE-ADDRESS>::social_network::like_comment --args 'address:<POST-OWNER-ADDRESS>' 'u64:<POST-INDEX>' 'u64:<COMMENT-INDEX>'