2024-07-06 - Distriator - Developed APIs to better manage rewards distribution
Words
923
Reading
5 min
2y
Hello Hive Community Members,
Welcome to daily updates from @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
- 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
- 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?
- 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?
- 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 ✅
- Adding improvements suggested by
@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
- Distriator App (on-going & in-developement) (also known as Hive Freedom Dollar)
- 3Speak Mobile App (production + maintenance)
- The Hive Mobile App (in-developement as a hobby project)
- HiveCurators - DiscordBot (production + maintenance)
- Hive Witness Node (production)
- 3Speak (Legacy / Current) WebApp (production + maintenance)
- 3Speak (Legacy / Current) Creator Studio (production + maintenance)
- 3Speak new-website - backend (acela-core) (contributed for 2-3 APIs)
- 3Speak new-website (contributed for 2 screens)
- Bitcoin Tube (Developed static home page)
- Video Encoder Nodes (12 video encoders)
- Union-Indexer-Node (1 union indexer node as a backup)
- HiveAuth Mobile App (Contributed)
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,
@netswriting,
@xanreo,
@noalys,
@deraaa,
@tydynrain,
@zakludick,
@lionardogw
Dedicated Resources for Hive Eco-System
| Resource Name | Resource Description | Approx Cost of Resource | Status |
|---|---|---|---|
| Hive Witness | Hive Witness Node | $50 | ✅ |
| Dlux | Running Dlux Witness Node | $5 | Down ATM |
| Larynx | Running a LARYNX node | $5 | Down ATM |
| Duat | Running a DUAT node | $5 | Down ATM |
| VSC | Running a VSC witness node | $5 | ✅ |
| Discord Bot | Hive Curators Discord Bot Node | $5 | ✅ |
| HP Rewards | Hive Curators HP reward Bot Node | $5 | ✅ |
| 12 Nodes | Powerful video encoder nodes for 3Speak $20 on average | $240 | ✅ |
| Bandwidth | 3 internet connections | $50 | ✅ |
| Distriator | Hive-Distriator Backend node | $50 | ✅ |
| Community Contributors | Rewarding community contributors in INR | $60 | ✅ |
| Additional Developers | Additional Contributing Developers | $1500 | ✅ |
| -- | -- | -- | -- |
| Total | Approx | $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.
My Daily Hive Investment Report for 2024-07-06
| Value | Investment Type |
|---|---|
| 0.250 Hive | Hive Power Up |
| 23.439 Hive | Witness Rewards in Hive Power |
| 72.187 Hive | Curation Rewards as Hive Power |
| 8.157 Hive | Benefactor Rewards as Hive Power |
| -- | -- |
| 104.033 Hive | Total 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.
Vote sagarkothari88 as Hive Witness
Vote for 3Speak as Witness
Get paid for paying in HBD/Hive & SATs
https://distriator.com
Credits to designers - noakmilo & josegrech