https://github.com/berzanorg/aptos-social-network-contract
Move module for Aptos Social Network dApp.
https://github.com/berzanorg/aptos-social-network-contract
aptos dapp move smart-contracts
Last synced: about 2 months ago
JSON representation
Move module for Aptos Social Network dApp.
- Host: GitHub
- URL: https://github.com/berzanorg/aptos-social-network-contract
- Owner: berzanorg
- License: mit
- Created: 2023-09-28T14:18:02.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-01T16:44:51.000Z (over 1 year ago)
- Last Synced: 2025-03-12T23:33:18.331Z (2 months ago)
- Topics: aptos, dapp, move, smart-contracts
- Language: Move
- Homepage: https://berzanxyz.github.io/aptos-social-network-interface
- Size: 9.77 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# aptos-social-network-contract
Move module for Aptos Social Network dApp.The dApp is live at [`berzanxyz.github.io`](https://berzanxyz.github.io/aptos-social-network-interface).
An interface for Aptos Social Network resides in [`aptos-social-network-interface`](https://github.com/berzanxyz/aptos-social-network-interface).
Events and tests are not implemented as this project is very basic.
## Getting Ready
- 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.## Developing
### Compile:
```sh
aptos move compile
```### Publish:
```sh
aptos move publish
```## Interacting With The Contract
### Initialize the social network:
```sh
aptos move run --function-id ::social_network::init
```### Create a user profile:
```sh
aptos move run --function-id ::social_network::create_user_profile --args 'string:' 'string:' 'string:'
```### Update a user profile:
```sh
aptos move run --function-id ::social_network::update_user_profile --args 'string:' 'string:' 'string:'
```### Make a post:
```sh
aptos move run --function-id ::social_network::make_post --args 'string:' 'string:'
```### Make a comment:
```sh
aptos move run --function-id ::social_network::make_comment --args 'address:' 'u64:' 'string:'
```### Like a post:
```sh
aptos move run --function-id ::social_network::like_post --args 'address:' 'u64:'
```### Like a comment:
```sh
aptos move run --function-id ::social_network::like_comment --args 'address:' 'u64:' 'u64:'
```