HAF Plug & Play Update #2

in HiveDevs3 years ago

hive-plug-and-play-2.png

Proposal

The proposal to fund this project is almost funded (70%).

Screenshot from 2021-10-02 21.20.19.png

You can vote for it here:


This week I worked on basic app registrations support, using GitLab CI, functions and tables for the follow plug and updated API documentation.

The pull request is here:
Support app registration, GitLab CI, follow plug sql functions/tables and updated API docs

App registration support

I completed base tables to hold app registrations for Plug & Play. This allows apps to register their app's names and the custom_json ops they are interested in. This will be used to process that app's data.

GitLab CI

I made GitLab CI scripts to auto-deploy the code, if a runner is configured.

Follow Plug SQL Functions and Tables

The tables.sql holds the schema needed to populate the follow plug's operations and state tables.

  • hpp_follow holds all the core operations
  • hpp_follow_state holds the state of followers/following/what data sets, which is updated as the custom_json ops are processed

The functions.sql holds the functions that populate core data sets to support the follow plug and maintain the state table.

  • public.hpp_follow_update updates the op table public.hpp_follow with all follow operations
  • public.hpp_follow_update_state updates the state table public.hpp_follow_state by parsing the operations and effecting state changes for which account is following which one, and for what.

Updated API Documentation

I added documentation for the new plug_play_api.follow.get_account_followers endpoint, which is used to retrieve the list of accounts following a specified Hive account. https://github.com/imwatsi/haf-plug-play/blob/master/docs/api/plugs/follow.md#get_account_followers


Next week's work

In the next week, I will be working on supporting the community plug, which tracks custom_json ops with the community ID. If I finish it in time, I will start working on integrating @brianoflondon's podping operations.



Sort:  

Can i used this to register subreddits into hive communities? Haha

So can you login grom other apps to reddit accounts or do we need some fancy oauth hivesigner keychain infrastructure? Hah

I wanna just allow subreddit admins to buy hivepower and auto import a subreddit to a hive community and even mod accounts after sending hiveinvite links to their reddit dm from a bot like @tipitbot
Screenshot_20211003-181408_Chrome.jpg
or manually lol

Good question.

I just did a quick scan of the Reddit API docs and I think you can import new or trending posts.

I think writing a custom script to extract posts from Reddit and post them on Hive is one way to go about it.

Depending on the functionality you want to introduce, an admin can import posts and post them under the community's account. All this can be done using a library like beem and the admin's posting keys. Then ideally, the user's who join Hive will need to post under their accounts using their own private posting keys. Not sure how to implement this off the top of my head, but it can either be one of two ways, I think:

  • posts keep being posted by the community/admin account, with rewards set to go to the users' accounts via beneficiary settings
  • a custom frontend that allows users to post to both Reddit and Hive at the same time.

Where Plug & Play comes in is when you want data sets that give you the state of community data that Hivemind gives and even more, like stats and custom events. Your app/script can access any data sets (defined by you) via endpoints similar to Hive API and Hivemind endpoints.

Hope this helps :)

Don't hesitate to get in touch if you need assistance on how Plug & Play can be leverage in your solution. I suspect Plug & Play's role will be more apparent when I release a public beta, with more documentation and tutorials. I should get these out in a few weeks.

Depending on the functionality you want to introduce, an admin can import posts and post them under the community's account. All this can be done using a library like beem and the admin's posting keys. Then ideally, the user's who join Hive will need to post under their accounts using their own private posting keys. Not sure how to implement this off the top of my head...

How about posting permissions? users who join Hive need to post under their accoynts using their own private keys" JUST LIKE @share2steem ! lets talk to @algocoder ! and @chrisrise from @dbuzz

a custom frontend that allows users to post to both Reddit and Hive at the same time.

haha yeah thats probably whats up next .... we ALL wanted this since steem... no one wanted to admit that condensor isnt good enough or that we have to make it look like reddit, sorta cheat, draw em in wuith a reddit looking front end, , and then just kill it later make em all use hive blog or peakd or ecency hahaha hahahahahaha

Oh this is fantastic ... if we could just scrape ina nd repost threads, with comments, and have a @banjo or @likwid style bot keep track of the rewards and pay them all in https://tipit.io or @tipcc bots which can soon ACTUALLY SEND tokens TO reddit accounts liuke with discord telegram twitch and twitter and even github ....

so we could let peopel just post in reddit, have a bot repost threads, using 1 proxy account, save rewards, send a cut back to tip bot that tips them directly on reddit every week, run teh whole thing in @telosnetwork dstor.cloud to be automated and future proof

Oh we HAVE to tell @dbuzz about this

It's really awesome

It's great to see this project revive funding from DHF. There were so many projects that failed to get enough support fast enough. !PIZZA !LUV

<><

<><

LUV

Connect

Trade


@imwatsi, you've been given LUV from @vimukthi.

Check the LUV in your H-E wallet. (1/1)

PIZZA!
PIZZA Holders sent $PIZZA tips in this post's comments:
@vimukthi(2/10) tipped @imwatsi (x1)
Learn more at https://hive.pizza.


Congratulations @imwatsi!
You raised your level and are now a Minnow!

Congratulations @imwatsi! You received a personal badge!

Happy Hive Birthday! You are on the Hive blockchain for 5 years!

You can view your badges on your board and compare yourself to others in the Ranking

good jobs