2024-07-06 - Distriator - Developed APIs to better manage rewards distribution

Words
923
Reading
5 min
2y
Listen to this post
~6 min

Hello Hive Community Members,

Welcome to daily updates from sagarkothari88@sagarkothari88 - a Hive Witness & mobile-app-developer. I daily invest my time with my skillset in #Hive & I daily hive-power-up.

Project Distriator

New APIs to Set user specific limits

set limits per user

  • Administrators can now set limits per user.
  • With this they can set a max limit a user can claim per day
  • Admins can also set max biweek claim limit for a user
  • These APIs are developed & shipped.

Example API to update limit per user

postman request to set limit

  • Admins can set limit for a user
  • In the request, client has to just send username, daily limit & biweekly limit.
  • If request has valid authorization, Distriator will update it in it's database.

Example Request

  • Following code snippet gives you and idea of how request will look like
  • It's a code snippet of Dart language
var headers = {
  'Authorization': 'ey....',
  'Content-Type': 'application/json'
};
var request = http.Request('POST', Uri.parse('https://api.hive-distrion.app/user/limit'));
request.body = json.encode({
  "username": "shaktimaaan",
  "daily": 5,
  "biweekly": 10
});
request.headers.addAll(headers);

http.StreamedResponse response = await request.send();

if (response.statusCode == 200) {
  print(await response.stream.bytesToString());
}
else {
  print(response.reasonPhrase);
}

How to get all user's with limits?

Get all users with limit

  • Now, Each user will have also details of daily & biweekly limit
  • So far, these APIs were only returning the status of user - banned = YES or NO

Is it Hooked?

hooked with discord

  • Of course, Yes.
  • As soon as an admin updates limit for any user, a message will be sent on discord server private text-channel.
  • Above screenshot illustrates the same.

Bird Eye View of what's going on, On Project Distriator

( ⏳ = In Progress, ✅ = Done)

  • API for Setting limits for claim for each user type ✅
  • FrontEnd to set limits for each user type ⏳
  • Complete UX for managing users ✅
  • Support Localization / Multi language support ⏳
  • Complete Add-A-Business API ✅
  • Complete Edit-A-Business API ⏳
  • Fixing issues suggested by starkerz@starkerz ✅
  • Adding improvements suggested by starkerz@starkerz ✅
  • Migrate existing excel-sheet-based-businesses to database using add-a-business-api
  • Once migration is done, we'll integrate update-a-business-API
  • Add support for setting percentage for each-trusted-business-guide on a business
  • Reward onboarders ✅
  • Rewarding BTC - V4V - SATS payments ⏳

My contributions on projects on Hive Blockchain

Rewarding Hive Content Creators

  • I support several contests hosted by different communities.
  • I reward them with Hive-Power-up for the contribution that they have made on communities on Hive.
  • We keep transferring portion of hive power to different users on Hive for encouraging them for their contribution on Hive.
  • Those who respond to our replies, we also reward them with different tokens like PIZZA, BEER
  • We sent Hive-Power-Up to these people on hive for their amazing contribution - sarimanok@sarimanok, netswriting@netswriting, xanreo@xanreo, noalys@noalys, deraaa@deraaa, tydynrain@tydynrain, zakludick@zakludick, lionardogw@lionardogw

rewarded these users

Dedicated Resources for Hive Eco-System

Resource NameResource DescriptionApprox Cost of ResourceStatus
Hive WitnessHive Witness Node$50✅
DluxRunning Dlux Witness Node$5Down ATM
LarynxRunning a LARYNX node$5Down ATM
DuatRunning a DUAT node$5Down ATM
VSCRunning a VSC witness node$5✅
Discord BotHive Curators Discord Bot Node$5✅
HP RewardsHive Curators HP reward Bot Node$5✅
12 NodesPowerful video encoder nodes for 3Speak $20 on average$240✅
Bandwidth3 internet connections$50✅
DistriatorHive-Distriator Backend node$50✅
Community ContributorsRewarding community contributors in INR$60✅
Additional DevelopersAdditional Contributing Developers$1500✅
--------
TotalApprox$1980--

Updates: Video Encoder Nodes

  • I'm running 12 powerful video encoder nodes for 3Speak Community Members.
  • Monthly internet bandwidth usage which exceeds 15 TB, Maintenance cost, Electricity backup, Internet backup, Depreciation cost - it's all on me.
  • On 2024-07-06, 3Speak published total 94 videos.
  • My video encoder nodes encoded 54 videos from 94 videos published.
  • It means, my encoder nodes encoded 57.45 % of total videos published on 2024-07-06
  • Here is visual representation of above data.

2024-07-06-encoder-data

My Daily Hive Investment Report for 2024-07-06

ValueInvestment Type
0.250 HiveHive Power Up
23.439 HiveWitness Rewards in Hive Power
72.187 HiveCuration Rewards as Hive Power
8.157 HiveBenefactor Rewards as Hive Power
----
104.033 HiveTotal Hive Power Invested
----

Curation Report for 2024-07-06

NOTE:

  • If you don't like tagging you under curation report, let me know in comment section & I'll exclude you from the curation report.
  • If you think that I should not attach curation report in the post, let me know in the comment section.

We've curated total 36 & motivated content creators for their contributions on Hive.

