-
-
Notifications
You must be signed in to change notification settings - Fork 361
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Payout leaderboard for KodaDot #1477
Comments
Hi @yangwao this is an interesting feature. Mind if I start creating a script fot this. I'm gonna use Javascript if it's fine for you. Will ask questions if I have any. |
Sure, I'm planning to write '21Q4 article for kodadot so if we could get at least some static snapshot numbers, that would be amazing most probably and happy to mention you in the article! :) |
That would be awesome, @yangwao ! Really excited to make this work! 🚀 I started to dabble with autocode and I'm liking it so far. Researched a bit on how to query Subscan's KSM value here: https://docs.api.subscan.io/#introduction. Although I need an api key to avail of their higher quotas. Just want to ask if you have any api keys available or I can go ahead and submit the form, making one myself? Lastly, maybe you can also help me comment the extrinsic hash to older merged PRs that has a txn, like this PR here #692 . You can use this search string Feel free to suggest anything if you have any. Thanks a lot! 😄 |
I don't have anything on hand, let's request new
Tricky I see, let's try to do some fix using my address as most of the payouts we're sent through that and match connection to address written in payout section, what about that? |
@yangwao this is noted. I'll try this implementation and will let you know if it works. Thanks! |
Hey, any progress on this? So I can publish article with some chart already:) |
@yangwao apologies for the slow progress on this feature as I am on vacation currently. I am still waiting for the api key from Subscan and will wait for their email so that I can continue the development. For the meantime, I am able to query Github PRs with payout addresses correctly and is still on the process of cleaning some of the data coming from Github. Data that is difficult to scrape is the |
I can ask around as they usually reply within few days. This sounds awesome!
I'm thinking that what if we could make it as GitHub Action flow? Like once PR is merged, it could automatically make commit to leaderboard.md for example with updated stats. How do you "store" data right now? |
Yes! This is what I am thinking. I can test it out if it's working on a separate repo.
I haven't thought about it yet but one thing that came into my mind is maybe use an online database like Supabase to track and cache data in order to avoid calling the same data from Subscan. What do you think about the plan? Feel free to suggest any other tools that you know of. |
We are planning to use CF KV workers for storage as it's fast and convenient tho https://www.cloudflare.com/en-gb/products/workers-kv/ I'm not familiar with Supabase, checking their pricing, it's not something pay as you go I would prefer, but if that initial version we can have free tier, till then I'm okay with that :) Generally, I would research something which storage solution is popular with serverless functions, like integrations etc. |
Hey @jbienesdev how it's going? 😇 |
Seems issue is stalled :| |
Let's do it, I'll have approx. 20h for KodaDot this weekend, but I'll most likely need some guidance. Also, I'd pick Python over JS for this if that's okay. |
We are looking for something serverless and I guess Typescript would be optimal as higher chance someone knows TS than Python, however, I'm aware that python is more data science. Optionally Rust would be best and I guess we can run it as Github Action.
Most of the questions have been answered here but feel free to ask another one :) |
Okay, after clarification on Discord, since I've kind of misunderstood the hackathon part, I guess I'll just look into some solutions in TS for now and see how will the Hackathon play out. |
oh noticed that we should handle failed transactions.. https://kusama.subscan.io/extrinsic/0x310dbcec733682bfcd604ada1f5bf65fba1fd10b9848933e1e906172963c32c4 ))) |
they are accounted for in the table. I checked every transaction and included only the ones which had status "Success". Failed transactions won't ever show up :) |
where can i find that document? |
current version here :) |
We are all monkeys.
And would be nice to build trust for external contributors,
where external contributors could easier justify
that we do payouts on regular basis and see ppl how they contribute etc
The requirement to run as serverless function, best if we can deploy it in some public way, using autocode.xyz or something like that, should be few lines and cracking graphql and right queries
We'd like to put more emphasis on past records.
Spec
The text was updated successfully, but these errors were encountered: