Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/KMDLabs/trollbox
On chain real time chat for KMD assetchains
https://github.com/KMDLabs/trollbox
Last synced: about 2 months ago
JSON representation
On chain real time chat for KMD assetchains
- Host: GitHub
- URL: https://github.com/KMDLabs/trollbox
- Owner: KMDLabs
- License: mit
- Created: 2018-10-12T11:23:57.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-02-05T01:26:32.000Z (almost 6 years ago)
- Last Synced: 2024-08-03T12:14:53.759Z (5 months ago)
- Language: Python
- Homepage:
- Size: 43.9 KB
- Stars: 3
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: history.py
- License: LICENSE
Awesome Lists containing this project
- awesome-kmd - https://github.com/KMDLabs/trollbox
README
On chain trollbox for cc activated KMD assetchains based on oracles contract
## Dependencies/Prerequisites :
Komodo asset chains with oracles contract already running with `-pubkey=` set at startup. It is recommend to use a freshly created address.For the time being, komodod must be master branch of StakedChain/komodo or jl777 branch of jl777/komodo
The default komodo data directory is set to `$home/.komodo`. If this is not correct for your machine, change ac_dir in getconf.py.
python3 and requests installed
```shell
sudo apt-get install python3 python3-pip libssl-dev
pip3 install python-bitcoinlib
pip3 install requests
```## Tutorial
These examples will use CFEK, but this will work on any chain with oracles contract activated.Clone this repo
```shell
git clone https://github.com/StakedChain/trollbox
cd trollbox
```Set your display name
```shell
./setusername.py CFEK
```List rooms or create a new one
```shell
./listrooms.py
Chain:CFEK
```
```shell
./createroom.py
Chain:CFEK
Roomname:
```
After creating a room, creator must register to it and send a message. The listrooms.py script will show the latest message from the creator pubkey for each room. This allows the room creator to update the description dynamically just by sending a message from creator pubkey. This means the creator pubkey should not be used for chat. It should only be used to update what is shown in listrooms output. Rooms will not appear in listrooms until creator has sent a message.Register to a room, use the output of listrooms or createroom to find an oracletxid
```shell
./register CFEK
```Wait for oraclessubscribe txs to confirm, open send script
```shell
./send.py CFEK
```Open another shell and start receive script
```shell
./receive CFEK
```