forbole / callisto

Callisto (formerly BDJuno) is the official Juno implementation for Big Dipper, the open-source block explorer for Cosmos
https://bigdipper.live
MIT License
90 stars 241 forks source link

fix: add x/gov module proposal status change from deposit to voting #681

Closed dzmitryhil closed 7 months ago

dzmitryhil commented 9 months ago

Description

Currently the bdjuno doesn't cover the proposal status change from the deposit to voting. If a user creates a proposal with a minimum deposit the proposal has the status deposit. Later if a user adds more deposit to activate voting, the bdjuno doesn't change the proposals's state, and it remains deposit, however, the correct state is voting. The PR contains changes to update the state of the proposal if the block tx events contain proper events.

Cosmos SDK ref: https://github.com/cosmos/cosmos-sdk/blob/release/v0.47.x/x/gov/keeper/msg_server.go#L182

Resolves: #680


Author Checklist

All items are required. Please add a note to the item if the item is not applicable and please add links to any relevant follow up issues.

I have...

Reviewers Checklist

All items are required. Please add a note if the item is not applicable and please add your handle next to the items reviewed if you only reviewed selected items.

I have...