gnolang / bounties

cosmos/gno ecosystem bounties
9 stars 8 forks source link

bounty 7 - proposal #25

Open catShaark opened 2 years ago

catShaark commented 2 years ago

what I'll do:

this should be a simple loop through gaia4's data with some custom logic

catShaark commented 2 years ago

account scorer should probably configured by something like this

{
    "PointCap": 2,
    "Actions": {
        "Votes": [
            {
                "Vote": {
                    "proposal_id": 1
                },
                "Point": 0.2
            }
        ],
        "Delegations": [
            {
                "Delegation": {

                },
                "Point": 0.1
            }

        ]
    },
    "PointPer": {
        "Vote": {
            "Point" : 0.001
        }
    }

}
catShaark commented 2 years ago

my repo https://github.com/notional-labs/gaia-analyzer

catShaark commented 2 years ago

Output artifacts should include a separate table of coins (being updated per block).

Do you mean export all atom balances for each new block and put them in a csv file or so?

jaekwon commented 2 years ago

wow catshaark, you are just diving in. awesome start, i'll make sure your work is included in the bounty payment.

I think the approach you started will take too long to implement. it's basically re-implementing the accounting logic that already exists for cosmoshub-4. if it uses HTTP RPC it's also probably super slow.

Let's change course with these bounties and figure out what we should do. I will add my thoughts here:

https://github.com/gnolang/bounties/issues/24#issuecomment-1094298684

vuong177 commented 2 years ago

hello @jaekwon, i'am Vuong, i working with @catShaark. we are using asynchronous query. It faster than normal RPC. I tested and it 8~10x faster .

catShaark commented 2 years ago

I forgot to mention @nguyenvuong1122000 is working with me on this

catShaark commented 2 years ago

update: our code can track blended coins and track gov votes like you mentioned in part 2 and part 3, but for now It can only track coins sent by bank send message

vuong177 commented 2 years ago

We use db direct, so it faster than normal rpc query. Our code can query one milion blocks in 10 min.

vuong177 commented 2 years ago

I query gov 44 :

https://raw.githubusercontent.com/notional-labs/gaia-analyzer/main/gov44.json

vuong177 commented 2 years ago

@jaekwon do we need check swap coin in gravity-dex ?

jaekwon commented 2 years ago

Hi, sorry there were several approaches, and we decided to close this out as is. Can you provide your cosmos addresses please?

vuong177 commented 2 years ago

Yes. This is our address : cosmos1maee2cq9azg9eeyxhg5un48mncewfel4scunfm.