Code Monkey home page Code Monkey logo

Comments (21)

AndriiHrynchuk avatar AndriiHrynchuk commented on August 26, 2024 1

Their free API key has limit of 5 request/second. I guess that's fine for now. I will check what's Polkadot offers as well

from grants.

yangwao avatar yangwao commented on August 26, 2024

I was thinking @AndreyGrin might be interested in this kind of hacking? 👀

from grants.

AndreyGrin avatar AndreyGrin commented on August 26, 2024

Hey, this looks interesting. I can work on it.

from grants.

yangwao avatar yangwao commented on August 26, 2024

Can provide a list of testing addresses, i.e. one with balance and with some NFTs on https://kusama.subscan.io/account/CuHWHNcBt3ASMVSJmcJyiBWGxxiWLyjYoYbGjfhL4ovoeSd
We can get some artists from spotlight to help test as well https://nft.kodadot.xyz/spotlight which are on our Discord :)

from grants.

AndriiHrynchuk avatar AndriiHrynchuk commented on August 26, 2024

I will start with M1. I guess you already have API key for subscan or should I make a new one?

from grants.

yangwao avatar yangwao commented on August 26, 2024

Originally thought using polkadotjs, but using Subscan might cut times to verify you I guess (i.e. connecting to chain takes ages)
Let's try to go with Subscan :)

from grants.

AndriiHrynchuk avatar AndriiHrynchuk commented on August 26, 2024

Ok, I will request API key from them

from grants.

AndriiHrynchuk avatar AndriiHrynchuk commented on August 26, 2024

I got my API key, continue setting up.

from grants.

AndriiHrynchuk avatar AndriiHrynchuk commented on August 26, 2024

Bot now can reads user's wallet balance.
Found a few issues:

  1. Discords API doesn't allow to save custom info into user's profile. That means we need to save it to external DB.
  2. We won't be able to kick user immediately if they sell their's KSM. I can setup scheduler that will check balance every X minutes/hours.
    What do you think @yangwao ?

from grants.

AndriiHrynchuk avatar AndriiHrynchuk commented on August 26, 2024

For DB we can use free tier on Heroku or Firebase if you don't have any existing one.

from grants.

vikiival avatar vikiival commented on August 26, 2024

For DB we can use free tier on Heroku or Firebase

If there are no catches on free tier I would use it.

I can setup scheduler that will check balance every X minutes/hours.

20-30 min interval should be fine imho

from grants.

AndriiHrynchuk avatar AndriiHrynchuk commented on August 26, 2024

What should we do when someone sold his KSM? Ban or kick off?

from grants.

AndriiHrynchuk avatar AndriiHrynchuk commented on August 26, 2024

We could ban until they have some money again

from grants.

AndriiHrynchuk avatar AndriiHrynchuk commented on August 26, 2024

Interesting that Subscan shows some balance for my account Gai2tc3mZ9u4bLdoXVTfaXjGLerijuXBZawZKTakuVdJuBh but actually I have 0 KSM there.

from grants.

AndriiHrynchuk avatar AndriiHrynchuk commented on August 26, 2024

What min amount of KSM customers should hold on the wallet?

from grants.

AndriiHrynchuk avatar AndriiHrynchuk commented on August 26, 2024

@vikiival @yangwao I'm almost done with M1, need your answers.
Another question: what to do with existing users?
I wouldn't ban or kick them out, but can annoy one a week until they add their wallet ID, how that sounds to you?

from grants.

yangwao avatar yangwao commented on August 26, 2024
  1. Discords API doesn't allow to save custom info into user's profile. That means we need to save it to external DB.

If possible, want to make it storage less. Just fetch your balance and then give you attributes, i.e. let you inside

  1. We won't be able to kick user immediately if they sell their's KSM. I can setup scheduler that will check balance every X minutes/hours.

I guess one way would be listening for events but that would be costly, other way around would be yes, having sort of schedule to check every once per hour/day (to save some costs when userbase might grow)

from grants.

yangwao avatar yangwao commented on August 26, 2024

What should we do when someone sold his KSM? Ban or kick off?

Kick off-channel, that's purpose, ban would be way too strict :)

What min amount of KSM customers should hold on the wallet?

I guess starting with 10KSM would be for now default? Oh wait, I would also account if that KSM is staked, that brings bit complication into game I guess 😄

Another question: what to do with existing users?

What is scenario?

I wouldn't ban or kick them out, but can annoy one a week until they add their wallet ID, how that sounds to you?

I would not spam users bc they might can report your bot without no reason:)

from grants.

yangwao avatar yangwao commented on August 26, 2024

We've chatted with @AndreyGrin that later would be nice to change firebase to something decentralized/distributed, maybe Textile/ThreadDb would be nice to check, maybe https://orbitdb.org/ but seems the recent release wasn't quite along.

M3

  • Later could be added a notification that notifies creators when their KodaDot NFTs sell as a message.

from grants.

AndreyGrin avatar AndreyGrin commented on August 26, 2024

hey, is it still valid? I think, last time I've worked on this, M1 points already completed in that MVP

from grants.

vikiival avatar vikiival commented on August 26, 2024

I think yes

from grants.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.