Comments (3)
@RiccardoM The self delegation ratio is the how much the validator has self delegated from it's own delegator account. We need to know the self delegation address which you can convert it from the desmosvaloper
address back to desmos
prefix. Currently I save the self delegation address once a new validator appears on the network. And then query the /staking/delegators/{delegatorAddr}/delegations/{validatorAddr}
endpoint. For example,
Then you can get the number of shares or tokens the delegation has.
from callisto.
I am doing a message handler approach that catches the MsgDelegate, every change of delegation. If that is from the self delegation address then safe it to table
It can also store the delegation from other accounts. Do we interested in that?
from callisto.
@HarleyAppleChoi I'm currently implemented what you have suggested inside #18 so don't bother going after that.
The way of handling MsgDelegate
is perfect. Just make sure to also parse the genesis (you can do so by using a GenesisHandler
so that you can get the starting data from when the chain spins up.
from callisto.
Related Issues (20)
- BeginBlocker/EndBlocker events HOT 2
- Cannot query data directly from node HOT 3
- How to add customize cosmos app chain into the bdjuno? HOT 8
- bdjuno start return error: ERROR: failed to start client: Not Found HOT 1
- failed to get last block height from database error="pq: permission denied for table block" HOT 1
- Use branch cosmos/v0.46.x got error: failed to get block results from node: error unmarshalling result: illegal base64 data at input byte 44 HOT 1
- Why Average Block Time and Active Validators are 0? HOT 8
- i have error parsing my transaction throw bdjuno HOT 11
- panic: invalid Go type math.LegacyDec for field cosmos.mint.v1beta1.QueryInflationResponse.inflation HOT 3
- Validator status and voting power not updated in some cases
- Gov transactions V1beta1
- Impossible to have staking/validator duplicated `operator address` address
- The bdjuno doesn't cover the proposal status change from the deposit to voting.
- not found github.com/cosmos/cosmos-sdk/testutil/testdata_pulsar
- BDJuno crashes when an invalid prefix arrives HOT 2
- ERR re-enqueueing failed block: no concrete type registered for type URL /ibc.core.client.v1.MsgUpdateClient against interface *types.Msg HOT 9
- failed to get transactions for block HOT 2
- Details page cannot display when running with `yarn build` and `yarn start` HOT 1
- v0.47 - Bad Power Voting % calculation
- message_type table is empty HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from callisto.