An open API service indexing awesome lists of open source software.

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.

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:'
```