🧑‍💻 Author📝 Post❤️ HiveCurator👥 Community
shawnnft@shawnnft@shawnnft/always-full-3mvgwajnberg@gwajnbergWeekend Experiences
vikvitnik@vikvitnik@vikvitnik/blockchain-bridges-as-a-solution-for-scalability-and-cooperation-between-ecosystems-undestanding-this-technology-enes--6qegwajnberg@gwajnbergLeoFinance
pirulito.zoado@pirulito.zoado@pirulito.zoado/amanita-muscaria-the-fungus-from-the-game-nintendo-super-mario-brosqwerrie@qwerrieFungi Lovers
bitcoinflood@bitcoinflood@bitcoinflood/web-3-social-is-it-really-hive-7mebhattg@bhattgLeoFinance
gurseerat@gurseerat@gurseerat/my-entery-for-smash-0557b5eb74e12reeta0119@reeta0119Shadow Hunters
mofijul@mofijul@mofijul/spain-once-again-advanced-in-the-fight-for-self-esteempalomap3@palomap3Sports Talk Social
beesmartblog@beesmartblog@beesmartblog/father-and-son-in-canada-peggy-s-covepalomap3@palomap3TravelFeed
leaky20@leaky20@leaky20/first-coffee-at-homepalomap3@palomap3Cinnamon Cup Coffee
theshot2414@theshot2414@theshot2414/second-helping-of-pudding-frompalomap3@palomap3Freewriters
suzn.poudel@suzn.poudel@suzn.poudel/hive-honey-bear-2mtpalomap3@palomap3LeoFinance
lileisabel@lileisabel@lileisabel/celebrating-with-pizzas-laughter-and-games-enes-jc4dimascastillo90@dimascastillo90Daily Blog
el-panal@el-panal@el-panal/el-panal-presentacion-de-autores-destacados-dia04072024dimascastillo90@dimascastillo90La Colmena
gidlark@gidlark@gidlark/chervnevij-zahid-soncya-june-sunsetdimascastillo90@dimascastillo90Photography Lovers
hiddenblade@hiddenblade@hiddenblade/making-progress-on-my-art-and-myselfdimascastillo90@dimascastillo90Sketchbook
papilloncharity@papilloncharity@papilloncharity/the-cheetah-never-expected-thisdimascastillo90@dimascastillo90Photography Lovers
nitsuga12@nitsuga12@nitsuga12/farewell-for-now-the-last-sculpture-in-my-collection-eng-espgaboamc2393@gaboamc2393Hive Diy
cetb2008@cetb2008@cetb2008/fundacion-en-la-xv-jornada-del-torneo-de-futsal-copa-apertura-2024bhattg@bhattgFull Deportes
becca-mac@becca-mac@becca-mac/a-different-bulletbhattg@bhattgThoughtfulDailyPost
monica-ene@monica-ene@monica-ene/cost-implications-for-purchasing-urea-and-cassava-stem-to-be-applied-to-our-corn-weekend-for-planting-more-cassava-kfbbhattg@bhattgHomesteading
aquagelas@aquagelas@aquagelas/my-most-special-childhood-momentbhattg@bhattgWeekend Experiences
lukasbachofner@lukasbachofner@lukasbachofner/architecture-in-a-square-46-a-new-entry-for-the-monomad-challengebhattg@bhattgBlack And White
tinabrezpike@tinabrezpike@tinabrezpike/nature-s-magic-a-year-of-joybhattg@bhattgGEMS
hindavi@hindavi@hindavi/garden-journal-july-no-rain-no-gainbhattg@bhattgHiveGarden
outwars@outwars@outwars/fun-chaos-agent-winnerbhattg@bhattgSplinterlands
mawit07@mawit07@mawit07/splinterguide-quick-lookbhattg@bhattgSplinterlands
kristal24@kristal24@kristal24/week-213-do-you-have-a-favourite-board-game-and-if-so-whybhattg@bhattgWeekend Experiences
jfang003@jfang003@jfang003/brawl-report-86-losing-most-of-my-fights-gp4bhattg@bhattgSplinterlands
marpa@marpa@marpa/un-traje-gracioso-a-funny-costumebhattg@bhattgGEMS
mysteriousroad@mysteriousroad@mysteriousroad/kashmir-or-or-a-journeybhattg@bhattgWorldmappin
alex-rourke@alex-rourke@alex-rourke/my-jive-to-200k-hive-power-day-666-update-35nbhattg@bhattgLeoFinance
justclickindiva@justclickindiva@justclickindiva/vineyard-at-red-bluff-or-2nd-photomosh-experiment-for-my-mixed-media-art-projectbhattg@bhattgAlien Art Hive
xykorlz@xykorlz@xykorlz/grandmaster-rathe-social-media-challengebhattg@bhattgSplinterlands
ivansnz@ivansnz@ivansnz/up-the-wall-and-view-on-the-walensee-switzerlandbhattg@bhattgPhotography Lovers
hopestylist@hopestylist@hopestylist/a-young-woman-s-dilemmabhattg@bhattgInner Blocks
burlarj@burlarj@burlarj/finally-a-nice-airdrop-evfbhattg@bhattgLeoFinance
sunscape@sunscape@sunscape/whats-bloomed-this-week-july-4th-by-sunscapebhattg@bhattgHiveGarden

Support @sagarkothari88

Vote sagarkothari88 as Hive Witness

Support @threespeak

Vote for 3Speak as Witness

Get paid for paying in HBD/Hive & SATs

https://distriator.com

Credits to designers - noakmilo & josegrech

image by noakmilo

banner of distriator by josegrech

Swap your HBD/Hive using ecency@ecency

2024-07-06 - Distriator - Developed APIs to better manage rewards d... | Ecency